Products, services, and OS functions
may not be available in this country.

Get started with Terminal on Mac

Terminal is an app you use to perform tasks using a command line interface (CLI) in macOS.

Open Terminal for me

A Terminal window showing the command line with ls command and a list of file results.

Use the command line

You can use the command line in Terminal to efficiently execute commands, run tools, and run shell scripts. For example, to see a list of files in your default folder, type the List command, ls, then press Return. When you’re done, clear the window of the list by choosing Edit > Clear Screen.

A Terminal window showing the manpage details of the man command.

Find the commands you need

To look up UNIX commands, you can use the command man to display manual pages, called man pages. To display a man page with the details about the man command, type the command man man, then press Return. To close the man page and clear the window, press q.

Example manpage showing the Export PATH command.

Ready to try scripting?

If you are new to scripting, see Apple Developer website: the Shell Scripting Primer to learn more about working with shell scripts in Terminal.

Want to learn more?

Morty Proxy This is a proxified and sanitized view of the page, visit original site.
Helpful?
Character limit: 250
Maximum character limit is 250.
Thanks for your feedback.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.