Mac Terminal Commands
Mac Terminal Commands
Copyright © 2019 MakeUseOf. For more cheat sheets, head over to www.makeuseof.com
Network Search
Ping host and display Find all files named <file>
ping <host>
status find <dir> -name inside <dir>. Use wildcards
Output whois info for a <"file"> (*) to search for parts of
whois <domain>
domain filenames
Download file via Output all occurrences of
curl -O <url/to/file>
HTTP, HTTPS, or FTP grep "<text>" <file> <text> inside <file> (add -i
Establish SSH for case insensitivity)
ssh <username>@<host> connection to <host> Search for all files
with user <username> grep -rl "<text>" <dir> containing <text> inside
scp <dir>
Copy <file> to a
<file><user>@<host>:/rem
ote/path
remote <host> Output
Output the content of
Homebrew cat <file>
<file>
Check brew for Output the contents of
brew doctor
potential problems <file> using the less
less <file>
brew install <formula> Install a formula command that supports
pagination and more
brew uninstall <formula> Uninstall a formula Output the first 10 lines of
List all the installed head <file>
brew list <file>
formulas Appends the output of
Display available <cmd> > > <file>
brew search <cmd> to <file>
formulas for brewing Direct the output of
Upgrade all outdated <cmd> > <file>
brew upgrade <cmd> into <file>
and unpinned brews Direct the output of
Fetch latest version of <cmd1> | <cmd2>
<cmd1> to <cmd2>
brew update homebrew and
formula
Remove older version
brew cleanup
of installed formula
Tap the cask
brew tap homebrew/cask repository from
GitHub
brew cask list List all installed casks
brew cask install <cask> Install the given cask
Uninstall the given
brew cask uninstall <cask>
cask
Copyright © 2019 MakeUseOf. For more cheat sheets, head over to www.makeuseof.com