[Linux] 查看系统启动时间
2015-11-16 09:32
645 查看
查找系统最后启动时间
1. 使用 who 命令
who -b
输出:
system boot 2015-10-14 00:51
2. 使用 last 命令
last reboot | head -1
输出:
reboot system boot 3.13.0-32-generi Wed Oct 14 00:51 - 09:30 (5+08:39)
last 命令通过查找
/var/log/wtmp文件,并显示登录登出用户名单。
查找系统最后关闭时间
last -x | grep shutdown | head -1
输出:
shutdown system down 2.6.15.4 Sun Apr 30 13:31 - 15:08 (01:37)
参数
-x表示显示系统关闭记录以及运行级别的改变。
相关文章推荐
- linux tar 解压命令总结
- CentOS6.5环境下使用镜像文件搭建本地yum源
- Linux编译cximage生成动态链接库
- 【转载】Linux常用命令列表
- Starting sshd: /var/empty/sshd must be owned by root and not group or world-writable.
- Linux下echo命令详解
- Linux 有问必答:如何在debian及其衍生发行版中改变默认的 Java 版本
- linux下php开发自定义扩展库
- linux下php安装curl模块
- Linux中的likely()和unlikely()
- 【鸟哥的linux私房菜】终于再次读完《Linux 基础篇》——一些感想
- linux双网卡绑定
- CentOS7安装JDK
- [note]linux和win7双系统下启动项丢失问题
- linux服务器配置ssh互信(RSA)
- centos71虚拟机搭建git服务器
- Linode+CentOS7.0+pptpd构建私有梯子
- linux __setup
- ubuntu 14.04下samba服务器的配置
- Linux高级编程之共享内存