Questions tagged «w»

1
w,who,whoami和id的不同输出
当我运行时,在在线命令行平台上,例如Codecademy上的平台 for cmd in w who whoami id do echo $cmd $cmd echo ========================= echo " " done 我懂了 w 00:52:54 up 8 days, 14:10, 0 users, load average: 3.78, 2.98, 2.69 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT ========================= who ========================= whoami ccuser ========================= id uid=1000(ccuser) gid=1000(ccuser) groups=1000(ccuser) …
9 users  who  w  whoami 

1
w命令如何知道空闲时间和运行命令?
该w命令显示了一堆有关谁登录他们正在做什么的信息。 来自维基百科的示例: $ w 11:12am up 608 day(s), 19:56, 6 users, load average: 0.36, 0.36, 0.37 User tty login@ idle what smithj pts/5 8:52am w jonesm pts/23 20Apr06 28 -bash harry pts/18 9:01am 9 pine peterb pts/19 21Apr06 emacs -nw html/index.html janetmcq pts/8 10:12am 3days -csh singh pts/12 16Apr06 5:29 …
9 w 

2
“ w”与urandom有什么关系?
> strace w 2>&1 | grep urandom read(4, "/usr/bin/grep\0urandom\0", 2047) = 22 > 为什么“ w”需要urandom?如何避免这种情况? 更新: > strace w 2>&1 | awk '/urandom/' read(4, "awk\0/urandom/\0", 2047) = 14 > 因此,过滤与urandom有关吗? > strace who 2>&1 | grep urandom > 那为什么“谁”没有受到影响?
8 random  w 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.