Tips & Tricks: Linux shell command to display contents of a file?

The best and easiest way to read a files contents via the shell command is with the less command which also allows you to scroll the files. However there are a few other alternatives like cat, head, tail, tac (for reverse output) and of course more. Try them all out and see which one you like best.

@her###:~$ less filename

No comments:

Post a Comment