Hacker News new | ask | show | jobs
by disconnected 3203 days ago
Disappointingly, this list treats "yes" like a toy that just prints things over and over, and doesn't mention actual useful uses for "yes", like accepting all defaults without having to press enter.

Practical example: when you are doing "make oldconfig" on the kernel, and you don't care about all those questions:

yes "" | make oldconfig

Or, if you prefer answering no instead:

yes "n" | yourcommand

Also, the author refers to watch as a "supervisor" ("supervise command" - his words). That is bad terminology. Process supervision has well defined meaning in this context, and watch isn't even close to doing it.

Examples of actual supervisors are supervisord, runit, monit, s6, and of course systemd (which also does service management and, er, too much other stuff, honestly).

3 comments

The kernel also recently (4.8-ish?) introduce an `olddefconfig` command, so you don't have to mess around with yes.
"...("supervise command" - his words). That is bad terminology."

"Examples of actual supervisors are..."

1999-2001

http://cr.yp.to/daemontools/supervise.html

runit and s6 are copies of daemontools.

Otherwise I liked your comment about use of yes.

Unfortunately it doesn't work when trying to connect via ssh and warning about unknown key pops up.
That is intentional behavior on the part of `ssh`. You can still disable that prompt within `ssh` (though it's not recommended):

    ssh -oStrictHostKeyChecking=no 192.168.0.100
...or by adding rules in /etc/ssh/ssh_config or ~/.ssh/config

    Host 192.168.0.*
        StrictHostKeyChecking no