terminal open . file code example
Example 1: ubuntu open file from terminal
xdg-open file-name
# xdg-open myPicture.png
Example 2: open a file in from terminal
cat <path/your_file>
xdg-open file-name
# xdg-open myPicture.png
cat <path/your_file>