$ ls index/

cheatsheets

macOS Cheatsheet

$cat cheatsheets/macos.md

Homebrew

brew update             # fetch latest formulae
brew upgrade            # upgrade all outdated packages
brew upgrade <pkg>      # upgrade specific package
brew cleanup            # remove old versions
brew doctor             # diagnose issues
brew list               # installed packages
brew info <pkg>         # details + dependencies

# Install casks (GUI apps)
brew install --cask warp
brew install --cask visual-studio-code

# Fix permissions after macOS update (Apple Silicon)
sudo chown -R $(whoami) /opt/homebrew

Terminal Utilities

# Open files/folders in Finder (or default app)
open .                  # open current directory in Finder
open ~/Downloads        # open folder
open file.pdf           # open with default app
open -a "Safari" https://example.com

# Clipboard
echo "hello" | pbcopy   # copy to clipboard
pbpaste                 # print clipboard contents
pbpaste > file.txt      # paste into file

# Prevent Mac from sleeping
caffeinate              # run until Ctrl+C
caffeinate -t 3600      # sleep prevention for 1 hour

# Text to speech
say "Build complete"

# Show/hide hidden files in Finder via terminal
defaults write com.apple.finder AppleShowAllFiles true && killall Finder
defaults write com.apple.finder AppleShowAllFiles false && killall Finder

Shell

# Make a script executable
chmod +x ./script.sh

# Show what's listening on a port
lsof -i :3000
lsof -i :3000 | grep LISTEN

# Kill process on a port
kill -9 $(lsof -t -i :3000)

Network

# Flush DNS cache
sudo dscacheutil -flushcache && sudo killall -HUP mDNSResponder

# Show Wi-Fi network name
networksetup -getairportnetwork en0

# List all network services
networksetup -listallnetworkservices

# Show current IP addresses
ifconfig | grep "inet "

Screenshots

ShortcutResult
Cmd + Shift + 3Full screen → file on Desktop
Cmd + Shift + 4Selection → file on Desktop
Cmd + Shift + 4, then SpaceClick window → file on Desktop
Cmd + Shift + 5Screenshot/recording options panel
Add Ctrl to any aboveCapture to clipboard instead of file

Finder Shortcuts

ShortcutAction
Cmd + Shift + .Toggle hidden files
Cmd + Shift + GGo to folder (type path)
Cmd + SpaceSpotlight search
SpaceQuick Look selected file
Cmd + DeleteMove to Trash
Cmd + Shift + DeleteEmpty Trash
Cmd + Option + LOpen Downloads folder

Chrome

SettingPath
Do Not TrackSettings → Privacy and security → Do not track

Let's build something impactful together.

ertughaskan@gmail.com Find me online
Availability
WorkAvailable
RelocationOpen
FreelanceClosed
© 2026 Ertugrul Alex Haskan /cookiesVancouver, BC 🇨🇦

This site uses one optional Google Analytics cookie to see which pages get read. Nothing is set until you choose — cookie details.