This article was co-authored by wikiHow staff writer, Megaera Lorenz, PhD. Megaera Lorenz is an Egyptologist and Writer with over 20 years of experience in public education. In 2017, she graduated with her PhD in Egyptology from The University of Chicago, where she served for several years as a content advisor and program facilitator for the Oriental Institute Museum’s Public Education office. She has also developed and taught Egyptology courses at The University of Chicago and Loyola University Chicago.
This article has been fact-checked, ensuring the accuracy of any cited facts and confirming the authority of its sources.
This article has been viewed 1,061,659 times.
Learn more...
Your Mac's Terminal app gives you a text-based Unix command line inside the macOS environment. You can use the Terminal to run applications or open files in the program of your choice. In this wikiHow tutorial, you'll learn easy ways to launch applications from the Mac Terminal app, plus how to troubleshoot common problems you might encounter when opening apps in Terminal.
Launching Apps in Terminal: Fast Facts
- To open an app in any location, type the command open -a “appname”. Make sure to capitalize the name of the app correctly.
- You can also specify the path to the app (for example, open /Applications/Music.
- To open a file in a specific app, use the open command followed by the full path to the file, then -a “appname”.
Steps
Community Q&A
-
QuestionWhy does Safari open automatically when I log into my laptop?
Mariam AtbouliCommunity AnswerTry right-clicking Safari in your dock. Choose options > Open at Login. If there is a tick, uncheck it.
Video
Tips
-
Would you like to play games in the Terminal on Mac? Check out our guide to learn how!Thanks
References
About This Article
1. Use "open -a appname" to launch an app.
2. Use "open path/to/file -a appname" to open a file with an app.
3. Add "-g" to keep the file in the background.
4. Add "-F" to open a fresh copy of the app.
5. Use "-n" to open multiple instances.










