首页 | 新闻 | 新品 | 文库 | 方案 | 视频 | 下载 | 商城 | 开发板 | 数据中心 | 座谈新版 | 培训 | 工具 | 博客 | 论坛 | 百科 | GEC | 活动 | 主题月 | 电子展
返回列表 回复 发帖

Linux 系统命令及其使用详解(大全) 18

Linux 系统命令及其使用详解(大全) 18

 我们可以获得执行 ps -aux 的结果和所花费的系统资源。如下面所列的资料:
  
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
  
root 1 0.0 0.4 1096 472 ? S Apr19 0:04 init
  
root 2 0.0 0.0 0 0 ? SW Apr19 0:00 [kflushd]
  
root 3 0.0 0.0 0 0 ? SW Apr19 0:00 [kpiod]
  
......
  
root 24269 0.0 1.0 2692 996 pts/3 R 12:16 0:00 ps -aux

  
Command being timed: "ps -aux"
  
User time (seconds): 0.05
  
System time (seconds): 0.06
  
Percent of CPU this job got: 68%
  
Elapsed (wall clock) time (h:mm:ss or m:ss): 0:00.16
  
Average shared text size (kbytes): 0
  
Average unshared data size (kbytes): 0
  
Average stack size (kbytes): 0
  
Average total size (kbytes): 0
  
Maximum resident set size (kbytes): 0
  
Average resident set size (kbytes): 0
  
Major (requiring I/O) page faults: 238
  
Minor (reclaiming a frame) page faults: 46
  
Voluntary context switches: 0
  
Involuntary context switches: 0
  
Swaps: 0
  
File system inputs: 0
  
File system outputs: 0
  
Socket messages sent: 0
  
Socket messages received: 0
  
Signals delivered: 0
  
Page size (bytes): 4096
  
Exit status: 0

  使用权限:
所有使用者

  使用方式:
uptime [-V]
  说明: uptime 提供使用者下面的资讯,不需其他参数:

  现在的时间

  系统开机运转到现在经过的时间

  连线的使用者数量

  最近一分钟,五分钟和十五分钟的系统负载

  参数: -V 显示版本资讯。

  范例:
uptime
  其结果为:

  
10:41am up 5 days, 10 min, 1 users, load average: 0.00, 0.00, 1.99

返回列表