A
A
anton13ms2019-09-12 06:36:27
linux
anton13ms, 2019-09-12 06:36:27

What is the difference between poweroff and shutdown -P now commands?

Please tell me, technically, is there a difference between shutdowns using the poweroff and shutdown -P now commands?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hint000, 2019-09-12
@anton13ms

[email protected]:/sbin$ ls -l poweroff
lrwxrwxrwx 1 root root 14 Sep  5 18:01 poweroff -> /bin/systemctl

[email protected]:/sbin$ ls -l shutdown 
lrwxrwxrwx 1 root root 14 Sep  5 18:01 shutdown -> /bin/systemctl

Almost no difference, both commands are just symlinks to the same file. But shutdown allows you to set the time, and poweroff (according to man'u) does not provide such a parameter.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question