how to view all contents of file unix code example Example: view file linux command line cat filename #for short files less filename #for longer files