This cheat sheet covers the Terminal commands and shortcuts you'll reach for most on a Mac. Type a command in Terminal and press Return.
Macky puts the same Mac terminal on your iPhone, so you can run any of these from another room too.
Check Your Shell First
Current macOS uses zsh as the default shell. Apple switched from bash to zsh in macOS Catalina, and bash is still included.
To set your login shell to zsh, run this and enter your password when asked:
chsh -s /bin/zshIf you see "The default interactive shell is now zsh." after switching to bash, the same chsh -s /bin/zsh command removes it, according to iBoysoft.
Basic Commands for Moving Around and Managing Files
| Command | What it does |
|---|---|
pwd | Shows the folder you're in |
ls -la | Lists files, including hidden ones |
cd ~ | Goes to your home folder |
mkdir name | Creates a folder |
cp a b | Copies file a to b |
mv a b | Moves or renames a |
rm file | Deletes a file |
find . -name "*.txt" | Searches by file name |
grep -r "text" . | Searches inside files |
open . | Opens the current folder in Finder |
Terminal App Shortcuts
| Action | Shortcut |
|---|---|
| New window | Command-N |
| New tab | Command-T |
| New remote connection | Shift-Command-K |
| Show or hide Inspector | Command-I |
| Make fonts bigger | Command-Plus |
| Make fonts smaller | Command-Minus |
| Next tab | Control-Tab |
| Enter or exit full screen | Control-Command-F |
| Open Terminal settings | Command-Comma |
Apple says Command-Period is equivalent to Control-C, which stops a running command. Shortcuts can vary by language and keyboard layout. The full list is on Apple's Terminal shortcuts page.
Run These Commands from Your iPhone
Macky opens your Mac's own shell on your iPhone, so zsh or bash sessions run on the Mac with your usual setup.

A key bar gives you Esc and Tab. It also has Ctrl and the arrow keys. You can save your own shortcuts. The connection is end-to-end encrypted with no open ports on your network. For setup, see how to control Mac Terminal from iPhone.
Remove the Dock Delay
This command removes the delay before the Dock appears when it's set to hide:
defaults write com.apple.dock autohide-delay -float 0 && killall DockThe killall Dock part relaunches the Dock so the change takes effect. macos-defaults.com lists it as tested from Mojave through Sequoia.
Where to Go Next
To keep your Mac awake from Terminal, read caffeinate on Mac. To reach your Mac from elsewhere over SSH, see how to SSH into a Mac. For other options, there's Terminal on iPhone and how to access your Mac remotely.
FAQ
How to enter commands into Mac?
Open Terminal, type the command, and press Return. The command runs in your current shell, which is zsh by default on current macOS.
What are some basic Terminal commands?
Start with pwd to see where you are. Use ls -la to list files including hidden ones. Use cd to move between folders. Use mkdir, cp, and mv to manage files. The table above has each one.
What are some Terminal commands I can use to speed up my Mac?
defaults write com.apple.dock autohide-delay -float 0 && killall Dock removes the delay before the Dock appears when it's set to hide. It works on macOS from Mojave through Sequoia, according to macos-defaults.com.
What is Ctrl+L for Mac?
In most shells Ctrl+L clears the visible screen and keeps your current command line. Apple's Terminal shortcut page doesn't list it, so treat it as a shell behavior.
Related Guides & Comparisons
Try Macky
Connect to your Mac terminal from your iPhone.