Terminal is the text-based control center for your Mac

Terminal is a program that lets you type commands directly to your Mac instead of clicking through menus. It looks intimidating at first — just a black or white box with a blinking cursor — but it is one of the fastest ways to find files, check what is using your storage, restart stuck programs, or see what is actually running on your computer. You do not need to be a programmer to use it for basic maintenance.

Most people never open Terminal because the graphical interface (the windows and icons you normally use) handles everyday tasks fine. But when something goes wrong — a program freezes, your disk is full and you cannot find why, or you want to see exactly what is happening under the hood — Terminal often gets you an answer faster than clicking through settings.

Key Takeaways

  • Open Terminal by searching for it in Spotlight (Command + Space, then type "Terminal") or by navigating to Applications > Utilities > Terminal.
  • The command line shows your current location in your Mac's file system, and you can move between folders using the cd command.
  • Common maintenance commands include df -h to see disk space, top to watch what programs are using CPU, and ls to list files in a folder.
  • You can close Terminal by typing exit, closing the window, or pressing Command + Q.

The fastest way to open Terminal

Press Command + Space to open Spotlight search (the magnifying glass in the top right corner of your screen). Type "terminal" and press Enter. Terminal opens when ready.

If you prefer the traditional route, open Finder, click Applications in the sidebar, then double-click the Utilities folder. Terminal is in there. You can also drag Terminal to your Dock so it is one click away next time.

Understanding what you are looking at

When Terminal opens, you see a window with text that looks something like this:

Last login: Wed Jan 15 10:23:45 on ttys000 username@computername ~ %

The % symbol (or $ on some Macs) is the prompt. It means Terminal is waiting for you to type a command. The ~ (tilde) means you are in your home folder. When you type a command and press Enter, Terminal runs it and shows you the result.

Do not worry about making a mistake. Terminal will tell you if a command does not exist or if you do not have permission to run it. The worst that happens is you see an error message and try again.

Commands that show you what is happening on your Mac

Type these commands one at a time, press Enter after each, and read what appears. You cannot break anything by running these — they only show information, they do not change anything.

df -h shows how much disk space you have left. The output lists your drives and how full each one is. If you see 95% or higher on your main drive, your Mac will slow down noticeably.

top shows what programs are using your CPU right now, ranked by how much power they are using. Press the spacebar to refresh the list, or press Q to quit and return to the prompt. This is useful when your Mac feels slow — you can see exactly which program is the culprit.

ls lists the files and folders in your current location. Type ls -la to see hidden files too (files that start with a dot, like .DS_Store).

cd moves you to a different folder. For example, type cd Downloads to go into your Downloads folder. Type cd .. to go up one level. Type cd ~ to go back to your home folder anytime.

Restarting a frozen program from Terminal

If a program stops responding and you cannot force-quit it normally, Terminal can shut it down. Type killall followed by the program name. For example, killall Safari closes Safari completely, even if it is frozen.

Use this only when the program is actually stuck. Killing a program this way does not save your work, so you may lose unsaved documents. But it is faster than restarting your whole Mac when one program freezes.

Closing Terminal and what to do if something goes wrong

Type exit and press Enter to close Terminal properly. Or just close the window like any other program (Command + Q or the red close button).

If you type a command and nothing happens, or you see a blinking cursor with no prompt, Terminal is waiting for more input. Press Control + C to cancel the command and return to the prompt. If Terminal itself freezes, close the window and open a new one.

Everything you type in Terminal is temporary — closing the window does not change anything on your Mac. The commands you run do their work and then stop. The only exception is if you type a command that specifically deletes or moves files, which is why beginners should stick to the read-only commands listed above until they are comfortable.

Frequently Asked Questions

Is it dangerous to use Terminal?

Terminal is only dangerous if you copy and paste commands from the internet without understanding what they do. Stick to commands you type yourself or that you have looked up and understood. The read-only commands in this guide (df, top, ls, cd) cannot harm anything.

Why does my command say "command not found"?

You either misspelled the command or it does not exist on your Mac. Check the spelling and try again. Some commands require additional software to be installed first, but the basic ones listed here come with every Mac.

Can I undo something I did in Terminal?

It depends on the command. Read-only commands like ls and top cannot be undone because they do not change anything. Commands that delete or move files cannot be undone through Terminal itself — you would have to restore from a backup or use recovery software. This is why you should be cautious with commands you do not fully understand.

What is the difference between Terminal and Activity Monitor?

Activity Monitor is the graphical version of what Terminal shows you. Both let you see what programs are running and how much CPU or memory they use. Terminal is faster once you know the commands; Activity Monitor is easier to learn. You can use whichever you prefer.