read file by comand line ubuntu code example
Example 1: display contents of file ubuntu
less fileName
or
cat fileName
Example 2: how to open a file using terminal
open ~/Desktop/filename.txt
less fileName
or
cat fileName
open ~/Desktop/filename.txt