Linux Command Line (07) Viewing Files (cat, more, less, head, tail)

Published: 04 January 2020
on channel: MichaelsTechTutorials
15,470
285

There is a file with this video that can be download (for free) from https://thefrugalcomputerguy.com/linu...

The first thing we do, is to look at how to cat out a file by typing cat and the file name.

cat means to join together so we can cat out multiple files at the same time. Adding the -n option will add line numbers to the files outputted from the cat command.

We also look at the "more" and "less"commands to see how to view files a page at a time and see why less it is better to use "less" over "more"

When we want to see the first lines at the top of a file we will use "head" command

When we want to see the last few lines of a file, we can type the "tail" command

We can follow the file file updates by using "tail -f" to see the last lines of a file, while the file is being updated. This can be handy when tailing a log file.'

See the complete LCL playlist at:    • Linux Command Line  (01) What Is The ...  

Website link:
https://thefrugalcomputerguy.com/linu...


On this page of the site you can watch the video online Linux Command Line (07) Viewing Files (cat, more, less, head, tail) with a duration of hours minute second in good quality, which was uploaded by the user MichaelsTechTutorials 04 January 2020, share the link with friends and acquaintances, this video has already been watched 15,470 times on youtube and it was liked by 285 viewers. Enjoy your viewing!