There is a file with this video that can be download (for free) from https://thefrugalcomputerguy.com/linux/seriespg.php?ser=10020#Vid7
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: https://www.youtube.com/watch?v=JMT5CGFxa_4
Website link:
https://thefrugalcomputerguy.com/linux/seriespg.php?ser=10020
13 Comments