is there any difference between /usr/bin/poweroff and /usr/bin/shutdown? [duplicate]
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
This question already has an answer here:
What is the difference between these commands for bringing down a Linux server?
3 answers
I just realized that /usr/bin/poweroff and /usr/bin/shutdown are symbolic link to systemctl, but I don't know how systemctl is being run.
so is there any difference between /usr/bin/poweroff and /usr/bin/shutdown?
EDIT: when I call any of these two programs, systemctl is being executed but I don't know what command/parameter is passed to systemctl.
when I type systemctl --help
there are two options that may come into play
- halt Shut down and halt the system
- poweroff Shut down and power-off the system
but something tells me that both poweroff and shutdown are the same in here (I'm guessing)
I'm running Archlinux
linux shutdown systemctl
marked as duplicate by JdeBP, msp9011, Jeff Schaller, thrig, Thomas Dickey Sep 5 at 20:15
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |Â
up vote
1
down vote
favorite
This question already has an answer here:
What is the difference between these commands for bringing down a Linux server?
3 answers
I just realized that /usr/bin/poweroff and /usr/bin/shutdown are symbolic link to systemctl, but I don't know how systemctl is being run.
so is there any difference between /usr/bin/poweroff and /usr/bin/shutdown?
EDIT: when I call any of these two programs, systemctl is being executed but I don't know what command/parameter is passed to systemctl.
when I type systemctl --help
there are two options that may come into play
- halt Shut down and halt the system
- poweroff Shut down and power-off the system
but something tells me that both poweroff and shutdown are the same in here (I'm guessing)
I'm running Archlinux
linux shutdown systemctl
marked as duplicate by JdeBP, msp9011, Jeff Schaller, thrig, Thomas Dickey Sep 5 at 20:15
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
This question already has an answer here:
What is the difference between these commands for bringing down a Linux server?
3 answers
I just realized that /usr/bin/poweroff and /usr/bin/shutdown are symbolic link to systemctl, but I don't know how systemctl is being run.
so is there any difference between /usr/bin/poweroff and /usr/bin/shutdown?
EDIT: when I call any of these two programs, systemctl is being executed but I don't know what command/parameter is passed to systemctl.
when I type systemctl --help
there are two options that may come into play
- halt Shut down and halt the system
- poweroff Shut down and power-off the system
but something tells me that both poweroff and shutdown are the same in here (I'm guessing)
I'm running Archlinux
linux shutdown systemctl
This question already has an answer here:
What is the difference between these commands for bringing down a Linux server?
3 answers
I just realized that /usr/bin/poweroff and /usr/bin/shutdown are symbolic link to systemctl, but I don't know how systemctl is being run.
so is there any difference between /usr/bin/poweroff and /usr/bin/shutdown?
EDIT: when I call any of these two programs, systemctl is being executed but I don't know what command/parameter is passed to systemctl.
when I type systemctl --help
there are two options that may come into play
- halt Shut down and halt the system
- poweroff Shut down and power-off the system
but something tells me that both poweroff and shutdown are the same in here (I'm guessing)
I'm running Archlinux
This question already has an answer here:
What is the difference between these commands for bringing down a Linux server?
3 answers
linux shutdown systemctl
linux shutdown systemctl
edited Sep 5 at 23:25
asked Sep 5 at 16:20
juanp_1982
185
185
marked as duplicate by JdeBP, msp9011, Jeff Schaller, thrig, Thomas Dickey Sep 5 at 20:15
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
marked as duplicate by JdeBP, msp9011, Jeff Schaller, thrig, Thomas Dickey Sep 5 at 20:15
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
In most systems, every "shutdown" command is just a symlink to a common program/script
which changes its behaviour based on how (with which "name") is invoked.
So, poweroff
does a kind of shutdown which powers off the machine (usually via ACPI APIs), too and it's equivalent to shutdown -hP
, while shutdown
as a command is more generic and can do many thigs after "stopping" the OS, based on with which flags is called.
For example shutdown -r
reboots the machine while shutdown -h
just stops the OS (and the machine is still powered on, while not usable).
It's an oversimplification to say thatpoweroff
is equivalent toshutdown -hP
. It's equivalent to that in the van Smoorenburg toolset, but in the systemd toolset both the-h
and-P
options are the defaults anyway and it is equivalent to plainshutdown now
. Thenow
is important, by the way. unix.stackexchange.com/a/196471/5132 unix.stackexchange.com/a/465337/5132
â JdeBP
Sep 5 at 17:15
@JdeBP I agree thenow
is important (as +mmm minutes, btw) but the OP was asking about differences, not syntax ;)
â Mr Shunz
Sep 5 at 18:38
right, but as far as I can see both programs are a symlink to systemctl, I don't see how systemctl is being used. What makes it interesting is that those flags mention here have not use with systemctl
â juanp_1982
Sep 5 at 23:20
now
is important because without it there is a difference. Pay close attention to the user manual of the systemd toolset.
â JdeBP
Sep 6 at 0:44
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
In most systems, every "shutdown" command is just a symlink to a common program/script
which changes its behaviour based on how (with which "name") is invoked.
So, poweroff
does a kind of shutdown which powers off the machine (usually via ACPI APIs), too and it's equivalent to shutdown -hP
, while shutdown
as a command is more generic and can do many thigs after "stopping" the OS, based on with which flags is called.
For example shutdown -r
reboots the machine while shutdown -h
just stops the OS (and the machine is still powered on, while not usable).
It's an oversimplification to say thatpoweroff
is equivalent toshutdown -hP
. It's equivalent to that in the van Smoorenburg toolset, but in the systemd toolset both the-h
and-P
options are the defaults anyway and it is equivalent to plainshutdown now
. Thenow
is important, by the way. unix.stackexchange.com/a/196471/5132 unix.stackexchange.com/a/465337/5132
â JdeBP
Sep 5 at 17:15
@JdeBP I agree thenow
is important (as +mmm minutes, btw) but the OP was asking about differences, not syntax ;)
â Mr Shunz
Sep 5 at 18:38
right, but as far as I can see both programs are a symlink to systemctl, I don't see how systemctl is being used. What makes it interesting is that those flags mention here have not use with systemctl
â juanp_1982
Sep 5 at 23:20
now
is important because without it there is a difference. Pay close attention to the user manual of the systemd toolset.
â JdeBP
Sep 6 at 0:44
add a comment |Â
up vote
0
down vote
In most systems, every "shutdown" command is just a symlink to a common program/script
which changes its behaviour based on how (with which "name") is invoked.
So, poweroff
does a kind of shutdown which powers off the machine (usually via ACPI APIs), too and it's equivalent to shutdown -hP
, while shutdown
as a command is more generic and can do many thigs after "stopping" the OS, based on with which flags is called.
For example shutdown -r
reboots the machine while shutdown -h
just stops the OS (and the machine is still powered on, while not usable).
It's an oversimplification to say thatpoweroff
is equivalent toshutdown -hP
. It's equivalent to that in the van Smoorenburg toolset, but in the systemd toolset both the-h
and-P
options are the defaults anyway and it is equivalent to plainshutdown now
. Thenow
is important, by the way. unix.stackexchange.com/a/196471/5132 unix.stackexchange.com/a/465337/5132
â JdeBP
Sep 5 at 17:15
@JdeBP I agree thenow
is important (as +mmm minutes, btw) but the OP was asking about differences, not syntax ;)
â Mr Shunz
Sep 5 at 18:38
right, but as far as I can see both programs are a symlink to systemctl, I don't see how systemctl is being used. What makes it interesting is that those flags mention here have not use with systemctl
â juanp_1982
Sep 5 at 23:20
now
is important because without it there is a difference. Pay close attention to the user manual of the systemd toolset.
â JdeBP
Sep 6 at 0:44
add a comment |Â
up vote
0
down vote
up vote
0
down vote
In most systems, every "shutdown" command is just a symlink to a common program/script
which changes its behaviour based on how (with which "name") is invoked.
So, poweroff
does a kind of shutdown which powers off the machine (usually via ACPI APIs), too and it's equivalent to shutdown -hP
, while shutdown
as a command is more generic and can do many thigs after "stopping" the OS, based on with which flags is called.
For example shutdown -r
reboots the machine while shutdown -h
just stops the OS (and the machine is still powered on, while not usable).
In most systems, every "shutdown" command is just a symlink to a common program/script
which changes its behaviour based on how (with which "name") is invoked.
So, poweroff
does a kind of shutdown which powers off the machine (usually via ACPI APIs), too and it's equivalent to shutdown -hP
, while shutdown
as a command is more generic and can do many thigs after "stopping" the OS, based on with which flags is called.
For example shutdown -r
reboots the machine while shutdown -h
just stops the OS (and the machine is still powered on, while not usable).
answered Sep 5 at 16:29
Mr Shunz
2,62011619
2,62011619
It's an oversimplification to say thatpoweroff
is equivalent toshutdown -hP
. It's equivalent to that in the van Smoorenburg toolset, but in the systemd toolset both the-h
and-P
options are the defaults anyway and it is equivalent to plainshutdown now
. Thenow
is important, by the way. unix.stackexchange.com/a/196471/5132 unix.stackexchange.com/a/465337/5132
â JdeBP
Sep 5 at 17:15
@JdeBP I agree thenow
is important (as +mmm minutes, btw) but the OP was asking about differences, not syntax ;)
â Mr Shunz
Sep 5 at 18:38
right, but as far as I can see both programs are a symlink to systemctl, I don't see how systemctl is being used. What makes it interesting is that those flags mention here have not use with systemctl
â juanp_1982
Sep 5 at 23:20
now
is important because without it there is a difference. Pay close attention to the user manual of the systemd toolset.
â JdeBP
Sep 6 at 0:44
add a comment |Â
It's an oversimplification to say thatpoweroff
is equivalent toshutdown -hP
. It's equivalent to that in the van Smoorenburg toolset, but in the systemd toolset both the-h
and-P
options are the defaults anyway and it is equivalent to plainshutdown now
. Thenow
is important, by the way. unix.stackexchange.com/a/196471/5132 unix.stackexchange.com/a/465337/5132
â JdeBP
Sep 5 at 17:15
@JdeBP I agree thenow
is important (as +mmm minutes, btw) but the OP was asking about differences, not syntax ;)
â Mr Shunz
Sep 5 at 18:38
right, but as far as I can see both programs are a symlink to systemctl, I don't see how systemctl is being used. What makes it interesting is that those flags mention here have not use with systemctl
â juanp_1982
Sep 5 at 23:20
now
is important because without it there is a difference. Pay close attention to the user manual of the systemd toolset.
â JdeBP
Sep 6 at 0:44
It's an oversimplification to say that
poweroff
is equivalent to shutdown -hP
. It's equivalent to that in the van Smoorenburg toolset, but in the systemd toolset both the -h
and -P
options are the defaults anyway and it is equivalent to plain shutdown now
. The now
is important, by the way. unix.stackexchange.com/a/196471/5132 unix.stackexchange.com/a/465337/5132â JdeBP
Sep 5 at 17:15
It's an oversimplification to say that
poweroff
is equivalent to shutdown -hP
. It's equivalent to that in the van Smoorenburg toolset, but in the systemd toolset both the -h
and -P
options are the defaults anyway and it is equivalent to plain shutdown now
. The now
is important, by the way. unix.stackexchange.com/a/196471/5132 unix.stackexchange.com/a/465337/5132â JdeBP
Sep 5 at 17:15
@JdeBP I agree the
now
is important (as +mmm minutes, btw) but the OP was asking about differences, not syntax ;)â Mr Shunz
Sep 5 at 18:38
@JdeBP I agree the
now
is important (as +mmm minutes, btw) but the OP was asking about differences, not syntax ;)â Mr Shunz
Sep 5 at 18:38
right, but as far as I can see both programs are a symlink to systemctl, I don't see how systemctl is being used. What makes it interesting is that those flags mention here have not use with systemctl
â juanp_1982
Sep 5 at 23:20
right, but as far as I can see both programs are a symlink to systemctl, I don't see how systemctl is being used. What makes it interesting is that those flags mention here have not use with systemctl
â juanp_1982
Sep 5 at 23:20
now
is important because without it there is a difference. Pay close attention to the user manual of the systemd toolset.â JdeBP
Sep 6 at 0:44
now
is important because without it there is a difference. Pay close attention to the user manual of the systemd toolset.â JdeBP
Sep 6 at 0:44
add a comment |Â