Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

LINUXºǫ́½ø³Ì¹ÜÀí

fg¡¢bg¡¢jobs¡¢&¡¢ctrl + z¶¼ÊǸúϵͳÈÎÎñÓйصģ¬ËäÈ»ÏÖÔÚ»ù±¾Éϲ»ÔõôÐèÒªÓõ½ÕâЩÃüÁµ«Ñ§»áÁËÒ²ÊǺÜʵÓõÄ
Ò»¡£& ×î¾­³£±»Óõ½
Õâ¸öÓÃÔÚÒ»¸öÃüÁîµÄ×îºó£¬¿ÉÒÔ°ÑÕâ¸öÃüÁî·Åµ½ºǫִ́ÐÐ
¶þ¡£ctrl + z
¿ÉÒÔ½«Ò»¸öÕýÔÚǰִ̨ÐеÄÃüÁî·Åµ½ºǫ́£¬²¢ÇÒÔÝÍ£
Èý¡£jobs
²é¿´µ±Ç°ÓжàÉÙÔÚºǫ́ÔËÐеÄÃüÁî
ËÄ¡£fg
½«ºǫ́ÖеÄÃüÁîµ÷ÖÁǰ̨¼ÌÐøÔËÐÐ
Èç¹ûºǫ́ÖÐÓжà¸öÃüÁ¿ÉÒÔÓà fg %jobnumber½«Ñ¡ÖеÄÃüÁîµ÷³ö£¬%jobnumberÊÇͨ¹ýjobsÃüÁî²éµ½µÄºǫ́ÕýÔÚÖ´ÐеÄÃüÁîµÄÐòºÅ(²»ÊÇpid)
Îå¡£bg
½«Ò»¸öÔÚºǫ́ÔÝÍ£µÄÃüÁ±ä³É¼ÌÐøÖ´ÐÐ
Èç¹ûºǫ́ÖÐÓжà¸öÃüÁ¿ÉÒÔÓÃbg %jobnumber½«Ñ¡ÖеÄÃüÁîµ÷³ö£¬%jobnumberÊÇͨ¹ýjobsÃüÁî²éµ½µÄºǫ́ÕýÔÚÖ´ÐеÄÃüÁîµÄÐòºÅ(²»ÊÇpid) LinuxÏÂʹÓÃShellÃüÁî¿ØÖÆÈÎÎñJobsÖ´ÐÐ ÏÂÁÐÃüÁî¿ÉÒÔÓÃÀ´²Ù×ݽø³ÌÈÎÎñ£º
ps ÁгöϵͳÖÐÕýÔÚÔËÐеĽø³Ì£»
kill ·¢ËÍÐźŸøÒ»¸ö»ò¶à¸ö½ø³Ì£¨¾­³£ÓÃÀ´É±ËÀÒ»¸ö½ø³Ì£©£»
jobs Áгöµ±Ç°shell»·¾³ÖÐÒÑÆô¶¯µÄÈÎÎñ״̬£¬Èôδָ¶¨jobsid£¬ÔòÏÔʾËùÓлµÄÈÎÎñ״̬ÐÅÏ¢£»Èç¹û±¨¸æÁËÒ»¸öÈÎÎñµÄÖÕÖ¹(¼´ÈÎÎñµÄ״̬±»±ê¼ÇΪTerminated)£¬shell ´Óµ±Ç°µÄshell»·¾³ÒÑÖªµÄÁбíÖÐɾ³ýÈÎÎñµÄ½ø³Ì±êʶ£»
bg ½«½ø³Ì°áµ½ºǫ́ÔËÐУ¨Background£©£»
fg ½«½ø³Ì°áµ½Ç°Ì¨ÔËÐУ¨Foreground£©£»
½«jobתÒƵ½ºǫ́ÔËÐÐ
Èç¹ûÄã¾­³£ÔÚXͼÐÎϹ¤×÷£¬Äã¿ÉÄÜÓÐÕâÑùµÄ¾­Àú£ºÍ¨¹ýÖÕ¶ËÃüÁîÔËÐÐÒ»¸öGUI³ÌÐò£¬GUI½çÃæ³öÀ´ÁË£¬µ«ÊÇÄãµÄÖն˻¹Í£ÁôÔÚÔ­µØ£¬Äã²»ÄÜÔÚshellÖмÌÐøÖ´ÐÐÆäËûÃüÁîÁË£¬³ý·Ç½«GUI³ÌÐò¹Øµô¡£
ΪÁËʹ³ÌÐòÖ´ÐкóÖն˻¹ÄܼÌÐø½ÓÊÜÃüÁÄã¿ÉÒÔ½«½ø³ÌÒƵ½ºǫ́ÔËÐУ¬Ê¹ÓÃÈçÏÂÃüÁîÔËÐгÌÐò£º #¼ÙÉèÒªÔËÐÐxmms
$xmms &
ÕâÑù´ò¿ªxmmsºó£¬Öն˵ÄÌáʾÓÖ»ØÀ´ÁË¡£ÏÖÔÚxmmsÔÚºǫ́ÔËÐÐ×ÅÄØ£»µ«ÍòÒ»ÄãÔËÐгÌÐòʱÍü¼ÇʹÓá°&¡±ÁË£¬ÓÖ²»ÏëÖØÐÂÖ´ÐУ»Äã¿ÉÒÔÏÈʹÓÃctrl+z¹ÒÆð³ÌÐò£¬È»ºóÇÃÈëbgÃüÁÕâÑù³ÌÐò¾ÍÔÚºǫ́¼ÌÐøÔËÐÐÁË¡£
¸ÅÄµ±Ç°ÈÎÎñ
Èç¹ûºǫ́µÄÈÎÎñºÅÓÐ2¸ö£¬[1],[2]£»Èç¹ûµ±µÚÒ»¸öºǫ́ÈÎÎñ˳ÀûÖ´ÐÐÍê±Ï£¬µÚ¶þ¸öºǫ́ÈÎÎñ»¹ÔÚÖ´ÐÐÖÐʱ£¬µ±Ç°ÈÎÎñ±ã»á×Ô¶¯±ä³Éºǫ́ÈÎÎñºÅÂë¡°[2]¡±µÄºǫ́ÈÎÎñ¡£ËùÒÔ¿ÉÒԵóöÒ»µã£¬¼´µ±Ç°ÈÎÎñÊÇ»á±ä¶¯µÄ¡£µ±Óû§ÊäÈë¡°fg¡±¡¢¡°bg¡±ºÍ¡°stop¡±µÈÃüÁîʱ£¬Èç¹û²»¼ÓÈκÎÒýºÅ£¬ÔòËù±ä¶¯µÄ¾ùÊǵ±Ç°ÈÎÎñ¡£
²ì¿´jobs
ʹÓÃjobs»òpsÃüÁî¿ÉÒԲ쿴ÕýÔÚÖ´ÐеÄjobs¡£


