15 Feb 2026

Frequently Used Terminal Commands

A practical reference list of commonly used macOS terminal commands for daily development and system management.

macos terminal cli unix development

macOS is built on Unix, which means powerful terminal commands are available for file management, networking, system monitoring, and development tasks.

Below is a structured list of frequently used macOS commands.

To Stop Terminal Process

File & Directory Management

File Viewing & Editing

System Information

Disk & Storage

Process Management

Network Commands

Package Management (Homebrew)

Git Commands (Development)

Permission & Ownership

Environment & Shell


To find files larger than a specific size in macOS, use the find command with the -size option.

Find Files Larger Than 2GB (Entire System)

sudo find / -type f -size +2G 2>/dev/null

Find Files Larger Than 3GB

sudo find / -type f -size +3G 2>/dev/null

Search Only Inside Home Directory (Safer & Faster)

find ~ -type f -size +2G

Show File Size Along With Name (Sorted by Size)

find ~ -type f -size +2G -exec ls -lh {} ; | sort -k5 -h

Find Top 20 Largest Files (Alternative Method)

sudo du -ah / 2>/dev/null | sort -rh | head -20

Size Units in find

Examples:

-size +500M -size +1G -size +5G

Share This Page