The Mac Terminal Reference is a guide to all the most useful terminal commands on the Mac. It covers only the most-used commands and leaves out the ones that aren’t so important. I also give you tips about getting started with bash and mac scripting, which will help you get started putting all this to you use.
2016 Edition: now updated to cover El Capitan’s new Terminal features, including Marks and Restorable Terminal Sessions.
Take control of your Mac! 61 of the most useful Mac Terminal commands collected for the first time in this handy guide and organized into categories:
– Terminal basics
– System commands
– Power Management & Energy Saving
– OS X Look and Feel
– Users and permissions
– Text Manipulation
– Other useful commands
– How to use temporary files instead of the clipboard
To put these tools into context we’ve also included brief primers on a range of Mac OS X functionality, including:
– ‘Getting started with the Terminal’ including a quick exercise
– bash scripting
– AppleScript, Automator, and Folder Actions
– Quick guide to Web Automation
– How to use the Mac OS X /etc/hosts file to:
– Block access to websites
– Easily run multiple websites on a personal web server (e.g.: MAMP) – great for web designers
This is not an exhaustive reference: We’ve focused on only the most useful stuff to give you the tools you need.
Mac Terminal Reference – Check out the Contents:
1. How to use Terminal.app
2. Terminal commands reference
Power Management / Energy Saving
Switch off Safe Sleep
OS X Look and Feel
Users and permissions
Other useful commands
An alternative to using the clipboard in OS X shell scripts
3. Get started with Bash scripting
4. Other ways to script OS X
File downloads as triggers
Some more thoughts about applications for this:
A quick note about Security
Integrating Terminal commands, Automator, and Applescript
5. Automating the web
A note about Automating Safari
How to use curl to automate the web
How to do things with grep
6. The Mac /etc/hosts file
What is the hosts file?
Where is the /etc/hosts file in Mac OS X?
Adding entries to /etc/hosts
Uses for the hosts file
7. El Caitan
Save / Restore Terminal sessions
“it’s just the sort of book that needs to exist.”
– Elliott Martin
Kindle, iPad, Desktop, or other?
UPDATE: Due to the EU VAT changes I am no longer selling this book directly. Please buy it from one of the ebook distributors below.