how to open a text document in the terminal ubuntu code example
Example 1: how to open a file using terminal
open ~/Desktop/filename.txt
Example 2: how to open file in linux
xdg-open <filename>
open ~/Desktop/filename.txt
xdg-open <filename>