Ïà¹ØÎĵµ£º

linux²é¿´Ó²¼þÐÅÏ¢¼°Çý¶¯É豸Ïà¹ØÕûÀí


ÔÚLINUX»·¾³¿ª·¢Çý¶¯³ÌÐò£¬Ê×ÏÈҪ̽²âµ½ÐÂÓ²¼þ£¬½ÓÏÂÀ´¾ÍÊÇ¿ª·¢Çý¶¯³ÌÐò¡£
³£ÓÃÃüÁîÕûÀíÈçÏ£º
ÓÃÓ²¼þ¼ì²â³ÌÐòkuduz̽²âÐÂÓ²¼þ£ºservice kudzu start ( or restart)
²é¿´CPUÐÅÏ¢£ºcat /proc/cpuinfo
²é¿´°å¿¨ÐÅÏ¢£ºcat /proc/pci
²é¿´PCIÐÅÏ¢£ºlspci (Ïà±Ècat /proc/pci¸üÖ±¹Û£©
²é¿´ÄÚ´æÐÅÏ¢£ºcat /proc/meminfo
......

Linux ±¸·ÝÓë»Ö¸´ËÙ³ÉÖ¸ÄÏ

 
 
È·¶¨Òª±¸·ÝµÄÄÚÈÝ
ÔÚ±¸·ÝºÍ»¹Ô­ÏµÍ³Ê±£¬Linux »ùÓÚÎļþµÄÐÔÖʳÉÁËÒ»¸ö¼«´óµÄÓŵ㡣ÔÚ Windows ϵͳÖУ¬×¢²á±íÓëϵͳÊǷdz£Ïà¹ØµÄ¡£ÅäÖúÍÈí¼þ°²×°²»½ö½öÊǽ«Îļþ·Åµ½ÏµÍ³ÉÏ¡£Òò´Ë£¬»¹Ô­ÏµÍ³¾ÍÐèÒªÓÐÄܹ»´¦Àí Windows ÕâÖÖÌØÐÔµÄÈí¼þ¡£ÔÚ Linux ÖУ¬Çé¿ö¾Í²»Ò»ÑùÁË¡£ÅäÖÃÎļþÊÇ»ùÓÚÎı¾µÄ£¬²¢ÇÒ³ýÁËÖ±½Ó´¦À ......

Linux½ø³Ì¼äͨѶ֮ÏûÏ¢¶ÓÁÐ


1. »ù±¾¸ÅÄî
ÏûÏ¢¶ÓÁеÄ×î¼Ñ¶¨ÒåÊÇ£ºÄں˵ØÖ·¿Õ¼äÖеÄÄÚ²¿Á´±í¡£ÏûÏ¢¿ÉÒÔ˳ÐòµØ·¢Ë͵½¶ÓÁÐÖУ¬
²¢ÒÔ¼¸ÖÖ²»Í¬µÄ·½Ê½´Ó¶ÓÁÐÖлñÈ¡¡£µ±È»£¬Ã¿¸öÏûÏ¢¶ÓÁж¼ÊÇÓÉ IPC±êʶ·ûËùΨһ±êʶµÄ¡£
2. ÄÚ²¿ºÍÓû§Êý¾Ý½á¹¹
ÒªÍê³ÉÀí½âÏóϵͳ V IPCÕâÑù¸´ÔÓµÄÎÊÌ⣬¹Ø¼üÊÇÒª³¹µ×ÊìϤÄں˵ļ¸¸öÄÚ²¿Êý¾Ý½á¹¹¡£
ÉõÖÁ¶ÔÄÇЩ×î»ù±¾µÄ²Ù×÷ ......

Linux¾²Ì¬/¶¯Ì¬Á´½Ó¿âµÄ´´½¨ºÍʹÓÃ

Ô­ÎÄÁ´½Ó£ºhttp://blog.csdn.net/ecjtuync/archive/2008/10/23/3132789.aspx
Linux¾²Ì¬/¶¯Ì¬Á´½Ó¿âµÄ´´½¨ºÍʹÓÃ
ºÍWindowsϵͳһÑùLinuxÒ²Óо²Ì¬/¶¯Ì¬Á´½Ó¿â£¬ÏÂÃæ½éÉÜ´´½¨ºÍʹÓ÷½·¨£º
¼ÙÉèÓÐÏÂÃ漸¸öÎļþ£º
Í·ÎļþString.h£¬ÉùÃ÷Ïà¹Øº¯ÊýÔ­ÐΣ¬ÄÚÈÝÈçÏ£º
Strlen.c£ºº¯ÊýStrlenµÄʵÏÖ£¬»ñÈ¡¸ø¶¨×Ö·û´®µÄ³¤¶È£¬ÄÚÈÝÈç ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