Management,Odds and Ends,OS X,Tips August 4, 2012 at 12:10 pm

New 10.8 Unix Commands

With OS X 10.8 Mountain Lion came some new Unix commands that are very handy.  Among them is pgrep and pkill, which rolls grep into the ps command so you no longer have to pipe ps to grep in order to find a running process.  pkill does the same thing, but kills each process that you’ve grepped for.

Also included in Mountain Lion are tools for enabling FileVault 2 from CLI, setting up file shares and a command that allows you to prevent system sleep until after the script completes (among other uses).  This can come in handy because 10.8 has more agressive sleep than prior versions of OS X.

You can check out the details on each of these commands as well as several others on the StackExchange Mac Community Blog.

Nate Walck

Nate is a Systems Reliability Engineer at Dropbox, Inc in San Francisco, CA. He runs afp548.com along with Sam Keeley and is one of the founding members of the ##osx-server IRC channel on freenode.net. He loves being involved in the Mac Admin community and using Open Source projects whenever possible, especially Munki, The Luggage and Puppet.

More Posts

Follow Me:
Twitter

Comments are closed