read file from terminal linux code example Example 1: display contents of file ubuntu less fileName or cat fileName Example 2: open text file debian vim RESULTS.txt