how to open a file in linux from command line code example Example 1: open text file debian vim RESULTS.txt Example 2: how to open file in linux xdg-open <filename>