1
00:00:04,590 --> 00:00:09,570
No, you know, guys, how to greet your files, how to create directory as a whole to rename files,

2
00:00:09,750 --> 00:00:13,500
hold two more files and directories and how to read and edit files.

3
00:00:14,000 --> 00:00:14,820
Now, let's proceed.

4
00:00:14,880 --> 00:00:16,940
And I want now to explain you.

5
00:00:17,220 --> 00:00:20,130
What is the difference between soft links and hard links?

6
00:00:20,220 --> 00:00:22,540
And explain what link actually is.

7
00:00:23,160 --> 00:00:27,510
But before talking about links, let me explain you what GRAP Command does.

8
00:00:28,140 --> 00:00:28,770
Let me show you.

9
00:00:29,280 --> 00:00:30,510
Let's see these two being folder.

10
00:00:30,540 --> 00:00:31,830
And here, let's enter.

11
00:00:31,960 --> 00:00:32,689
Alas, command.

12
00:00:33,150 --> 00:00:36,900
And here I see by each of different directories and executable files.

13
00:00:37,470 --> 00:00:39,180
Let's add the Desh al option.

14
00:00:39,270 --> 00:00:43,230
And I see those files and directories in table format.

15
00:00:44,580 --> 00:00:49,110
Let's suppose that I want to feel that this output by specific keyword.

16
00:00:49,260 --> 00:00:53,520
And let's suppose that they want to find all the directories and files that.

17
00:00:53,700 --> 00:00:58,700
How old hostname somewhere for that you could use grep process.

18
00:00:59,010 --> 00:01:04,019
And you could buy a study out from Alaska meant to grab command.

19
00:01:04,590 --> 00:01:05,099
Let's do that.

20
00:01:05,430 --> 00:01:06,750
Let's clear terminal and type.

21
00:01:06,810 --> 00:01:08,000
Alas, dash l.

22
00:01:08,340 --> 00:01:10,250
Next comes pipe operator.

23
00:01:10,560 --> 00:01:12,900
And here we'll be Greb Command.

24
00:01:13,200 --> 00:01:18,960
And as argument, we will supply fuel through Geelhoed and that will be a host name.

25
00:01:19,500 --> 00:01:20,310
Let's press enter.

26
00:01:20,400 --> 00:01:25,290
And now I see only results that have hostname name somewhere in the row.

27
00:01:26,530 --> 00:01:33,460
That means that using such approach, we can redirect a study out datastream from these brought us to

28
00:01:33,490 --> 00:01:40,270
grab roses and grow up roses will feel the results by hostname and produced by its own.

29
00:01:40,390 --> 00:01:46,570
As to the old data, stream only those results and notice that much in good text will be highlighted

30
00:01:46,630 --> 00:01:47,760
using rat color.

31
00:01:48,490 --> 00:01:54,370
That's how you could feel the results from Alaska and in the same way you could feel their arza results

32
00:01:54,700 --> 00:01:59,380
raghib that we have created some text files in the home directory of this user.

33
00:01:59,600 --> 00:02:00,640
Here, those files.

34
00:02:00,960 --> 00:02:03,830
And let's suppose that you want to feel or file a.

35
00:02:04,180 --> 00:02:12,310
Dig deep and find roles that contain what's actually thoros to read this file that contains, for example,

36
00:02:12,370 --> 00:02:13,370
this text.

37
00:02:13,780 --> 00:02:16,990
Let's copy it and let's use the call to command.

38
00:02:17,440 --> 00:02:18,750
File phyto to extreme.

39
00:02:19,000 --> 00:02:25,600
Here we'll be Piper Braider and here will be grep and here paste ridiculous press enter.

40
00:02:25,780 --> 00:02:30,880
And now I see only lines where this text appears here and here.

41
00:02:31,740 --> 00:02:37,180
This is how you could do by, by output from any brought us to grep process.

42
00:02:37,450 --> 00:02:40,740
And it will filter results by using specific keyword.

43
00:02:41,500 --> 00:02:41,890
All right.

