macOS Tips & Tricks
A collection of useful macOS commands and tricks that I've discovered.
A personal collection of macOS tips and terminal commands that I find useful. I’ll keep updating this as I discover more.
Finder
Show/Hide Desktop Icons
Sometimes you need a clean desktop for presentations or screen recordings.
Hide desktop icons:
defaults write com.apple.finder CreateDesktop -bool false
killall Finder
Show desktop icons:
defaults write com.apple.finder CreateDesktop -bool true
killall Finder
Set Default Sort Order in Finder
For a single folder:
- Open the folder
- Menu bar > View > Show View Options (or press
⌘ + J) - Set your preferred “Sort By” and “Arrange By” options
Set as default for all folders:
- Press
⌘ + Jto open View Options - Configure your preferred sort (e.g., by Name, Date, Size)
- Click “Use as Defaults” at the bottom
Folders that already have custom settings will keep them. New folders will use the default.
Terminal
Quickly cd to a Folder
When you have a Terminal window open, these are the fastest ways to navigate to a folder:
Method A: Drag the folder icon from Finder directly into the Terminal window. It will auto-fill the complete path. Just type cd (with a space after), then drag the folder in and press Enter.
Method B: Drag the folder directly onto the Terminal icon in the Dock. It will open a new Terminal window already in that directory.
Related Articles
- What is a Terminal? - Terminal basics for beginners
- Claude Code for Beginners - Use AI in your terminal
- What is GitHub? - Version control from the terminal
Sources
- Apple Terminal User Guide - Official macOS terminal documentation
- macOS User Guide - Apple’s official Mac documentation
Last updated: February 2026
Get in Touch
Have questions or want to collaborate? Feel free to reach out!