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