how to open a file in shell code example Example 1: open a file in linux cat <filename> Example 2: open a file in from terminal cat <path/your_file>