3 ms·
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"
by koenigdavidmj 10y ago
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.
- jonhohle 10y agoMy 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.
- jzelinskie 10y agoI 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.
- ytjohn 10y agoThat 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.
- bestest 10y agoI prefer using the screen corners, e.g. Preferences > Mission Control > Hot Corners. I've got the bottom left corner set to "Put display to sleep". For me this works much better than any shortcuts or icons — when you're going away from the machine, just move the cursor to the bottom left corner, and after a couple of seconds the machine turns on the screensaver (or no screensaver, just screen off in my case, as I'm not using a screensaver) and locks the machine (as I've got my settings to lock the machine when the screensaver turns on.
- krrrh 10y agoDefining a hot corner in the bottom left in trackpad prefs has been my go to for years. It works fast and is rarely activated by accident.
- paxswill 10y agoThe 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.
- therealmarv 10y agostrange, 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.
- paxswill 10y agoUsing `pmset noidle` is now deprecated in favor of `caffeinate` according to the pmset man page.
- therealmarv 10y agoGood to know!