shutdown command

Chris Green cl at isbd.net
Tue Feb 14 17:56:53 UTC 2012


On Tue, Feb 14, 2012 at 07:15:03PM +0200, Ioannis Vranos wrote:
> On Tue, Feb 14, 2012 at 12:58 PM, Chris Green <cl at isbd.net> wrote:
> > The command line shutdown command has been around since the early days
> > of Unix.  Many other commands are just different ways of calling it.
> >
> > Looking at /sbin it seems that halt and poweroff are symbolic links to
> > reboot but shutdown is actually different.  However the man page for
> > reboot says that (except for some specific options) reboot calls
> > shutdown.
> >
> > So basically it's shutdown at the bottom of all these commands.
> 
> I can't understand the following. poweroff and halt, are symbolic
> links of /sbin/reboot. How all 3 have different outcome (poweoff,
> halt, and reboot respectively)?
> 
Inside the code it will check to see what name was used to call it and
change what it does accordingly.

-- 
Chris Green




More information about the ubuntu-users mailing list