open file from terminal mac 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
Example 3: open a file mac terminal
To use default application:
$ open ~/Desktop/filename.mp4
To use a specific application:
$ open -a "QuickTime Player" ~/Desktop/filename.mp4