![](https://help.apple.com/assets/65DFB7A79DFEC61A7A0517AC/65DFB7A793CD15C0410BA37D/en_AU/20f5edbfdfa0bd8ad4c4c6452e5b6761.png)
Get started with Terminal on Mac
Terminal is an app you use to perform tasks using a command line interface (CLI) in macOS.
![A Terminal window showing the command line with ls command and a list of file results.](https://help.apple.com/assets/65DFB7A79DFEC61A7A0517AC/65DFB7A793CD15C0410BA37D/en_AU/ad36a6992695d0cfd4bc9c1157e3c99c.png)
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’ve finished, clear the window of the list by choosing Edit > Clear Screen.
![A Terminal window showing the man page details of the man command.](https://help.apple.com/assets/65DFB7A79DFEC61A7A0517AC/65DFB7A793CD15C0410BA37D/en_AU/bcaef59c221fe9cff67b43b14da52c6c.png)
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.
![A group of windows set with distinct profiles for easy identification.](https://help.apple.com/assets/65DFB7A79DFEC61A7A0517AC/65DFB7A793CD15C0410BA37D/en_AU/5d78d8673dc7af144fa652d9ece8daed.png)
Set up Terminal windows
You can change the look of Terminal windows so that they are easy to identify when several are open at the same time. To see window options, choose Terminal > Settings, then click Profiles.
![Example man page showing the Export PATH command.](https://help.apple.com/assets/65DFB7A79DFEC61A7A0517AC/65DFB7A793CD15C0410BA37D/en_AU/fda904b5ee253906415aa82da2e96e0b.png)
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?