how to open file content in ubuntu code example Example 1: open text file debian vim RESULTS.txt Example 2: open a file in from terminal cat <path/your_file>