Viewing File Contents
cat
Concatenates two files together, then prints content to STDOUT.
Colloquially, it's used to print out the contents of a single file.
head
By default, prints the first 10 lines of a file to STDOUT.
You can pass the
-n
flag to specify the number of lines to print.
tail
By default, prints the last 10 lines of a file to STDOUT.
You can pass the
-n
flag to specify the number of lines to print.
less
Lets you page through a long file or stream of text a.k.a. you can scroll.
Exit by pressing
q
Last updated