Well, Guys Today we will be learning on how to open files in Mac directly from terminal?
Now, that you have opened it , you will see something like this
Now, type open.
In my MBP, it launches Xcode to open the file name.cpp. Xcode is the default application to open .cpp files.
So, in short the command to open application is like this,
First of all,
Open terminal.
Use cmd + space to open spotlight and type terminal and hit enter.
Now, that you have opened it , you will see something like this
Now, type open.
In this tutorial i will try to open name.cpp from desktop
In my MBP, it launches Xcode to open the file name.cpp. Xcode is the default application to open .cpp files.
However, if you want to open it in a different application like I have a text editor named atom and i want to open it in atom so i will hit a command like this
So, in short the command to open application is like this,
open -a "application-name" filename
and then hit enter.
Don't forget to like and comment. And post any doubts or corrections.
Video of How to's like this are in progress. In a month you will be able to watch these helpful How to's. Thank you. Don't forget to share ;).
Comments
Post a Comment