For Linux users, it is not going to pay attention to the last reboot time of the system, unless it is a Linux engineer. If you want to check the last reboot time of Linux, Xiaobian teaches you three ways to check the system restart time. .
Method a: last command
# last reboot
reboot system boot 2.6.32-431.el6.i Wed Jul 30 13:44 - 21: 39 (46+07:55)
reboot system boot 2.6.32-431.el6.i Sun Apr 13 14:28 - 09:27 (107+18:59)
reboot System boot 2.6.32-431.el6.i Tue Mar 25 22:27 - 14:19 (18+15:52)
This command actually shows the system runtime in the last few days. Last was originally designed to display the login history of a particular user. In Linux, there is a special "pseudo-user" called "reboot" that automatically logs in immediately when the system is restarted. This way you can check the last reboot time by checking the login history of the reboot user.
Method 2: who -b
Use the who command to bring the ‘-b’ option.
#谁 -b
system boot Jul 30 13:44
Method 3: uptime command
You can also use the uptime command to infer the end of the system. Start time. The uptime command will display the current time and also the time the system has been running. From this information, you can calculate the time when the system was last started
# uptime
21:46:31 up 46 days, 8:02, 1 user, load average: 0.04, 0.05, 0.01
The above is the way to view the last reboot time of the Linux system. There are three ways to use the last command, the uptime command, and the who-b to view it. Do you understand?
vim is a text editor, can be used in Linux systems, for the use of Linux commands can refer to the s
The more command under Linux is mainly used for split-screen display, that is, the
When doing Linux command operations, sometimes many directories are searched for, and these director
for installing yum on RedHat yum is the shell front-end package manager, which is the software used
What can I do if RedHat Linux 5 cannot use ifconfig?
Linux file method using file command to identify the file type
How to use the command to delete and create the Linux folder
How to generate reports using Linux using the Sosreport command
What should I do if I restart the card on the logo screen after installing Ubuntu 11.10?
How to solve Linux Chinese garbled?
Linux method of cutting txt large files into small files through shell script
Ubuntu installs AMD proprietary driver steps
How to restore the boot partition deleted by CentOS 6
What should I do if Ubuntu fails to adjust and save the screen brightness?
Windows 8 will adopt the new activation technology OA 3.0
CF victory glory super sign-on event incoming cumulative sign-on to CFVIP
Win10 must be seen before installation!
How to set up win10 continuous standby network?
Win10 remove shortcuts small arrows
Win8.1 will increase the number of activations to Win8
Win7 system 360 security guards can not open and can not uninstall how to solve?