opening files on terminal code example
Example 1: ubuntu open file from terminal
xdg-open file-name
# xdg-open myPicture.png
Example 2: how to open a file using terminal
open ~/Desktop/filename.txt
xdg-open file-name
# xdg-open myPicture.png
open ~/Desktop/filename.txt