pwd
Learn in Module 2 →Print working directory. Shows your current location.
Quick reference for essential Terminal commands. Every command includes examples, flags, and links to learn more.
Want to actually learn these? Take the free courseCreate, read, copy, move, and delete files
Display the entire contents of a file.
Display the first 10 lines of a file.
Display the last 10 lines of a file.
View a file with scrolling. Press q to exit.
Make a new directory (folder).
Create an empty file or update a file's timestamp.
Copy a file or folder.
Move or rename a file or folder.
Remove (delete) a file. No trash, permanent deletion.
Show the manual page for any command.
Open a file or folder with the default app.
Find files and search within files
Search for files by name, size, date, or other criteria.
Search for text within files.
Copy, paste, pipe, and redirect output
Copy input to the macOS clipboard.
Paste the contents of the macOS clipboard.
Send output from one command to another.
Redirect output to a file (overwrites existing content).
Append output to a file (adds to existing content).
Print text or variable values to the screen.
Disk space, history, and system info
Show your command history.
Clear the Terminal screen.
Show disk space usage for all drives.
Show disk usage for files and folders.
Show macOS version information.
Show network configuration.
Show the current date and time.
Images, compression, and downloads
Resize and convert images.
Create a compressed zip archive.
Extract a zip archive.
Download files from URLs.
File permissions, aliases, and environment
Change file permissions.
Run a command as administrator.
Create a shortcut for a command.
Reload a configuration file.
Set an environment variable.
Press Cmd + Space to open Spotlight, type "Terminal", and press Enter. Or find it in Applications > Utilities > Terminal.
Use the pwd command (print working directory). It shows the full path of your current location.
Use ls -a to show hidden files, or ls -la to show hidden files with details like size and date.
Use rm -r foldername to delete a folder and all its contents. Warning: this is permanent and cannot be undone.
Use cp source destination. For example: cp file.txt backup.txt. For folders, add -r: cp -r folder/ backup/
Sudo means "superuser do". It runs a command with administrator privileges, bypassing normal restrictions. Use carefully.
This cheat sheet shows you what commands exist. The course teaches you when and why to use them.
Start the Free Course