Language
November 28, 20264 min read

Mac Terminal Commands Cheat Sheet (2026)

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/zsh

If 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

CommandWhat it does
pwdShows the folder you're in
ls -laLists files, including hidden ones
cd ~Goes to your home folder
mkdir nameCreates a folder
cp a bCopies file a to b
mv a bMoves or renames a
rm fileDeletes 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

ActionShortcut
New windowCommand-N
New tabCommand-T
New remote connectionShift-Command-K
Show or hide InspectorCommand-I
Make fonts biggerCommand-Plus
Make fonts smallerCommand-Minus
Next tabControl-Tab
Enter or exit full screenControl-Command-F
Open Terminal settingsCommand-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.

Macky's iPhone app shows a terminal on the phone.

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 Dock

The 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.

Try Macky

Connect to your Mac terminal from your iPhone.