4 Cool Mac Terminal Tips to Make You More Productive

Mac Terminal Tips

For Mac users, OS X Mavericks packs in a lot of cool features that weren’t there before, like Maps, App Nap and Notification Center, etc. Despite how capable Mavericks is, it’s still lacks some functionality that some consider essential.

Considering that, use this section to learn about a few really cool features you can enable with the Terminal app to enhance your productivity on your Mac.

Note: If you’re not familiar with Terminal, here’s a great article on how to get started with this incredibly useful Mac tool.

Ready? Here you have them.

1. Select Text Right from the QuickLook Preview Window

I’m sure this has happened to you before: There is a text file or document with some important information that you need, so you scroll through some information using QuickLook until you find it. that information. But once you do, instead of just getting the important data you need right away, you have to open the file with the original application, then find all the information again to copy it to the clipboard. mine.

Text in preview

Using these commands on Terminal (in the order they are displayed) you can forget that problem and simply select and copy text right from the QuickLook window when previewing any text file as shown in the image above.

First, the command to enable this feature:

See more:  How to Delete Snapchat Account on Android and iPhone in 2023

default says -g QLEnableTextSelection -bool true

and then a command that restarts Finder for the changes to take effect:

killall finder

2. Prevent Preview and Quicktime apps from automatically restoring your last opened 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, because if you open Preview or Quicktime at work, These apps will also open documents or videos that you have previously viewed.

Preview two open files

And while there’s no way to change this permanently through the app’s settings, you can use these Terminal commands to do so.

For fast times:

defaults write com.apple.QuickTimePlayerX NSQuitAlwaysKeepsWindows -bool false

To preview

default says com.apple.Preview NSQuitAlwaysKeepsWindows -bool false

3. Prevent your Mac from sleeping

Sleep mode prevents your Mac from wasting energy and resources when you’re not using it. But for those cases where you want to keep running even when you’re not sitting in front of it, use this Terminal code.

caffeine -t 7200

…where 7200 represents the number of seconds you want your Mac to stay idle (2 hours in this case). So feel free to change that for any other number that better suits your needs.

4. Change your screenshot storage location

By default, all screenshots you take on your Mac are stored on your desktop. This behavior, while convenient, can instantly clutter your screen if you take a large amount of screenshots in a short period of time.

To change that, use this Terminal command to replace ZZZ with the location of the folder you want your screenshots to be stored in from now on:

See more:  How to CTRL + ALT + DEL in Remote Desktop on Windows

default recording location com.apple.screencapture ZZZ

Terminal command

Cool Tip: Instead of typing all the path to the new destination folder, just drag it into the Terminal window right after the word ‘location’ in the command

There you have them. With just a little knowledge of Terminal, you can now save a lot of time and get things done more efficiently on your Mac. Enjoy!

Top image credit: blakespot

Categories: How to
Source: thpttranhungdao.edu.vn/en/

Rate this post

Leave a Comment