1
00:00:04,590 --> 00:00:09,510
I have just demonstrated you how you could move files, how we could copy files and folders and how

2
00:00:09,510 --> 00:00:11,400
you could name specific files.

3
00:00:11,940 --> 00:00:15,150
Now, let me show you how you could read files using different comments.

4
00:00:15,630 --> 00:00:19,530
And first of all, let me create a large file that will have a lot of different lines.

5
00:00:19,950 --> 00:00:23,550
And for that, let me go back to this lorem ipsum generator.

6
00:00:23,730 --> 00:00:28,710
Go back here and the let's say generate, let's say 50 to lease.

7
00:00:29,370 --> 00:00:31,020
Let's generate lorem ipsum.

8
00:00:32,150 --> 00:00:34,380
Let's now Copiah those lists.

9
00:00:34,490 --> 00:00:40,680
Let me select this entire sexual starting from this part and end in somewhere here.

10
00:00:42,130 --> 00:00:42,580
Copy it.

11
00:00:43,080 --> 00:00:43,690
Go here.

12
00:00:44,140 --> 00:00:49,440
And no, let me show you a quick way how you could copy contents from the buffer to specific new file

13
00:00:49,790 --> 00:00:51,230
for that you could use following comment.

14
00:00:52,010 --> 00:00:52,940
Graded and sign.

15
00:00:53,100 --> 00:00:54,360
And here will be file name.

16
00:00:54,660 --> 00:00:55,320
Let's name it.

17
00:00:55,380 --> 00:00:56,790
A large file.

18
00:00:56,890 --> 00:00:57,630
Note the extreme.

19
00:00:58,080 --> 00:00:58,980
Let's press enter.

20
00:00:59,160 --> 00:01:05,160
And now you'll see that the court process is actually listening to a study in data stream.

21
00:01:06,090 --> 00:01:12,210
You know that if you don't supply any argument to court brought us this process, we'll listen to some

22
00:01:12,210 --> 00:01:16,160
input from SDD in and using this greater than sign.

23
00:01:16,410 --> 00:01:19,920
We say that we want redirect is to the out of God.

24
00:01:19,920 --> 00:01:21,810
Brought us to specific file.

25
00:01:21,960 --> 00:01:22,710
Large file.

26
00:01:23,070 --> 00:01:23,300
Steve.

27
00:01:24,120 --> 00:01:29,250
And here I am actually able to paste contents that I have copied here from this Web page.

28
00:01:29,640 --> 00:01:31,800
Let's corbitt them again based here.

29
00:01:32,100 --> 00:01:34,290
If you want, you could add here additional line break.

30
00:01:34,560 --> 00:01:39,510
And now in order to signal that here was the end of the input, you could breath simply key combination

31
00:01:39,660 --> 00:01:40,140
control.

32
00:01:40,200 --> 00:01:41,250
See, like so.

33
00:01:42,150 --> 00:01:49,140
And now if I released files and folders here in home directory, I'll see large file disks deal less

34
00:01:49,200 --> 00:01:55,200
with contents of this file using guard command, same as we have used just in order to create this file.

35
00:01:55,890 --> 00:01:57,490
Got a large file of text.

36
00:01:57,990 --> 00:02:01,830
And I see all contents that we have pasted from Web page.

37
00:02:02,400 --> 00:02:05,160
All those different randomly generated sentences.

38
00:02:06,270 --> 00:02:07,950
That's how you could read file.

39
00:02:08,070 --> 00:02:09,110
You've got command.

40
00:02:09,630 --> 00:02:12,240
But what if file is very large?

41
00:02:12,810 --> 00:02:14,180
You could use Özer comments.

42
00:02:14,400 --> 00:02:15,400
Let me clear terminal.

43
00:02:15,720 --> 00:02:21,870
And using pad command, you are able to read through them lines of this file.

44
00:02:22,620 --> 00:02:26,030
Here they are using good they'll command.

45
00:02:26,130 --> 00:02:27,740
You are able to read last.

46
00:02:27,930 --> 00:02:30,180
Dan Lyons of Specific File.

47
00:02:30,480 --> 00:02:31,230
Here they are.

48
00:02:31,740 --> 00:02:38,220
Also you are able to use additional option dash and and specify quantity of the lines you want to read

49
00:02:38,310 --> 00:02:39,480
from specific file.

50
00:02:39,900 --> 00:02:41,720
Let's clear terminal and type here.

51
00:02:41,760 --> 00:02:43,130
Head dash n.

52
00:02:43,540 --> 00:02:44,610
And here, type three.

53
00:02:44,970 --> 00:02:47,400
And here will be large filed of text.

54
00:02:48,040 --> 00:02:51,720
And now I get only three first lines from this file.

55
00:02:52,890 --> 00:02:54,780
Let's use a tail dash.

56
00:02:54,990 --> 00:02:57,080
And five large file.

57
00:02:57,080 --> 00:02:57,580
A tasty.

58
00:02:57,870 --> 00:02:58,710
And now I see.

59
00:02:58,840 --> 00:03:02,070
Last five lines from this large file to dig deep.

