how to view a file in terminal code example Example 1: open text file debian vim RESULTS.txt Example 2: linux command to open a file sudo apt install vim vim filename