Difference between revisions of "Shutdown"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
 
(17 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{draft}}
 
{{draft}}
 +
{{lc}}
 +
* https://man7.org/linux/man-pages/man8/shutdown.8.html
  
 +
shutdown
  
  [[grep]] -iv ': starting\|kernel: .*: Power Button\|watching system buttons\|Stopped Cleaning Up\|Started Crash recovery kernel' /var/log/[[messages]] /var/log/[[syslog]] /var/log/[[apcupsd]]* | grep -iw 'recover[a-z]*\|power[a-z]*\|shut[a-z ]*down\|rsyslogd\|ups'
+
[[shutdown -c]]
 +
 +
 
 +
== Example ==
 +
shutdown
 +
Broadcast message from root@MYNEWVM on pts/1 (Fri 2023-03-31 17:00:00 CEST):
 +
 +
The system is going down for poweroff at Fri 2023-03-31 17:01:00 CEST!
 +
 +
Shutdown scheduled for Fri 2023-03-31 17:01:00 CEST, use '[[shutdown -c]]' to cancel
 +
 +
grep -iv ': starting\|kernel: .*: Power Button\|watching system buttons\|Stopped Cleaning Up\|Started Crash recovery kernel' [[/var/log/syslog]] | grep -iw 'recover[a-z]*\|power[a-z]*\|shut[a-z ]*down\|rsyslogd\|ups'
 +
 
 +
  [[grep]] -iv ': starting\|kernel: .*: Power Button\|watching system buttons\|Stopped Cleaning Up\|Started Crash recovery kernel' /var/log/[[messages]] /[[var/log/]][[syslog]] /var/log/[[apcupsd]]* | grep -iw 'recover[a-z]*\|power[a-z]*\|shut[a-z ]*down\|rsyslogd\|ups'
 +
 
 +
 
 +
== Related commands ==
 +
* <code>[[virsh shutdown]]</code>
 +
* <code>[[virsh destroy]]</code>
 +
* <code>[[udisksctl power-off]]</code>
 +
* <code>[[no shutdown]]</code>
 +
* <code>[[last]] reboot</code>, <code>[[last]] [[shutdown]]</code>
 +
systemd-update-utmp [[reboot]]
 +
systemd-update-utmp [[shutdown]]
 +
 
 +
[[LOG: received fast shutdown request]]
  
 
== See also ==
 
== See also ==
 
* {{reboot}}
 
* {{reboot}}
 +
* {{shutdown}}
 +
 +
 +
[[Category:Linux]]

Latest revision as of 14:17, 23 June 2023

This article is a Draft. Help us to complete it.

shutdown
shutdown -c

Example[edit]

shutdown
Broadcast message from root@MYNEWVM on pts/1 (Fri 2023-03-31 17:00:00 CEST):

The system is going down for poweroff at Fri 2023-03-31 17:01:00 CEST!

Shutdown scheduled for Fri 2023-03-31 17:01:00 CEST, use 'shutdown -c' to cancel

grep -iv ': starting\|kernel: .*: Power Button\|watching system buttons\|Stopped Cleaning Up\|Started Crash recovery kernel' /var/log/syslog | grep -iw 'recover[a-z]*\|power[a-z]*\|shut[a-z ]*down\|rsyslogd\|ups'
grep -iv ': starting\|kernel: .*: Power Button\|watching system buttons\|Stopped Cleaning Up\|Started Crash recovery kernel' /var/log/messages /var/log/syslog /var/log/apcupsd* | grep -iw 'recover[a-z]*\|power[a-z]*\|shut[a-z ]*down\|rsyslogd\|ups'


Related commands[edit]

systemd-update-utmp reboot
systemd-update-utmp shutdown
LOG: received fast shutdown request

See also[edit]

Advertising: