Two Mac OS terminal commands to remember

I just upgraded to Mac OS Mountain Lion and I had to use my two favorite terminal commands and thought I’d share them with you, even though you can easily find them in the internet.

First: Since OS X Lion Apple decided to hide the Library folder from the user.  Since for example the Lotus Notes Data folder is located there from time to time I need to access it.  To see it permanently you need to open the terminal and run the following command:

sudo chflags nohidden ~/Library

You will need to provide your admin password.

This will set the access rights so the Library folder is visible again. But be warned, this only lasts until you “repair” the disc / file permission using the disc utility. That will reset the folder to be hidden. Just rerun the command then.

The second one is regarding the fabulous Time Machine.  Whenever your near your Time Capsule or do your backups regulary when time machine is enabled, then everything is fine. But once you are on the road the Time Machine starts making backups on your local hard drive until you reach your home again. While this is very smart in regards of file history, this can be bad when you have a SSD with limited room left.  To turn of the local backups you need to run this command:

sudo tmutil disablelocal

Here, too, you will have to provide your admin password after firing the command.