Linux中记录在线时长的uptime命令
2016-10-15 21:26
447 查看
如何获得Linux服务器当前已经运行了多久呢,可以通过uptime命令,执行该命令后会返回一组数据
如:
20:03:36 up 11:41, 3 users, load average: 0.15, 0.14, 0.05
其中,
20:03:36 当前的系统时间
11:41 服务器开机后持续的运行时间
3 users 当前登录到系统的用户数,包括通过远程工具登录的
load average 分别代表了最近1分钟、5分钟、15分钟系统的平均负载
还可以通过访问/proc/uptime
man /proc
/proc/uptime
This file contains two numbers:
1. the uptime of the system (seconds)
2. the amount of time spent in idle process (seconds).
如:
20:03:36 up 11:41, 3 users, load average: 0.15, 0.14, 0.05
其中,
20:03:36 当前的系统时间
11:41 服务器开机后持续的运行时间
3 users 当前登录到系统的用户数,包括通过远程工具登录的
load average 分别代表了最近1分钟、5分钟、15分钟系统的平均负载
还可以通过访问/proc/uptime
man /proc
/proc/uptime
This file contains two numbers:
1. the uptime of the system (seconds)
2. the amount of time spent in idle process (seconds).
相关文章推荐
- Linux 命令 “Uptimed” 记录 Linux 系统的 uptime
- [夜校] 兄弟连Linux在线课堂:第3讲 Linux常用命令
- LINUX 命令在线查看
- linux命令--------------uptime
- linux命令记录。(持续更新)
- linux命令记录
- linux常用命令使用记录(一)
- Linux常用操作命令学习使用实时记录
- who命令参数及用法详解(linux查看在线用户命令)
- Linux下查看用户登陆后的操作记录及history命令显示时间
- Linux_记录ping命令的日志包括时间戳
- linux 命令记录 查询
- Linux常用命令记录 —— chown
- [转载]Linux性能测试 uptime命令
- Linux学习记录--管道命令
- linux 命令之 uptime
- linux敲入命令不记录的方法
- 自动记录linux输入过的命令
- 鸟哥的Linux私房菜:首次登陆与在线求助,LINUX最简单的命令及应用(一)
- Linux命令使用记录