nixers
Some useful terminal commands in OS X - Printable Version
+- nixers (https://nixers.net)
+-- Forum: Operating Systems & Administration (https://nixers.net/Forum-Operating-Systems-Administration)
+--- Forum: OS X (https://nixers.net/Forum-OS-X)
+--- Thread: Some useful terminal commands in OS X (/Thread-Some-useful-terminal-commands-in-OS-X)


Some useful terminal commands in OS X - Deliverance - 10-07-2013

Though most of these might be well known I figured I'd make a thread about them anyway.

How to show hidden files in Finder and the terminal.
This command will show all hidden files inside of Finder
Code:
defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder
To hide files then just change the value to FALSE and kill finder again.

This command will show hidden files inside of the treminal
Code:
ls -a

The PMSET command. This command allows you to better fine tune your Mac's behavior.
Displays setting in use
Code:
pmset -g

To set the display sleep time to 10 minutes use this:
Code:
pmset -b displaysleep 10

To set a time as to when your mac should poweron use this:
Code:
pmset repeat wakeorpoweron MTWRF 8:00:00

Highlight items in stacks.
Code:
defaults write com.apple.dock mouse-over-hilite-stack -boolean yes
killall Dock
To disable item highlighting then change the value to FALSE.

Disable the dashboard if you have memory issues.
Code:
defaults write com.apple.dashboard mcx-disabled -boolean yes
killall Dock

These are just some basic commands I have come across while using OS X. I hope this is useful to someone lol.


RE: Some useful terminal commands in OS X - dionysus - 10-07-2013

Thankyou for the command to disable the dashboard. Don't really have memory problems except if Im watching netflix but it still helps.


RE: Some useful terminal commands in OS X - yrmt - 10-07-2013

Man, wait when we start that wiki, I have hundreds of these commands.

For example I use pmset -g Batt a lot.


RE: Some useful terminal commands in OS X - Deliverance - 10-07-2013

(10-07-2013, 07:48 AM)yrmt Wrote: Man, wait when we start that wiki, I have hundreds of these commands.

For example I use pmset -g Batt a lot.
Okay haha just figured I'd post them anayway :P


RE: Some useful terminal commands in OS X - yrmt - 10-07-2013

Don't worry, the post is appreciated. Thanks!


RE: Some useful terminal commands in OS X - dami0 - 24-07-2014

These are pretty damn good. Reminds me of the time I realised there was such a thing as "open" on Macs. My mind imploded.


RE: Some useful terminal commands in OS X - atnd - 20-12-2014

I'm really interested about knowing this kind of stuff, so I'm searching info. Do you have some books and/or sites to learn about mac os x?


RE: Some useful terminal commands in OS X - eye - 25-12-2014

(10-07-2013, 07:48 AM)yrmt Wrote: Man, wait when we start that wiki, I have hundreds of these commands.

We are starting a wiki?


RE: Some useful terminal commands in OS X - jmbi - 26-12-2014

(25-12-2014, 08:50 AM)eye Wrote:
(10-07-2013, 07:48 AM)yrmt Wrote: Man, wait when we start that wiki, I have hundreds of these commands.

We are starting a wiki?

That was posted 530 days ago. We had a wiki, but some people threw a fit over things that were posted on it, so we don't have a wiki anymore.