News for hackers. Stuff that matters.
Re:Mac CLI – OS X command line tools for developers by pje on Sunday June 26, 2016 @12:07AM (#11979337)
Well, would you rather remember: `sudo shutdown -r now` or `mac shutdown`?

Would you rather remember: `pmset sleepnow` or `mac restart`?

Re:Mac CLI – OS X command line tools for developers by dottedmag on Sunday June 26, 2016 @02:44AM (#11979675)
Is there complementary `linux shutdown` and `freebsd shutdown` and `solaris shutdown`? If no, then this utility only increases cognitive load.
Re:Mac CLI – OS X command line tools for developers by fakemeatsubs on Sunday June 26, 2016 @04:28AM (#11979895)
then this utility only increases cognitive load.

how in the world does it 'increase cognitive load'? Seems like its just your opinion. I know how to shut down a generic linux box. But mac shutdoown or mac reboot is still easier to type and remember.

Re:Mac CLI – OS X command line tools for developers by Obi_Juan_Kenobi on Sunday June 26, 2016 @04:12PM (#11982462)
FWIW, I was installing Ubuntu and had an issue with Unity, so had to use tty to update and hadn't ever shut down from the command line before. It just took me one try of 'shutdown' and a quick look at the man page to figure out what options were needed.

I see this as either being used frequently enough to be easily memorized, or infrequently enough that a quick check of the man page is fine. The real benefit is that it's a very general solution that works on basically any system, and for a wide variety of commands. As another commentor pointed out, the apropos command makes this strategy even more powerful.

Re:Mac CLI – OS X command line tools for developers by spike021 on Sunday June 26, 2016 @04:25AM (#11979889)
Why not just do `man shutdown` to figure out the option you should use, and then either set it up with an alias or just learn it permanently with repetition?
Re:Mac CLI – OS X command line tools for developers by compassios on Sunday June 26, 2016 @01:23AM (#11979506)
Exactly, that is the point. Also, some commands require several parameters and it's much better having the script asking for those parameters in an interactive way.

For example: mac ssh:download-folder

Re:Mac CLI – OS X command line tools for developers by JustSomeNobody on Sunday June 26, 2016 @01:07PM (#11981573)
sudo shutdown -r now.

1) It's already muscle memory.

2) It's not hard.

3) Other *nix OSs use is too.