How to Use Command Prompt on a Mac?

Are you new to Apple Mac computers (iMac, Mac Mini) or Laptops (Macbook Air or Pro) and have previous experience of using computers running Windows OS. You must be familiar with Command Prompt the Command Line Interface for Windows and wondering how to use it on a system running macOS?

Terminal - Command Prompt equivalent on Mac runing macOS
Terminal - Command Prompt equivalent on Mac runing macOS

Well, macOS is Unix based and has an app called Terminal which is equivalent to Command Prompt on Windows.

You can open the Terminal App by following the below steps:

Using Spotlight Search

Click Spotlight search icon next to your menu time - type Terminal, open the app.

Using Finder

Open Finder, Go to Application -> Utilities and look for Terminal

Using Keyboard Shortcut

Press Command + Space and type Terminal, open the app.

Check out some beginners commands for Terminal:

Have Questions? Post them here!
Try Out Code2care Dev Tools:


Android Java Linux Microsoft Google Python macOS Notepad++ Microsoft Teams CSS PHP SharePoint Html Linux C Programs Bootstrap jQuery Sublime Android Studio Facebook Eclipse WhatsApp News MySQL Json HowTos JavaScript FTP S3


Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and Software Developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include Learnings, Tutorials, Trouble-Shooting steps, Video Tutorials, Code Snippets, How Tos, Blogs, Articles, etc.
🎉 We are celebrating the 10th years of Code2care! Thank you for all your support! We hope we made a difference.
We strong support Gender Equality & Diversity.

We stand in solidarity with Ukraine - Make a donation to UNHCR -