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) …