Handy Terminal Commands I Keep Coming Back To (macOS, Windows, Linux)

A running list of commands I keep having to look up. Bookmark it and steal whatever is useful. macOS Back up your list of installed apps Handy before reinstalling macOS or setting up a new Mac: brew list > ~/Desktop/brew_installed_apps.txt mas list > ~/Desktop/macappstore_apps.txt # needs: brew install mas Better still, make a Brewfile that can reinstall everything in one go: brew bundle dump --file=~/Desktop/Brewfile brew bundle --file=~/Desktop/Brewfile # on the new Mac Download a video with yt-dlp brew install yt-dlp ffmpeg # as MP4 yt-dlp --recode-video mp4 "URL" # audio only, as MP3 yt-dlp -x --audio-format mp3 "URL" Only download things you have the right to keep. ...