How To: 13 Terminal Commands Every Mac User Should Know
When you think of Terminal, you probably imagine some hacker sitting in front of their computer in a dimly lit room trying to break into an FBI database. In reality, it's just a simple tool that can make using your Mac much easier.Now, I'm not saying that learning Terminal commands is easy, but using them definitely is. I've compiled a list of some basic commands that will get you started on your journey to mastering Mac OS X, whether it's Mavericks, Yosemite, or even an older system like Lion.Don't Miss: 6 Tweaks You Should Be Using on Your Mac Right Now Don't Miss: 8 Menu Bar Apps Every Mac Power User Needs I've run all of these commands on my MacBook running Yosemite, but if you are an early El Capitan adopter, your mileage may vary due to the fact that it's an early beta still.
#1: Restart Your Mac Automatically After It FreezesMacs may be reliable, but they have been known to freeze up on occasion. If you'd rather not deal with having to manually force a shutdown, you can use this Terminal command to make OS X instantly reboot on a freeze.sudo systemsetup -setrestartfreeze on
#2: Check for Software Updates DailyBy default, the Mac App Store checks for updates on a weekly basis, but if you'd rather get app updates as soon as possible, you can use this command to have it check daily.defaults write com.apple.SoftwareUpdate ScheduleFrequency -int 1
#3: Change Screenshot File TypeIf you don't like that screenshots are saved as PNG files on your Mac, you can switch it to either BMP, GIF, JPG, PDF, or TIFF instead. Just be sure to change the "png" portion of the below command to your desired file extension.defaults write com.apple.screencapture type -string "png"
#4: Change Screenshot LocationDon't like screenshots cluttering up your desktop? You can change the save location using the following command. Just swap out the "/folderlocation" part with the full location of the folder you want. More details here.defaults write com.apple.screencapture location /folderlocation Note: see the end of this guide for instructions on using folder locations with spaces in their name.
#5: Show All Hidden Files & FoldersUnlike in Windows, there is no option to view hidden files and folders in Mac OS X, unless you know the exact location. But by using this Terminal command, you can make them all visible. To hide them again, change "true" to "false."defaults write com.apple.finder AppleShowAllFiles -bool true To see the changes appear immediately, make sure to hold "Alt" on your keyboard, right-click on Finder in your Dock, then click on "Relaunch."
#6: Hide or Unhide Files & Folders IndividuallyIf you don't want to see every hidden file and folder on your Mac, you can unhide them one by one instead. As an example, the Library folder is the biggest one that most people want to unhide, so let's do that. (Note that ~ is a shortcut for your main username directory.)chflags nohidden ~/Library/ Now let's try it with a file. The following one will hide the Secrets folder in my Documents.chflags hidden ~/Documents/Secrets Note: see the end of this guide for instructions on using file and folder locations with spaces in their name.
#7: Automatically Open a Finder Window When a Drive Is MountedTo make it so that Finder automatically loads a new window any time a flash drive (or any other type of volume) is mounted, use these next commands:defaults write com.apple.frameworks.diskimages auto-open-ro-root -bool true defaults write com.apple.frameworks.diskimages auto-open-rw-root -bool true defaults write com.apple.finder OpenWindowForNewRemovableDisk -bool true Just change them back to "false" if you want to revert back.
#8: Disable the Warning When Emptying the TrashIf you like to live life on the edge and not worry about accidentally deleting a file that you actually put in the Trash, you can use the command below to disable that pop-up warning.defaults write com.apple.finder WarnOnEmptyTrash -bool false
#9: Securely Delete Files IndividuallyIf you want to securely erase files from your Mac, but don't want to make "Secure Empty Trash" the default, you can securely shred files one by one in Terminal. The following command uses one-pass overwriting before trashing. (Substitute "/draggedfile" by dragging the file you want over.)srm -s /draggedfile And this one uses seven passes:srm -m /draggedfile If it's a folder you want to get rid of, use -rf after the srm part.srm -rf /draggedfolder Click here to see more options for securely erasing files/folders.
#10: Add Send Shortcut to the OS X Mail AppThe Mail app does not come with a hotkey to send an email since the Enter key is only set to insert a line break. But by using the following command, you'll create a new keyboard shortcut (Command + Enter) for sending mail.defaults write com.apple.mail NSUserKeyEquivalents -dict-add "Send" -string "@\\U21a9?
#11: Disable Automatic Emoji SubstitutionFor those of you who like to live in the '90's state of mind, you can make it so that emoji no longer replaces traditional emoticons with this.defaults write com.apple.messageshelper.MessageController SOInputLineSettings -dict-add "automaticEmojiSubstitutionEnablediMessage" -bool false
#12: Add Extra Information to Login WindowThe login window doesn't reveal much information about your device, but if you'd like it to show some extra info, like your IP address and OS version, use this next command. The information appears when you click on the menu bar's clock and is displayed one at a time.sudo defaults write /Library/Preferences/com.apple.loginwindow AdminHostInfo HostName
#13: Make Terminal Talk to YouThis last Terminal command makes it so you have you own personal robot voice generator. All you have to do is enter "say" and add text inside quotes.
Note for Folder/File Names with Spaces in ThemFor some of the tips above, like hiding specific folders or changing the screenshot save location, the location's name might have a space in it. Using just a space in Terminal won't work. Instead, add a \ after each word except the last, while keeping the spaces. For example:top secret picture.jpg Would be:top\ secret\ picture.jpg
What Are Your Favorite Terminal Commands?Have any other must-know Terminal commands that didn't make the list? Share them with us in the comment section below.Follow Apple Hacks over on Facebook and Twitter, or Gadget Hacks over on Facebook, Google+, and Twitter, for more Apple tips.
Have you ever wanted to change the status bar on your Android phone or tablet? Maybe you wanted to change the position of the clock, add a battery percentage, or just get a different look. Whatever your reason, there's a simple way to customize your status bar-and it doesn't even require root access.
Get Lollipop-Style Status Bar Icons on Android Jelly Bean or
It's rare that a developer listens to the wishes of the masses, but that's exactly what CyanogenMod has done with their new CyanogenMod Installer, which automates the entire ROM installation process on your HTC One or other Android device.
Nexus 6: How to Revert to Stock | Android Explained
Step 2: Browse Through Available Shortcuts. Begin by selecting shortcuts to create; anything from launching an activity, turning on the flashlight, opening a specific URL, changing the ringer mode, toggling Wi-Fi, expanding the notification panel, and more are available to place on your home screen.
How to Make App Shortcuts on Your Galaxy Note 2's Lock Screen
The phone is great and silky smooth so far but my biggest gripe and I know this is something I could become accustomed too if I had too but I was hoping that maybe there was an easy way to swap the placement of the two buttons. On Samsung's the back button is on the right and the recent apps button on the left.
Android Basics: How to switch the placement of the recents
How do I edit basic info on my profile and choose - Facebook
For example, one of my friends is a model: she's attractive, and her photo shoots are often artsy, but it's nothing you'd want your boss asking you about because they peeked over your shoulder at
News: The Complete List of Marshmallow-Compatible Xposed Modules News: Xposed Installer Gets New Features & UI in Massive Update How To: Install ParrotSec Sealth and Anonsurf Modules on Kali 2.0 Forum Thread: How to Make a 3D MODULAR ORIGAMI Picture - "Lion" 0 Replies
This iPhone is also known as sim free iPhone by Apple.The SIM-free iPhone comes without a wireless contract commitment or carrier financing. So please make sure to purchase unlocked i phone. Answered by Neeraj B from Presto
How To Unlock iPhone 7 (Plus) | IMEI Phone Unlock: Official
Google has a lesser-known Android app called Device Assist that might just be one of the most useful programs the company has ever published. It offers interactive guides and general tech support for Android, plus it can diagnose your device and help you fix any issues it finds.
How to Keep Your PC Running Fast and Smooth - wikiHow
How To : TapDeck Is a Beautiful Live Wallpaper That Adapts to Your Taste in Photography One of the many unique features that sets Android apart from other mobile operating systems is its live wallpaper system.
How to Change Your Wallpaper with 3 Finger Tap. « Nexus
Although you're given multiple sharing options, like Facebook Messenger, the only stable format to share to is Hangouts, which is one of few problems with the app. Hopefully there is an update scheduled in the near future because it force-closes on occasion and takes a little too long, in my opinion, to generate GIFs.
3 easy ways to resell your old iPad - mashable.com
With the iPhone 4S you finally have the ability to copy and paste text (or images) from one place to another. This right granted to every computer user took awhile to make it to the iPhone, but Apple has added Copy and Paste (and Cut) functions — and, in its own inimitable way, brought pizzazz to this long-requested feature.
How to Cut & Paste a Document on an iPhone | Chron.com
How to Copy and paste video files on your iPhone
Interested in teaching an online course using your own server but can't quite figure out how to install everything you'll need? This video demonstrates how to install Moodle, the free, open source course management utility, to your server via the Webmin interface.
How to Upload Moodle to your Server - YouTube
0 comments:
Post a Comment