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

Опубликовано: 22 Октябрь 2024
на канале: 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...