halt / poweroff: symbolic links to reboot?
Hi, I'm learning about the halt and poweroff commands. What I found out just puzzles me. Here:
Code:
$ which halt
/sbin/halt
$ file /sbin/halt
/sbin/halt: symbolic link to `reboot'
$ which poweroff
/sbin/poweroff
$ file /sbin/poweroff
/sbin/poweroff: symbolic link to `reboot'
Could anyone explain?
Thanks,
Re: halt / poweroff: symbolic links to reboot?
What is it exactly that is puzzling you? Is it that those commands are coming up as being symbolic links? If so, I think your answer is that they are all the the same program. Looks like it to me, anyway.
Do you know about man pages? The manual pages you get with the command
I just looked, and saw that
all pull up the same man page. Have a look at it yourself.
Re: halt / poweroff: symbolic links to reboot?
Basically running halt, poweroff, reboot just calls shutdown with certain flags set.
Re: halt / poweroff: symbolic links to reboot?
Quote:
Originally Posted by
CharlesA
Basically running halt, poweroff, reboot just calls shutdown with certain flags set.
Ah, I had wondered why there was more than just "shutdown". It does seem to do everything a person could need... ;)
I, when I need to turn the computer off from the terminal, use
to reboot,
and
to turn off completely.
Re: halt / poweroff: symbolic links to reboot?
Thanks, that really cleared it up for me.