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»·¾³¿ª·¢Çý¶¯³ÌÐò£¬Ê×ÏÈҪ̽²âµ½ÐÂÓ²¼þ£¬½ÓÏÂÀ´¾ÍÊÇ¿ª·¢Çý¶¯³ÌÐò¡£
³£ÓÃÃüÁîÕûÀíÈçÏ£º
ÓÃÓ²¼þ¼ì²â³ÌÐòkuduz̽²âÐÂÓ²¼þ£ºservice kudzu start ( or restart)
²é¿´CPUÐÅÏ¢£ºcat /proc/cpuinfo
²é¿´°å¿¨ÐÅÏ¢£ºcat /proc/pci
²é¿´PCIÐÅÏ¢£ºlspci (Ïà±Ècat /proc/pci¸üÖ±¹Û£©
²é¿´ÄÚ´æÐÅÏ¢£ºcat /proc/meminfo
......
È·¶¨Òª±¸·ÝµÄÄÚÈÝ
ÔÚ±¸·ÝºÍ»¹Ôϵͳʱ£¬Linux »ùÓÚÎļþµÄÐÔÖʳÉÁËÒ»¸ö¼«´óµÄÓŵ㡣ÔÚ Windows ϵͳÖУ¬×¢²á±íÓëϵͳÊǷdz£Ïà¹ØµÄ¡£ÅäÖúÍÈí¼þ°²×°²»½ö½öÊǽ«Îļþ·Åµ½ÏµÍ³ÉÏ¡£Òò´Ë£¬»¹Ôϵͳ¾ÍÐèÒªÓÐÄܹ»´¦Àí Windows ÕâÖÖÌØÐÔµÄÈí¼þ¡£ÔÚ Linux ÖУ¬Çé¿ö¾Í²»Ò»ÑùÁË¡£ÅäÖÃÎļþÊÇ»ùÓÚÎı¾µÄ£¬²¢ÇÒ³ýÁËÖ±½Ó´¦À ......
1. »ù±¾¸ÅÄî
ÏûÏ¢¶ÓÁеÄ×î¼Ñ¶¨ÒåÊÇ£ºÄں˵ØÖ·¿Õ¼äÖеÄÄÚ²¿Á´±í¡£ÏûÏ¢¿ÉÒÔ˳ÐòµØ·¢Ë͵½¶ÓÁÐÖУ¬
²¢ÒÔ¼¸ÖÖ²»Í¬µÄ·½Ê½´Ó¶ÓÁÐÖлñÈ¡¡£µ±È»£¬Ã¿¸öÏûÏ¢¶ÓÁж¼ÊÇÓÉ IPC±êʶ·ûËùΨһ±êʶµÄ¡£
2. ÄÚ²¿ºÍÓû§Êý¾Ý½á¹¹
ÒªÍê³ÉÀí½âÏóϵͳ V IPCÕâÑù¸´ÔÓµÄÎÊÌ⣬¹Ø¼üÊÇÒª³¹µ×ÊìϤÄں˵ļ¸¸öÄÚ²¿Êý¾Ý½á¹¹¡£
ÉõÖÁ¶ÔÄÇЩ×î»ù±¾µÄ²Ù×÷ ......
ÔÎÄÁ´½Ó£ºhttp://blog.csdn.net/ecjtuync/archive/2008/10/23/3132789.aspx
Linux¾²Ì¬/¶¯Ì¬Á´½Ó¿âµÄ´´½¨ºÍʹÓÃ
ºÍWindowsϵͳһÑùLinuxÒ²Óо²Ì¬/¶¯Ì¬Á´½Ó¿â£¬ÏÂÃæ½éÉÜ´´½¨ºÍʹÓ÷½·¨£º
¼ÙÉèÓÐÏÂÃ漸¸öÎļþ£º
Í·ÎļþString.h£¬ÉùÃ÷Ïà¹Øº¯ÊýÔÐΣ¬ÄÚÈÝÈçÏ£º
Strlen.c£ºº¯ÊýStrlenµÄʵÏÖ£¬»ñÈ¡¸ø¶¨×Ö·û´®µÄ³¤¶È£¬ÄÚÈÝÈç ......