how to open files from terminal ubuntu code example
Example 1: ubuntu open file from terminal
xdg-open file-name
# xdg-open myPicture.png
Example 2: ubuntu open file system from terminal
nautilus .
#or
nautilus /home/john/Downloads
Example 3: open a file in from terminal
cat <path/your_file>