The last one of these that popped up on HN replaced a lot of the common UNIX commands, and a lot of people here rightly asked 'why would I run "mac tar:extract" when I could just run "tar xf"?'
This one seems to get the balance a lot more right, with a lot of things that the average OS X admin wouldn't know off the top of their head. - 'm lock': That's a lot better than whichever arcane key combination does it by default (my laptop stays closed most of the time, so the power button isn't an option). - 'm nosleep': I would have to look that one up. - 'm finder showhiddenfiles': It beats Googling for the proper 'defaults write' invocation.
My first impression was _gaah!_ just RTFM! But after calming down, I realized this is not significantly different from a command line version of TinkerTool. Not necessarily something I would use, but I could see an audience for it.
I think if you go to the Keychain, you can configure it to put an icon in the top right tray that you can click on to lock your computer. I often find myself accidentally moving my mouse to the top right corner of my Windows and Linux machines to lock them now.
That is exactly what I do. I think that the combo I would normally try (Cmd+L) logs you out. I remember at one point trying to find the correct key combination, and the primary results were to put the lock icon up. That works find enough for me.
The basic command for keeping the machine awake is `caffeinate`, and has a few other nice options like changing what kind of sleep is prevented (disk, display, system) and also waiting on a PID (looks like that was added in 10.10).
Related to that is `pmset -g assertions` which will list all the various things that are keeping your machine from sleeping.
strange, I always used `pmset noidle` instead of `caffeinate`. But seems it does the same. I somehow assumed `caffeinate` is the same as this app store thing called Caffeine.
I find that mac-cli is too unfocused with functions like ssh, tar, magento support, mysql support which are not really needed and common between platforms.
I like the exclusive focus of this tool to only mac administration tasks which are specific to mac OS X and that I would not know off the top of my head.
I like how each function is contained in an individual plugin file. I can install (create a local script) which plugins I want without needing to install them all. Even if you do not want to install any of the code, it shows you the command line needed in OS X.
The volume plugin has a more fine-grained control for adjusting the volume. The keyboard based function keys will increase/decrease the volume by 6/7. Now I can increase by smaller increments. Excellent.
Karabiner allows you to change the default behavior of the volume keys to use quarter steps with the "Fine grained volume controls" option (it simply adds the alt+shift for you). Very useful with headphones that are too sensitive. https://pqrs.org/osx/karabiner/
That something like this exists shows some problems with the unix shell: No standardized commands exist for many common actions (sleep, wifi, etc). The syntax is different across commands even on a single system.
It's really nice, but I'd like to see something like that as a standard in shells.
I don't know, CLI commands in os x are much worse than in linux, want to display wifi info?
$/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I lots of useful commands like that are not in your path by default, that said, at least os x lets you modify almost any part of the system with shell commands.
Comments (62) 14 threads
This one seems to get the balance a lot more right, with a lot of things that the average OS X admin wouldn't know off the top of their head.
- 'm lock': That's a lot better than whichever arcane key combination does it by default (my laptop stays closed most of the time, so the power button isn't an option).
- 'm nosleep': I would have to look that one up.
- 'm finder showhiddenfiles': It beats Googling for the proper 'defaults write' invocation.
Related to that is `pmset -g assertions` which will list all the various things that are keeping your machine from sleeping.
Continue this thread — 1 reply
HNews discussion about it 3 weeks ago:
https://news.ycombinator.com/item?id=11977162
But I too wonder why I should use this instead of Mac-CLI?
I like the exclusive focus of this tool to only mac administration tasks which are specific to mac OS X and that I would not know off the top of my head.
The volume plugin has a more fine-grained control for adjusting the volume. The keyboard based function keys will increase/decrease the volume by 6/7. Now I can increase by smaller increments. Excellent.
It's really nice, but I'd like to see something like that as a standard in shells.
$/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I
lots of useful commands like that are not in your path by default, that said, at least os x lets you modify almost any part of the system with shell commands.
/usr/local/bin/airport
$ which airport
airport not found
Continue this thread — 1 reply
All comments shown.
Couldn't load more comments. Check your connection and try again.