mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-10-28 23:17:58 +01:00
poweroff, halt, reboot: add examples (#5485)
This commit is contained in:
parent
3e227f7ae0
commit
9330e542b3
3 changed files with 49 additions and 11 deletions
|
@ -1,16 +1,24 @@
|
||||||
# halt
|
# halt
|
||||||
|
|
||||||
> Halt, power-off or reboot the machine.
|
> Halt the system.
|
||||||
> More information: <https://www.freedesktop.org/software/systemd/man/halt.html>.
|
> More information: <https://www.man7.org/linux/man-pages/man8/halt.8.html>.
|
||||||
|
|
||||||
- Halt the machine:
|
- Halt the system:
|
||||||
|
|
||||||
`halt`
|
`halt`
|
||||||
|
|
||||||
- Power the machine off:
|
- Power off the system (same as `poweroff`):
|
||||||
|
|
||||||
`halt --poweroff`
|
`halt --poweroff`
|
||||||
|
|
||||||
- Reboot the machine:
|
- Reboot the system (same as `reboot`):
|
||||||
|
|
||||||
`halt --reboot`
|
`halt --reboot`
|
||||||
|
|
||||||
|
- Halt immediately without contacting the system manager:
|
||||||
|
|
||||||
|
`halt --force --force`
|
||||||
|
|
||||||
|
- Write the wtmp shutdown entry without halting the system:
|
||||||
|
|
||||||
|
`halt --wtmp-only`
|
||||||
|
|
|
@ -1,7 +1,24 @@
|
||||||
# poweroff
|
# poweroff
|
||||||
|
|
||||||
> Shutdown the system.
|
> Power off the system.
|
||||||
|
> More information: <https://www.man7.org/linux/man-pages/man8/poweroff.8.html>.
|
||||||
|
|
||||||
- Poweroff the system:
|
- Power off the system:
|
||||||
|
|
||||||
`sudo poweroff`
|
`poweroff`
|
||||||
|
|
||||||
|
- Halt the system (same as `halt`):
|
||||||
|
|
||||||
|
`poweroff --halt`
|
||||||
|
|
||||||
|
- Reboot the system (same as `reboot`):
|
||||||
|
|
||||||
|
`poweroff --reboot`
|
||||||
|
|
||||||
|
- Shut down immediately without contacting the system manager:
|
||||||
|
|
||||||
|
`poweroff --force --force`
|
||||||
|
|
||||||
|
- Write the wtmp shutdown entry without shutting down the system:
|
||||||
|
|
||||||
|
`poweroff --wtmp-only`
|
||||||
|
|
|
@ -1,11 +1,24 @@
|
||||||
# reboot
|
# reboot
|
||||||
|
|
||||||
> Reboot the system.
|
> Reboot the system.
|
||||||
|
> More information: <https://www.man7.org/linux/man-pages/man8/reboot.8.html>.
|
||||||
|
|
||||||
- Reboot immediately:
|
- Reboot the system:
|
||||||
|
|
||||||
`reboot`
|
`reboot`
|
||||||
|
|
||||||
- Reboot immediately without gracefully shutting down:
|
- Power off the system (same as `poweroff`):
|
||||||
|
|
||||||
`reboot -f`
|
`reboot --poweroff`
|
||||||
|
|
||||||
|
- Halt the system (same as `halt`):
|
||||||
|
|
||||||
|
`rebooot --halt`
|
||||||
|
|
||||||
|
- Reboot immediately without contacting the system manager:
|
||||||
|
|
||||||
|
`reboot --force --force`
|
||||||
|
|
||||||
|
- Write the wtmp shutdown entry without rebooting the system:
|
||||||
|
|
||||||
|
`reboot --wtmp-only`
|
||||||
|
|
Loading…
Reference in a new issue