linux list text file code example Example: view file linux command line cat filename #for short files less filename #for longer files