Ò»,
wÃüÁî
¸ÃÃüÁîÓÃÓÚÏÔʾµÇ¼µ½ÏµÍ³µÄÓû§Çé¿ö£¬wÃüÁÄÜÇ¿´ó£¬Ëü²»µ«¿ÉÒÔÏÔʾÓÐ˵Ǽµ½ÏµÍ³£¬»¹¿ÉÒÔÏÔʾ³öÕâЩÓû§µ±Ç°ÕýÔÚ½øÐеŤ×÷£¬²¢ÇÒͳ¼ÆÊý¾ÝÏà¶ÔwhoÃüÁîÀ´Ëµ¸ü¼ÓÏêϸºÍ¿Æѧ.
wÃüÁîµÄÏÔʾÏîÄ¿°´ÒÔÏÂ˳ÐòÅÅÁУºµ±Ç°Ê±¼ä£¬ÏµÍ³Æô¶¯µ½ÏÖÔÚµÄʱ¼ä£¬µÇ¼Óû§µÄÊýÄ¿£¬ÏµÍ³ÔÚ×î½ü1Ãë¡¢5ÃëºÍ15ÃëµÄƽ¾ù¸ºÔØ¡£È»ºóÊÇÿ¸öÓû§µÄ¸÷ÏîÊý¾Ý£¬ÏîÄ¿ÏÔʾ˳ÐòÈçÏ£ºµÇ¼Õʺš¢ÖÕ¶ËÃû³Æ¡¢Ô¶³ÌÖ÷»úÃû¡¢µÇ¼ʱ¼ä¡¢¿ÕÏÐʱ¼ä¡¢JCPU¡¢PCPU¡¢µ±Ç°ÕýÔÚÔËÐнø³ÌµÄÃüÁîÐС£
ÆäÖÐJCPUʱ¼äÖ¸µÄÊǺ͸ÃÖնˣ¨tty£©Á¬½ÓµÄËùÓнø³ÌÕ¼ÓõÄʱ¼ä¡£Õâ¸öʱ¼äÀï²¢²»°üÀ¨¹ýÈ¥µÄºǫ́×÷ҵʱ¼ä£¬µ«È´°üÀ¨µ±Ç°ÕýÔÚÔËÐеĺǫ́×÷ÒµËùÕ¼ÓõÄʱ¼ä¡£¶øPCPUʱ¼äÔòÊÇÖ¸µ±Ç°½ø³Ì£¨¼´ÔÚWHATÏîÖÐÏÔʾµÄ½ø³Ì£©ËùÕ¼ÓõÄʱ¼ä¡£ÏÂÃæ½éÉܸÃÃüÁîµÄ¾ßÌåÓ÷¨ºÍ²ÎÊý¡£
¶þ,
whoÃüÁî
¸ÃÃüÁîÖ÷ÒªÓÃÓڲ鿴µ±Ç°ÔÚÏßÉϵÄÓû§Çé¿ö¡£Õâ¸öÃüÁî·Ç³£ÓÐÓá£Èç¹ûÓû§ÏëºÍÆäËûÓû§½¨Á¢¼´Ê±Í¨Ñ¶£¬±ÈÈçʹÓÃtalkÃüÁÄÇôÊ×ÏÈҪȷ¶¨µÄ¾ÍÊǸÃÓû§È·ÊµÔÚÏßÉÏ£¬²»È»talk½ø³Ì¾ÍÎÞ·¨½¨Á¢ÆðÀ´¡£ÓÖÈ磬ϵͳ¹ÜÀíԱϣÍû¼àÊÓÿ¸öµÇ¼µÄÓû§´Ëʱ´Ë¿ÌµÄËù×÷ËùΪ£¬Ò²ÒªÊ¹ÓÃwhoÃüÁî¡£
login name£ºµÇ¼Óû§Ãû£»
terminal line£ºÊ¹ÓÃÖÕ¶ËÉ豸£»
login time£ºµÇ¼µ½ÏµÍ³µÄʱ¼ä¡£
ÏÂÃæ¶ÔwhoÃüÁîµÄ³£ÓòÎÊý½øÐÐ˵Ã÷¡£
-m
ËüµÄЧ¹ûͬwho am iÏÔʾ³ö×Ô¼ºÔÚϵͳÖеÄÓû§Ãû£¬µÇ¼Öնˣ¬µÇ¼ʱ¼ä
-q
Ö»ÏÔʾÓû§µÄµÇ¼Õʺź͵ǼÓû§µÄÊýÁ¿
-s
ºöÂÔ£¬ËüͬÓÚwho
-r
¿ÉÒԲ鿴µ±Ç°ÏµÍ³µÄÔËÐ춱ð
run-level 3 Apr 21 09:37 last=S
-H£¬-heading ÏÔʾһÐÐÁбêÌâ¡£³£ÓõıêÌâÈç±í4-2Ëùʾ¡£
Èý,
whoami Ö»ÏÔʾ³ö×Ô¼ºÔÚϵͳÖеÄÓû§Ãû
ËÄ,
who am i ÏÔʾ³ö×Ô¼ºÔÚϵͳÖеÄÓû§Ãû£¬µÇ¼Öնˣ¬µÇ¼ʱ¼ä
¿ÉÒԲ鿴×Ô¼ºµÇ¼µ½ÏµÍ³ÖеÄÓû§Ãû£¬ËüͬlognameÒ»Ñù¡£
Îå,
logname ¿ÉÒÔÏÔʾ×Ô¼ºµÇ¼µ½ÏµÍ³ÖеÄÓû§Ãû
Áù,
last ¿ÉÒԲ鿴ÉÏ´Î×Ô¼ºµÇ¼µÄʱ¼ä£¬µ±È»root¿ÉÒԲ鿴ÆäËûÓû§µÇ¼µÄÇé¿ö¡£
last -n user ¿ÉÒÔ¿´userÇ°n´ÎµÇ¼µÄÇé¿ö
Æß,
tty
¿ÉÒÔʹÓÃttyÀ´±¨¸æËùÁ¬½ÓµÄÉ豸»òÖÕ¶Ë
jovewu ÓÚ 2009-10-09 17:02:10·¢±í:
ºÜÓÐÓô¦°¢£¡
²»¹¤×÷µÄÄÐÈË ÓÚ 2009-10-01 01:12:50·¢±í:
ѧϰÁË£¬²»´íµÄ¶«Î÷¡£Ð»Ð»ÁË
acrofox ÓÚ 2009-09-29 23:04:08·¢±í:
»¹ÓÐ id ÃüÁî²é¿´µ±Ç°Óû§»òÕßÖ¸¶¨Óû§µÄ uid ºÍ gid£¬ÒÔ¼°Á¥ÊôÓÚÄÄЩ×éµÈ¡£
tjunu ÓÚ 2009-09-29 03:55:17·¢±í:
Ȑ
l460618498 ÓÚ 2009-04-22 22:19:32·¢±í:
ѧϰÁË
cwqing1973 ÓÚ 2009-04-21 05:51:39·¢±í:
Ö§³Öһϣ¬Ð»Ð»ÁË¡£Â¥Ö÷£¬ÓÐʱ¼ä¶àÀ´ÃüÁîרÇøÖ¸µ¼£¡£¡£¡£¡
PCHCO ÓÚ 2009-04-14 18:23:17·¢±í:
ѧϰһÏÂ