Mac Guides
Advanced
2 min read 7 stepsApril 2, 2026Verified April 2026Mac Terminal Basics for Beginners
Learn useful Terminal commands that make your Mac more powerful and efficient.
1
Open Terminal
~15sGo to Applications > Utilities > Terminal. Or press ⌘+Space, type "Terminal," and press Enter. You'll see a window with a blinking cursor waiting for commands.
2
Navigate the file system
~15spwd: shows your current location. ls: lists files in the current folder. cd Documents: moves into Documents. cd ..: moves up one folder. cd ~: goes to your home folder.
3
File operations
~15scp file.txt copy.txt: copies a file. mv file.txt Documents/: moves a file. mkdir NewFolder: creates a folder. rm file.txt: deletes a file (permanent, no Trash). Use with caution.
4
Useful everyday commands
~15sopen .: opens current folder in Finder. open file.pdf: opens a file with its default app. top: shows running processes (like Activity Monitor). killall Finder: restarts Finder if it freezes.
5
Show hidden files
~15sType: defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder. This reveals hidden system files in Finder. Reverse with "false" instead of "true."
6
Clear DNS cache
~15sType: sudo dscacheutil -flushcache && sudo killall -HUP mDNSResponder. Useful when websites aren't loading properly after DNS changes. Enter your password when prompted.
7
Safety first
~15sNever run commands from untrusted sources. Commands starting with "sudo" have full system access. "rm -rf" deletes files permanently with no confirmation. When in doubt, don't run it.
You Did It!
You've completed: Mac Terminal Basics for Beginners
Need more help? Get Expert Help from a TekSure Tech
Rate this guide
How helpful was this guide?
mac
terminal
command-line
productivity
advanced
Official Resources
Sources used to create and verify this guide. View all sources →
Still stuck? Let a pro handle it.
Our verified technicians can fix this issue for you — remotely or in person.
Related Guides
How to Turn Your Mac On and Off
Learn the proper way to start up and shut down your Mac for everyday use.
1 min read
How to Connect to Wi-Fi on Mac
Get your Mac online by connecting to a wireless network quickly and easily.
1 min read
How to Open and Close Apps on Mac
Learn the basics of launching and quitting applications on macOS.
1 min read