How to check restart records in centos

WBOY
Release: 2024-02-28 17:01:20
forward
931 people have browsed it

How to check restart records in centos

To view the restart records in CentOS, you can use the following command:

  1. Use the last command to view system startup and shutdown records:
last reboot
Copy after login
  1. Use the journalctl command to view system logs and filter out restart-related logs:
journalctl _COMM=systemd _CMDLINE=--system
Copy after login
  1. Use the dmesg command to view the kernel log when the system starts, and you can view the information when the system restarts:
dmesg | grep 'systemd'
Copy after login

You can view the restart records of the CentOS system through the above command.

Ask AI for details

The above is the detailed content of How to check restart records in centos. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:mryunwei.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!