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