For Mac users, OS X Mavericks packs a ton of cool features that were not available before, like Maps, App Nap and Notification Center to name just a few of them. Despite how capable Mavericks is though, it still lacks some functionalities that some would consider essential.
Considering that, let’s use this entry to find out about a few really cool features that you can enable using the Terminal app to supercharge your productivity on your Mac.
1. Select Text Right From the QuickLook Preview Window
I’m sure this has happened to you before: There’s a text file or document that has some important information you need, so you scroll through several ones using QuickLook until you find it. But once you do, instead of just getting the important data you need right away, you have to open the file using a native app and then find the piece of info all over again to copy it to your clipboard.
Using these commands on Terminal (in the order they are shown), you can forget about that issue and just select and copy text right from the QuickLook window when previewing any text file as shown in the image above.
and then, a command to restart the Finder for the changes to take effect:
2. Prevent the Preview and Quicktime Apps From Auto-Restoring Your Last Open File
This particular behavior of these two apps can be quite troublesome depending on the circumstances, especially if you use your Mac both at work and at home, since if you open Preview or Quicktime at work, these apps will also open the document or video you had been viewing previously.
And while there is no way to change this permanently through the apps’ settings, you can use these Terminal commands to do so.
Sleeping prevents you Mac from wasting energy and resources when you are not using it. But for those occasions when you want to keep it running even if you are not sitting in front of it, use this Terminal code.
caffeinate -t 7200
…where the 7200 represent the number of seconds you want your Mac to remain awake (2 hours in this case). So feel free to change that for any other number that better suits your needs.
4. Change the Location Where Your Screenshots Are Stored
By default, all the screenshots you take on your Mac are stored on your desktop. This behavior, while convenient, can get your desktop cluttered in no time if you take a decent amount of screenshots in a short span of time.
To change that, use this Terminal command replacing the ZZZ with the location of the folder you want your screenshots to reside from now onwards: