I want to open videos and pictures from Terminal. Is there any way to do this?
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
o open any file from the command line with the default application, just type open followed by the filename/path.
Example:
open ~/Desktop/filename.mp4
Edit: as per Johnny Drama’s comment below, if you want to be able to open files in a certain application, put -a followed by the application’s name in quotes between open and the file.
Example:
open -a “QuickTime Player” ~/Desktop/filename.mp4
If you need further information about the open command, type man open