看完题目你有何感觉?满满的都是鸟哥的影响啊,出题人在拿着鸟哥那本书出题目的吧,有木有
1、
1)
mody@mac:~$ w
18:36 up 6:42, 6 users, load averages: 1.60 1.74 1.68
USER TTY FROM LOGIN@ IDLE WHAT
mody console - 11:55 6:41 -
mody s000 - 11:55 - -bash
mody s001 - 12:01 6:35 /usr/bin/python /usr/local/bin/ipython
mody s002 - 15:31 52 -bash
mody s003 - 18:33 2 -bash
mody s004 - 18:36 - w -h
mody@mac:~$ man w
W(1) BSD General Commands Manual W(1)
NAME
w -- display who is logged in and what they are doing
SYNOPSIS
w [-hin] [user...]
DESCRIPTION
The w utility prints a summary of the current activity on the system, including what each user is doing. The first line displays the current time of day, how long the system has been running, the number of users logged into the system, and the load averages. The load average numbers give the number of jobs in the run queue averaged over 1, 5 and 15 minutes.
The fields output are the user's login name, the name of the terminal the user is on, the host from which the user is logged in, the time the user logged on, the time since the user last typed anything, and the name and arguments of the current process.
The options are as follows:
-h Suppress the heading. 忽略第一行信息
-i Output is sorted by idle time.
2)
mody@mac:~$ uptime
19:08 up 7:14, 6 users, load averages: 1.42 1.23 1.24
mody@mac:~$ man uptime
UPTIME(1) BSD General Commands Manual UPTIME(1)
NAME
uptime -- show how long system has been running
3)
michael@ubuntu:~$ top
top - 05:11:28 up 17 min, 2 users, load average: 0.05, 0.25, 0.34
Tasks: 178 total, 1 running, 177 sleeping, 0 stopped, 0 zombie
Cpu(s): 3.0%us, 0.3%sy, 0.0%ni, 90.7%id, 5.6%wa, 0.3%hi, 0.0%si, 0.0%s
Mem: 1345964k total, 891400k used, 454564k free, 38652k buffers
Swap: 1340408k total, 0k used, 1340408k free, 562812k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
6207 root 20 0 242m 19m 7616 S 3.0 1.5 0:04.49 Xorg
6624 michael 20 0 208m 14m 10m S 1.3 1.1 0:02.33 gnome-terminal
6045 root 20 0 98.6m 4548 3644 S 0.7 0.3 0:02.85 vmtoolsd
6865 michael 20 0 19224 1456 1060 R 0.7 0.1 0:00.09 top
6462 michael 20 0 302m 10m 7548 S 0.3 0.8 0:00.32 gnome-setti