Developer

macOS Terminal Commands

Search common macOS Terminal commands for files, network, processes, Homebrew, and system tasks.

ls

List files and folders.

Files

ls -la

cd

Change the current directory.

Files

cd ~/Documents

cp

Copy files or directories.

Files

cp file.txt backup.txt

mv

Move or rename files.

Files

mv old.txt new.txt

mkdir

Create a directory.

Files

mkdir reports

cat

Print file contents.

Files

cat package.json

grep

Search text from files or command output.

Search

grep -R "TODO" .

find

Find files by name or condition.

Search

find . -name "*.log"

chmod

Change file permissions.

Permissions

chmod +x script.sh

ps

List active processes.

Process

ps aux

kill

Send a signal to a process.

Process

kill -9 1234

lsof

List open files and ports.

Network

lsof -i :3000

ping

Test connectivity to a host.

Network

ping example.com

curl

Make HTTP requests from Terminal.

Network

curl -I https://example.com

brew

Manage packages with Homebrew.

Packages

brew install node

open

Open files, folders, or URLs.

System

open .

pwd

Print the current directory.

Files

pwd

rm

Remove a file.

Files

rm old.log

touch

Create a file or update its timestamp.

Files

touch notes.txt

du

Show disk usage for files and folders.

Files

du -sh .

df

Show free disk space.

Disk

df -h

ditto

Copy files and directories with macOS metadata support.

Files

ditto source destination

pbcopy

Copy terminal output to the macOS clipboard.

Clipboard

cat file.txt | pbcopy

pbpaste

Paste clipboard contents into terminal output.

Clipboard

pbpaste

sw_vers

Show macOS version information.

System

sw_vers

system_profiler

Display detailed hardware and software information.

System

system_profiler SPHardwareDataType

defaults

Read or write macOS user defaults.

System

defaults read com.apple.finder

softwareupdate

Check and install macOS software updates.

System

softwareupdate -l

launchctl

Manage launch agents and daemons.

Service

launchctl list

ifconfig

Show network interface configuration.

Network

ifconfig

netstat

Show network status and routes.

Network

netstat -rn

scutil

Inspect and configure system network settings.

Network

scutil --dns

say

Speak text through macOS text-to-speech.

System

say "Hello NovaKit"

FAQ

Questions people ask

What is the macOS command lookup for?

It helps you quickly find common macOS terminal commands, understand what they do, and copy example usage.

Can I filter commands by category?

Yes. Use the category controls to narrow results by files, network, process, system, and other command groups.

Can I copy command examples?

Yes. Each command includes a copy button with a short copied confirmation message.

Related tools

Continue working