1.命令w的功能最2113全面,能显示用户登录名、终端标志、星5261期几登录和具体登4102录时间、1653闲置时间、用户正在执行的程序、占用CPU时间、系统的运行时间和平均负载,例如:[francis@localhost~]$w10:29:43up1:07,4users,loadaverage:1.35,0.78,0.42USERTTYLOGIN@IDLEJCPUPCPUWHATfrancis:009:22?xdm?22:580.07s/bin/sh/usr/bin/startkdefrancispts/009:221:07m0.03s0.03s/bin/bashfrancispts/109:221:06m0.00s0.76skdeinit4:kded4[kdeinit]francispts/210:290.00s0.03s0.00sw2.命令who的功能较简单,仅显示用户登录名、终端标志、和登录日期和时间,例如:[francis@localhost~]$whofrancis:02010-04-1909:22francispts/02010-04-1909:22francispts/12010-04-1909:22francispts/22010-04-1910:293.命名whoami最简单,仅显示当前用户正使用的终端和登录时间,例如:[francis@localhost~]$whoamifrancispts/22010-04-1910:29
阅读全文 >