What is the shell command to display contents of a file?
Solution 1:
easiest are cat
, head
, tail
, tac
(for reverse output)
less
and more
let you scroll the text files (less
being more powerful)
you can also use text editors like nano
, pico
, vi
, emacs
Solution 2:
cat
and less
are good for this.