I have just demonstrated you how you could move files, how we could copy files and folders and how
you could name specific files.
Now, let me show you how you could read files using different comments.
And first of all, let me create a large file that will have a lot of different lines.
And for that, let me go back to this lorem ipsum generator.
Go back here and the let's say generate, let's say 50 to lease.
Let's generate lorem ipsum.
Let's now Copiah those lists.
Let me select this entire sexual starting from this part and end in somewhere here.
Copy it.
Go here.
And no, let me show you a quick way how you could copy contents from the buffer to specific new file
for that you could use following comment.
Graded and sign.
And here will be file name.
Let's name it.
A large file.
Note the extreme.
Let's press enter.
And now you'll see that the court process is actually listening to a study in data stream.
You know that if you don't supply any argument to court brought us this process, we'll listen to some
input from SDD in and using this greater than sign.
We say that we want redirect is to the out of God.
Brought us to specific file.
Large file.
Steve.
And here I am actually able to paste contents that I have copied here from this Web page.
Let's corbitt them again based here.
If you want, you could add here additional line break.
And now in order to signal that here was the end of the input, you could breath simply key combination
control.
See, like so.
And now if I released files and folders here in home directory, I'll see large file disks deal less
with contents of this file using guard command, same as we have used just in order to create this file.
Got a large file of text.
And I see all contents that we have pasted from Web page.
All those different randomly generated sentences.
That's how you could read file.
You've got command.
But what if file is very large?
You could use Özer comments.
Let me clear terminal.
And using pad command, you are able to read through them lines of this file.
Here they are using good they'll command.
You are able to read last.
Dan Lyons of Specific File.
Here they are.
Also you are able to use additional option dash and and specify quantity of the lines you want to read
from specific file.
Let's clear terminal and type here.
Head dash n.
And here, type three.
And here will be large filed of text.
And now I get only three first lines from this file.
Let's use a tail dash.
And five large file.
A tasty.
And now I see.
Last five lines from this large file to dig deep.
All right.
Next command that you could use in order to read the files is more or less clear.
Terminal and type here.
More large file that takes to you.
And now I see here more prompt.
And also, you see percentage of the file that was already red.
And if I press space, I could move to next page.
And you'll see that the percentage is also changed here.
Press space, space, space.
And now I have reached.
End of the file.
And more.
Process was terminated.
Also, you could use a tail command with additional option that will allow you to monitor lie of changes
to specific file.
Let me show you that.
Dale Desh F.
And here we'll be name on the file.
Large file the GST.
And now you'll see that we have seen last than lines in this Clarridge file.
But we are still inside of the tail process.
You'll see here this sign we had written back to command prompt.
And no, if I add the some text to this large file of 60, it will be shown here.
Let me open up new terminal window.
And let me open up new process to currently run the container.
Docker Behar's.
Docker exact.
IDM here, we'll be idea of the container.
This one.
And next, let's start.
One more batch process.
And here, let's add additional line to large file.
Dig deep.
Let's see do home folder to this folder where large file the text is located.
And now we could use following comment, echo additional line.
And here I'll use to read in science because those signs are used.
If you want to upend Coltons to existing file, note or write them.
All right.
Let's add here.
File name.
Large file.
That takes deep breath.
Enter.
And let's go back to this step.
And now I see here this additional line.
Let's add one more line.
Let's go back to this command.
And here will be additional line to press enter.
And now I see this additional line to, for example, using such command.
With this F option, you could do read some logs so that updated in real time and you could see all
new lines as they appear in the file.
All right.
Let's terminate this process, control, see?
And let me go out from this additional best show exit.
All right.
That's all, guys.
Full disclosure.
And in the next one.
Let me explain you what is leaning.
And I'll tell you the difference between hard links and soft links.
I'll see you in the next lecture.
Bye bye.