Stupid question regarding reboot and poweroff

Bertram Scharpf lists at bertram-scharpf.de
Sun Sep 18 14:09:02 UTC 2016


On Sunday, 18. Sep 2016, 13:14:03 +0100, RW via freebsd-questions wrote:
> On Sun, 18 Sep 2016 12:29:49 +0200
> Bertram Scharpf wrote:
> 
> > On Sunday, 18. Sep 2016, 12:03:23 +0300, Aleksander Alekseev wrote:
> > > Is there any difference between executing `poweroff` and `shutdown
> > > -p now` or executing `reboot` and `shutdown -r now` ?  
> > 
> > `poweroff' is a hard link to `shutdown'.
> 
> In general you can't infer from that that they behave the same. It's
> not uncommon that similar utilities are implemented in the same binary,
> and then behave differently according to how they are invoked, e.g.
> less and more.

As can be seen in /usr/src/sbin/shutdown/shutdown.c, line 130.

Bertram


-- 
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-scharpf.de


More information about the freebsd-questions mailing list