Quick Answer
Terminal is a built-in app (Applications > Utilities > Terminal) where you control your Mac by typing commands. Start with pwd, ls, cd, open and man. Learn the Control shortcuts, install Homebrew for extra tools, and treat sudo and rm as dangerous. Never paste commands from a website you don’t trust.
Key Takeaways
- Terminal is safe to explore if you stick to read-only commands first.
- zsh is your default shell on an M3 MacBook.
- A few Control-key shortcuts make Terminal feel fast.
- Homebrew installs on Apple silicon in
/opt/homebrew. - sudo and rm -rf need respect. There’s no undo.
- Never paste commands you don’t understand, especially from pop-ups or unknown websites.
What Is the Terminal on a MacBook?
Terminal is a built-in Mac app that lets you control macOS by typing commands instead of clicking. On an M3 MacBook it runs the zsh shell by default. You can manage files, check system health, install developer tools and automate tasks, all faster than menus once you know a few commands.
How Do You Open Terminal?
Pick whichever is easiest:
- Press Command + Space, type “Terminal” and press Return
- Go to Finder > Applications > Utilities > Terminal
- Add it to your Dock and keep it handy
You’ll see a prompt that shows your username, your Mac’s name and the current folder, followed by a cursor. Type a command and press Return to run it.
The 12 Commands to Learn First
These are safe, and they teach you how Terminal thinks:
| Command | What it does |
|---|---|
pwd | Shows the folder you’re in |
ls | Lists files in this folder |
ls -la | Lists everything, including hidden files, with details |
cd Documents | Moves into the Documents folder |
cd .. | Moves up one folder. cd ~ goes home. |
mkdir Projects | Creates a new folder |
cp -R source destination | Copies a file or folder |
mv oldname newname | Moves or renames |
open . | Opens the current folder in Finder |
cat notes.txt | Prints a text file |
man ls | Shows the manual for any command (press q to exit) |
clear | Clears the screen |
A handy trick: drag a file or folder from Finder into the Terminal window and it types the full path for you.
Which Terminal Shortcuts Save the Most Time?
Most Terminal shortcuts use Control, not Command, so don’t mix them up.
| Shortcut | What it does |
|---|---|
| Up Arrow | Brings back previous commands, so you can repeat them with Return |
| Control + C | Stops a running command |
| Control + A / E | Jump to the start / end of the line |
| Control + W | Delete the word before the cursor |
| Control + U | Delete everything before the cursor |
| Control + R | Search your command history |
| Control + L or Command + K | Clear the screen |
| Tab | Auto-complete file and folder names |
!! | Repeat the last command |
Tab completion alone will save you hours of typing.
Which Mac-Specific Commands Are Worth Knowing?
macOS has useful commands that Linux guides don’t mention:
| Command | What it does |
|---|---|
open file.pdf | Opens a file in its default app. Use open -a TextEdit file.txt for a specific app. |
pbcopy < file.txt | Copies a file’s contents to the clipboard |
pbpaste | Prints what’s on the clipboard |
caffeinate -d | Keeps the Mac awake until you press Control + C |
mdfind -name invoice | Searches for files by name using Spotlight’s index |
screencapture -i ~/Desktop/shot.png | Takes an interactive screenshot |
killall Finder | Restarts Finder if it misbehaves |
killall Dock | Restarts the Dock |
A useful setting: to send screenshots to their own folder, create it first, then run:
mkdir -p ~/Pictures/Screenshotsdefaults write com.apple.screencapture location ~/Pictures/Screenshots && killall SystemUIServer
How Can You Check Your M3 MacBook’s Health?
Terminal can answer questions the menus hide:
| Question | Command |
|---|---|
| Is this an Apple silicon Mac? | uname -m (shows arm64) |
| Which chip do I have? | sysctl -n machdep.cpu.brand_string |
| What’s my battery doing? | pmset -g batt |
| What’s my battery condition and cycle count? | system_profiler SPPowerDataType | grep -E "Cycle Count|Condition|Maximum Capacity" |
| How full is my drive? | df -h / |
| What’s using space in Downloads? | du -sh ~/Downloads |
| What’s using my CPU? | top -o cpu (press q to quit) |
| Is the Mac under thermal stress? | sudo powermetrics -s thermal -n 1 |
| Is System Integrity Protection on? | csrutil status |
The exact output of some commands changes between macOS versions. If you’re curious about heat, read our guide to MacBook Pro M2 overheating and MacBook Air M3 overheating prevention alongside the thermal check.
How Do You Install Software With Homebrew?
Homebrew is a package manager that installs command-line tools and apps with one command. To install it, go to brew.sh and copy the official install command from there, rather than from anywhere else.
On an M3, Homebrew installs in /opt/homebrew. When it finishes, it shows a couple of lines to add to your shell, so follow them. After that, you can use:
brew install wgetto install a toolbrew updateandbrew upgradeto keep things currentbrew listto see what’s installedbrew uninstall wgetto remove it
If an app asks for Intel compatibility, install Rosetta once with:
softwareupdate --install-rosetta --agree-to-license
How Do You Customise Terminal?
Make shortcuts with aliases. Open your shell config file in the simple nano editor:
nano ~/.zshrc
Add a line such as:
alias ll='ls -la'
Press Control + O then Return to save, and Control + X to exit. Then run source ~/.zshrc to apply it. Now ll does the whole job.
Change the look. Go to Terminal > Settings > Profiles to change the font, colours and window size, and the app lets you keep several tabs open (Command + T).
Can You Schedule Things in Terminal?
Yes. Apple documents the pmset command for scheduling your Mac to wake, sleep or shut down. For example:
pmset -g schedshows the current schedulesudo pmset repeat wake M 8:00:00schedules a wake every Monday at 8:00 a.m.sudo pmset repeat cancelcancels it
Which Commands Fix Everyday Problems?
Terminal can solve problems the menus can’t. These are safe, common fixes:
| Problem | Command | Our guide |
|---|---|---|
| Crackling or no sound | sudo killall coreaudiod | MacBook Air audio guide |
| Finder or Dock frozen | killall Finder or killall Dock | macOS tips for new users |
| Update won’t appear | softwareupdate --list | Mac not updating macOS |
| Need a full installer | softwareupdate --list-full-installers | Mac not updating macOS |
For shortcuts you can use outside Terminal, see our guide to hidden MacBook features and shortcuts.
What Are the Safety Rules?
Terminal does exactly what you tell it, immediately, and often with no undo. Follow these rules:
- Read before you run. If you don’t understand a command, look it up with
manor search for it first. - Treat
sudoseriously. It runs a command as an administrator. Only use it with commands you trust. rmdeletes permanently. Files removed this way skip the Trash.rm -rfon the wrong folder can destroy data. Check twice.- Never paste commands from pop-ups or unfamiliar sites. A common scam tells you to paste a “fix” or “verification” command into Terminal. That can install malware.
- Don’t disable System Integrity Protection. You almost never need to.
- Back up first if you’re experimenting. Time Machine makes mistakes recoverable.
- Test on a harmless folder before running a command on something important.
If you ever delete the wrong thing, stop using the Mac and read our guide to MacBook data recovery.
How Should You Learn Terminal Without Overwhelm?
- Week 1: Navigation:
pwd,ls,cd,open, Tab and the Up Arrow - Week 2: Editing shortcuts: Control + A, E, W, U and R
- Week 3: System checks:
df -h,pmset -g batt,top - Week 4: Install Homebrew and create your first alias
Practise a little each day, and rely on man and --help when you forget something.
When Terminal Doesn’t Fix It
If commands, restarts and updates haven’t solved a slow, freezing or unstable Mac, the problem may go deeper than settings. A technician can help with MacBook software repair in Dubai, and you’ll be able to describe exactly what you’ve already tried.
FAQ: Terminal on an M3 MacBook
Is Terminal safe to use?
Yes, if you stick to commands you understand and avoid pasting unknown ones. Read-only commands like ls, pwd and df can’t harm anything.
What shell does an M3 MacBook use?
zsh. It’s the default on modern macOS.
Where does Homebrew install on an M3 Mac?
In /opt/homebrew, not the older /usr/local location used on Intel Macs.
How do I stop a running command in Terminal?
Press Control + C.
Is Terminal the same as Command Prompt on Windows?
Similar idea, but Terminal runs a Unix-style shell, so the commands differ (ls instead of dir, for example).
Take Control, One Command at a Time
You don’t need to memorise hundreds of commands to benefit from Terminal. Learn the navigation basics, the Control shortcuts and a few system checks, respect the safety rules, and you’ll have real control over your M3 MacBook.
And if a problem is bigger than a command can fix, message us on WhatsApp with your model and what’s happening, and we’ll point you to the next step.
Other Services:
- Need other AirPods repairs? Check out Milaajβs macbook repair services in Dubai.
- Looking to upgrade? Learn about selling your used MacBook in Dubai.
- For Apple users, check Apple trade-in options in Dubai.
π Visit Any Milaaj Branch in Dubai
πΉ Bur Dubai
Milaaj Mobile and Laptop Repair Dubai
π 055 258 8477
π Google Maps
πΉ Al Barsha
Milaaj Mobiles and Laptop Repair Al Barsha
π 052 596 2846
π Google Maps
πΉ Al Barsha 3
Milaaj Mobiles and Gaming Store
π 052 3405 814
π Google Maps
πΉ Al Nuaimiya
Milaaj Mobiles and Laptops Ajman
π 055 788 9654
π Google Maps
Shop Locations: Al Barsha | Bur Dubai | Reef Mall, Salah Al Din | Al Nuaimiya, Ajman
Email: support@milaaj.com
Operating Hours: Monday β Sunday







Leave a Reply