Great list, some really useful commands. One question: What's wrong with "locate"? It is really fast because the file system contents are indexed. As long as you understand that it's not going to pick up the latest new files without running "updatedb" (sudo/usr/libexec/locate.updatedb" in os x) first, it's much better than find if you're doing a quick search. However, I didn't know spotlight has a CLI. Cool.
OS X Command Line Utilities
41–50 of 210 posts
Re: OS X Command Line Utilities
#42:)
Re: OS X Command Line Utilities
#43It will open up the screen sharing app and connect for you :)
Re: OS X Command Line Utilities
#44I would add caffeinate, which prevents the Mac from going to sleep. It can do this indefinitely, for a fixed period of time, or after a process is done running. You can even specify that process either as the PID of an existing process or by invoking it through caffeinate itself.
https://itunes.apple.com/us/app/caffeine/id411246225?mt=12 I use this all the time, it's the GUI version presumably.
Re: OS X Command Line Utilities
#45Earlier quoted context omitted.
I must say...being a sysadmin with the ability to ssh into developers' laptops remotely in our domain...this is one of the more fun commands ;)
I hope that ssh'ing into anyone's laptop using your sysadmin credentials in order to play a prank is a fireable offense at your company.
Re: OS X Command Line Utilities
#46I have fond memories of discovering my college roommate's open SSH connection, and using "say" to great effect.
Re: OS X Command Line Utilities
#47Great list!
Re: OS X Command Line Utilities
#48I like do harmless pranks on coworkers who don't lock their computers yes "lock your computer, numbskull" | xargs say Just repeats the phrase in a monotone computer voice over their headphones. I only do this to engineers, tried it on a PM once, never again.
Have you ever asked yourself if maybe you're just being annoying? I don't lock my computer. It'll time out and lock after an hour but I prefer to leave it unlocked.
Re: OS X Command Line Utilities
#49Earlier quoted context omitted.
I must say...being a sysadmin with the ability to ssh into developers' laptops remotely in our domain...this is one of the more fun commands ;)
I hope that ssh'ing into anyone's laptop using your sysadmin credentials in order to play a prank is a fireable offense at your company.
Re: OS X Command Line Utilities
#50As a longtime Mac user (as early as System 7) and aficionado of UNIX, I love OS X's CLI and its affordances. The linked article provides several well-packaged tidbits that might encourage users of other CLI-replete OS's to check out OS X. More power. However, I'm not a fan of the soft recommendation for Homebrew. I understand Homebrew places everything in `/usr/local` but software installs on Mac should generally con…
The /applications folder is for .app bundles; Homebrew mostly installs Unix binaries which are appropriately placed in /usr/local , just like many Apple-supplied binaries are in /usr. The two conventions work well side-by-side. The vast majority of Homebrew packages are not available as .dmg or .pkg ; installing that way also is a huge PITA when dealing with a myriad of small developer tools that require dependencies…