44
00:02:42,190 --> 00:02:46,060
Also you are actually able to use additional options with grep brought us.

45
00:02:46,420 --> 00:02:49,360
Let me list all those options here and here.

46
00:02:49,360 --> 00:02:54,700
You'll see a bunch of different options that you could use with GRAP command and actually you could

47
00:02:54,700 --> 00:02:59,230
use a discriminator and supply directly file name as argument to it.

48
00:02:59,580 --> 00:03:05,110
Let's try that quickly and also I'll show you how to use the regular expression as a keyword.

49
00:03:05,470 --> 00:03:06,300
Let's clear terminal.

50
00:03:06,460 --> 00:03:12,520
And here let's grab a specific file and let's suppose that we are looking for text A B in the file five

51
00:03:12,580 --> 00:03:14,240
batiks, deep breath enter.

52
00:03:14,290 --> 00:03:18,610
And here I see Magin parts here, here and here.

53
00:03:19,150 --> 00:03:19,540
All right.

54
00:03:19,870 --> 00:03:24,720
Now let me show you how you could use a regular expression in order to fuel the results of a less comment.

55
00:03:25,210 --> 00:03:25,720
Let's see it.

56
00:03:25,800 --> 00:03:27,270
To slash bin folder.

57
00:03:27,490 --> 00:03:30,230
And here, let's use again, alas, Desh L Command.

58
00:03:30,550 --> 00:03:32,190
And again by.

59
00:03:32,430 --> 00:03:34,750
But a study out to grab brought us.

60
00:03:35,080 --> 00:03:38,300
And here let's type following Garreth sign.

61
00:03:38,530 --> 00:03:39,170
And L.

62
00:03:40,240 --> 00:03:40,970
If you're scared.

63
00:03:41,140 --> 00:03:41,890
Sign here.

64
00:03:42,080 --> 00:03:42,420
Grab.

65
00:03:42,530 --> 00:03:43,030
Come on.

66
00:03:43,120 --> 00:03:48,340
We'll find only lines that start with corresponding text that you enter here.

67
00:03:48,900 --> 00:03:51,610
And I'm looking for lines that start with l.

68
00:03:52,220 --> 00:03:56,200
Let's press enter and I'll see in this output all the links.

69
00:03:56,830 --> 00:04:00,720
Actually I see only lines that start with L.

70
00:04:00,780 --> 00:04:03,640
Character and you see that L character is here in red.

71
00:04:04,630 --> 00:04:10,780
If I add, for example, additional characters here like ah double W X, I'll see that the output will

72
00:04:10,780 --> 00:04:13,390
be filtered only by lions that have l.

73
00:04:13,480 --> 00:04:13,640
R.

74
00:04:13,840 --> 00:04:14,320
W.

75
00:04:14,350 --> 00:04:15,160
X at the beginning.

76
00:04:15,940 --> 00:04:17,769
We will talk about links in the next lecture.

77
00:04:17,980 --> 00:04:23,300
But now you need to remember that you could use also regular expressions with grap command.

78
00:04:24,040 --> 00:04:29,830
Let me show you also how you could field or by and enka of a specific line for that.

79
00:04:29,890 --> 00:04:32,200
You could use, for example, c h.

80
00:04:32,500 --> 00:04:36,550
And here will be Dola, a sign that stands for End of the line.

81
00:04:37,030 --> 00:04:37,900
Let's press enter.

82
00:04:38,620 --> 00:04:43,030
And no, I see only results that have c h at the end.

83
00:04:44,160 --> 00:04:47,350
This is how you could use regular expressions with grap command.

84
00:04:47,860 --> 00:04:48,550
Let's not prosit.

85
00:04:48,580 --> 00:04:49,100
And next.

86
00:04:49,120 --> 00:04:50,140
Let me explain you.

87
00:04:50,260 --> 00:04:54,020
What is Link and what is the difference between hard and soft.

88
00:04:54,670 --> 00:04:55,900
I'll see you in the next lecture, guys.

89
00:04:55,990 --> 00:04:56,250
Bye bye.

