How to Open Applications Using Terminal on Mac. Apple’s Terminal provides you with a UNIX learn mac terminal commands pdf line inside the OS X environment.
You can enter the open command here to open any application, or to open a file with the application of your choice. There are several ways to adjust this command to suit your purposes, including the ability to host the application in your Terminal window. You can also open Terminal by using spotlight in the right hand top corner. Open an application from anywhere. Terminal to open that Application, no matter where it is located.
Open a file with a specific application. You can also use this command to override the default application for a file type. Just type in the file path followed by -a and the application name. If you’re not sure how to enter file paths, see the Troubleshooting section below. For example, you can open a . Add -F to open a “fresh” copy of the application.
Open multiple instances of the same application with -n. This may be useful if you are comparing different access levels, or if the application only allows one window. Note: this is not a default OS X program. This may cause unexpected behavior in other applications that interact with the duplicate application. Run an application inside Terminal.
Instead of just opening an application normally, Terminal can host it. This is useful for debugging, as error messages and other console outputs will appear in that Terminal window. Locate the application in Finder. Right-click the application and select “Show Package Contents.
Drag that file onto your blank Terminal command line. Leave your Terminal window open while you use the application. Quit the application to return to regular Terminal operations. It may take a couple minutes to load the list. This will enter the absolute file path, which will always point to that file.
The start of your Terminal command line always displays the current directory you are located in. By default, this is your Home directory, named after your username. The file you are trying to open must be within this directory, not at a higher level. Find your current directory in Finder. Open a series of folder until you reach the file you’d like to open. You may start with .