60
00:03:02,960 --> 00:03:03,320
All right.

61
00:03:03,660 --> 00:03:07,980
Next command that you could use in order to read the files is more or less clear.

62
00:03:08,010 --> 00:03:09,190
Terminal and type here.

63
00:03:09,210 --> 00:03:11,480
More large file that takes to you.

64
00:03:12,090 --> 00:03:14,160
And now I see here more prompt.

65
00:03:14,370 --> 00:03:17,960
And also, you see percentage of the file that was already red.

66
00:03:18,720 --> 00:03:21,660
And if I press space, I could move to next page.

67
00:03:21,870 --> 00:03:24,300
And you'll see that the percentage is also changed here.

68
00:03:25,090 --> 00:03:26,520
Press space, space, space.

69
00:03:26,910 --> 00:03:28,140
And now I have reached.

70
00:03:28,200 --> 00:03:28,980
End of the file.

71
00:03:29,220 --> 00:03:30,090
And more.

72
00:03:30,120 --> 00:03:31,560
Process was terminated.

73
00:03:32,700 --> 00:03:38,130
Also, you could use a tail command with additional option that will allow you to monitor lie of changes

74
00:03:38,160 --> 00:03:39,150
to specific file.

75
00:03:39,390 --> 00:03:40,070
Let me show you that.

76
00:03:41,050 --> 00:03:42,660
Dale Desh F.

77
00:03:42,990 --> 00:03:44,610
And here we'll be name on the file.

78
00:03:44,730 --> 00:03:45,930
Large file the GST.

79
00:03:46,380 --> 00:03:50,820
And now you'll see that we have seen last than lines in this Clarridge file.

80
00:03:51,150 --> 00:03:54,150
But we are still inside of the tail process.

81
00:03:54,270 --> 00:03:57,480
You'll see here this sign we had written back to command prompt.

82
00:03:57,990 --> 00:04:03,420
And no, if I add the some text to this large file of 60, it will be shown here.

83
00:04:04,140 --> 00:04:06,300
Let me open up new terminal window.

84
00:04:06,510 --> 00:04:10,320
And let me open up new process to currently run the container.

85
00:04:10,500 --> 00:04:11,670
Docker Behar's.

86
00:04:13,090 --> 00:04:14,820
Docker exact.

87
00:04:15,820 --> 00:04:18,640
IDM here, we'll be idea of the container.

88
00:04:18,730 --> 00:04:19,300
This one.

89
00:04:19,839 --> 00:04:21,130
And next, let's start.

90
00:04:21,370 --> 00:04:22,900
One more batch process.

91
00:04:23,320 --> 00:04:26,310
And here, let's add additional line to large file.

92
00:04:26,320 --> 00:04:26,840
Dig deep.

93
00:04:27,250 --> 00:04:33,400
Let's see do home folder to this folder where large file the text is located.

94
00:04:33,760 --> 00:04:39,460
And now we could use following comment, echo additional line.

95
00:04:40,210 --> 00:04:44,830
And here I'll use to read in science because those signs are used.

96
00:04:44,890 --> 00:04:49,150
If you want to upend Coltons to existing file, note or write them.

97
00:04:49,960 --> 00:04:50,380
All right.

98
00:04:50,620 --> 00:04:51,610
Let's add here.

99
00:04:51,700 --> 00:04:52,360
File name.

100
00:04:52,460 --> 00:04:53,260
Large file.

101
00:04:53,260 --> 00:04:54,470
That takes deep breath.

102
00:04:54,520 --> 00:04:54,970
Enter.

103
00:04:55,300 --> 00:04:56,950
And let's go back to this step.

104
00:04:57,370 --> 00:04:59,680
And now I see here this additional line.

105
00:05:00,640 --> 00:05:02,050
Let's add one more line.

106
00:05:02,380 --> 00:05:03,840
Let's go back to this command.

107
00:05:03,910 --> 00:05:07,390
And here will be additional line to press enter.

108
00:05:07,930 --> 00:05:12,620
And now I see this additional line to, for example, using such command.

109
00:05:12,700 --> 00:05:19,660
With this F option, you could do read some logs so that updated in real time and you could see all

110
00:05:19,730 --> 00:05:22,030
new lines as they appear in the file.

111
00:05:22,900 --> 00:05:23,260
All right.

112
00:05:23,290 --> 00:05:25,100
Let's terminate this process, control, see?

113
00:05:25,450 --> 00:05:29,740
And let me go out from this additional best show exit.

114
00:05:30,420 --> 00:05:30,760
All right.

115
00:05:30,790 --> 00:05:31,420
That's all, guys.

116
00:05:31,450 --> 00:05:32,080
Full disclosure.

117
00:05:32,320 --> 00:05:33,190
And in the next one.

118
00:05:33,220 --> 00:05:35,440
Let me explain you what is leaning.

119
00:05:35,830 --> 00:05:39,310
And I'll tell you the difference between hard links and soft links.

120
00:05:39,610 --> 00:05:40,690
I'll see you in the next lecture.

121
00:05:40,840 --> 00:05:41,140
Bye bye.

