how to view file in terminal code example Example 1: open text file debian vim RESULTS.txt Example 2: how to open file in linux xdg-open <filename>