ubuntu print contents of file code example
Example 1: display contents of file ubuntu
less fileName
or
cat fileName
Example 2: view file linux command line
cat filename #for short files
less filename #for longer files
less fileName
or
cat fileName
cat filename #for short files
less filename #for longer files