linux ÈÃÄãµÄ½ø³Ìºǫ́ÔËÐÐ
fg¡¢bg¡¢jobs¡¢&¡¢ctrl + z¶¼ÊǸúϵͳÈÎÎñÓйصģ¬ËäÈ»ÏÖÔÚ»ù±¾Éϲ»ÔõôÐèÒªÓõ½ÕâЩÃüÁµ«Ñ§»áÁËÒ²ÊǺÜʵÓõÄ
Ò»¡£& ×î¾³£±»Óõ½
Õâ¸öÓÃÔÚÒ»¸öÃüÁîµÄ×îºó£¬¿ÉÒÔ°ÑÕâ¸öÃüÁî·Åµ½ºǫִ́ÐÐ
¶þ¡£ctrl + z
¿ÉÒÔ½«Ò»¸öÕýÔÚǰִ̨ÐеÄÃüÁî·Åµ½ºǫ́£¬²¢ÇÒÔÝÍ£
Èý¡£jobs
²é¿´µ±Ç°ÓжàÉÙÔÚºǫ́ÔËÐеÄÃüÁî
ËÄ¡£fg
½«ºǫ́ÖеÄÃüÁîµ÷ÖÁǰ̨¼ÌÐøÔËÐÐ
Èç¹ûºǫ́ÖÐÓжà¸öÃüÁ¿ÉÒÔÓà fg %jobnumber½«Ñ¡ÖеÄÃüÁîµ÷³ö£¬%jobnumberÊÇͨ¹ýjobsÃüÁî²éµ½µÄºǫ́ÕýÔÚÖ´ÐеÄÃüÁîµÄÐòºÅ(²»ÊÇpid)
Îå¡£bg
½«Ò»¸öÔÚºǫ́ÔÝÍ£µÄÃüÁ±ä³É¼ÌÐøÖ´ÐÐ
Èç¹ûºǫ́ÖÐÓжà¸öÃüÁ¿ÉÒÔÓÃbg %jobnumber½«Ñ¡ÖеÄÃüÁîµ÷³ö£¬%jobnumberÊÇͨ¹ýjobsÃüÁî²éµ½µÄºǫ́ÕýÔÚÖ´ÐеÄÃüÁîµÄÐòºÅ(²»ÊÇpid)
µ±Ç°ÕýÔÚÔËÐеijÌÐòÓà CTRL+zÀ´¹ÒÈëºǫ́,ÓÃfg À´»½ÐÑ.¿ÉÒÔ½øÐжà½ø³ÌÇл».
Unix/LinuxÏÂÒ»°ã±ÈÈçÏëÈÃij¸ö³ÌÐòÔÚºǫ́ÔËÐУ¬ºÜ¶à¶¼ÊÇʹÓà & ÔÚ³ÌÐò½áβÀ´ÈóÌÐò×Ô¶¯ÔËÐС£±ÈÈçÎÒÃÇÒªÔËÐÐmysqlÔÚºǫ́£º
/usr/local/mysql/bin/mysqld_safe --user=mysql &
µ«ÊǼÓÈëÎÒÃǺܶà³ÌÐò²¢²»ÏómysqldÒ»Ñù×ö³ÉÊØ»¤½ø³Ì£¬¿ÉÄÜÎÒÃǵijÌÐòÖ»ÊÇÆÕͨ³ÌÐò¶øÒÑ£¬Ò»°ãÕâÖÖ³ÌÐòʹÓà & ½á⣬
ÎÞÂÛÊÇ·ñ½« nohup ÃüÁîµÄÊä³öÖض¨Ïòµ½Öնˣ¬Êä³ö¶¼½«¸½¼Óµ½µ±Ç°Ä¿Â¼µÄ nohup.out ÎļþÖС£
Èç¹ûµ±Ç°Ä¿Â¼µÄ nohup.out Îļþ²»¿Éд£¬Êä³öÖض¨Ïòµ½ $HOME/nohup.out ÎļþÖС£
Èç¹ûûÓÐÎļþÄÜ´´½¨»ò´ò¿ªÒÔÓÃÓÚ×·¼Ó£¬ÄÇô Command ²ÎÊýÖ¸¶¨µÄÃüÁî²»¿Éµ÷Óá£
Èç¹û±ê×¼´íÎóÊÇÒ»¸öÖնˣ¬ÄÇô°ÑÖ¸¶¨µÄÃüÁîд¸ø±ê×¼´íÎóµÄËùÓÐÊä³ö×÷Ϊ±ê×¼Êä³öÖض¨Ïòµ½ÏàͬµÄÎļþÃèÊö·û¡£
Í˳ö״̬
¸ÃÃüÁî·µ»ØÏÂÁгö¿ÚÖµ£º
126 ¿ÉÒÔ²éÕÒµ«²»Äܵ÷Óà Command ²ÎÊýÖ¸¶¨µÄÃüÁî¡£
127 nohup ÃüÁî·¢Éú´íÎó»ò²»ÄܲéÕÒÓÉ Command ²ÎÊýÖ¸¶¨µÄÃüÁî¡£
·ñÔò£¬nohup ÃüÁîµÄÍ˳ö״̬ÊÇ Command ²ÎÊýÖ¸¶¨ÃüÁîµÄÍ˳ö״̬¡£
ʾÀý
ÒªÔËÐÐ×¢Ïúºóºǫ́ÖеÄÃüÁÇëÊäÈ룺
$ nohup find / -print &
ÊäÈë¸ÃÃüÁîºó£¬ÏÔʾÈçÏ£º
670$ Êä³ö·¢Ë͵½ nohup.out
½ø³Ì ID ºÅ¸ü¸ÄΪ & £¨±íʾ“and”µÄ·ûºÅ£©Æô¶¯µÄºǫ́½ø³ÌµÄ ID ºÅ¡£
ÏûÏ¢ Êä³ö·¢Ë͵½ nohup.out ֪ͨÄúÀ´×Ô find / -print ÃüÁîµÄÊä³öÔÚ nohup.out ÎļþÖС£
²é¿´ÕâÐ
Ïà¹ØÎĵµ£º
×òÌìÍíÉÏ×¼±¸×°subversion ½á¹ûÅöµ½Ò»¸öºÜÄÕ»ðµÄÎÊÌâ
[root@rhel6beta Packages]# rpm -ivh libproxy-0.3.0-1.el6.i686.rpm
warning:
libproxy-0.3.0-1.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID
f21541eb: NOKEY
error: Failed dependencies:
libproxy-b ......
»úÆ÷¼ÓµçÆô¶¯ºó,BIOS¿ªÊ¼¼ì²â²ÎÊý,ÈçÄÚ´æµÄ´óС,ÈÕÆÚºÍʱ¼ä,´ÅÅÌ
É豸ÒÔ¼°ÕâЩ´ÅÅÌÉ豸ÓÃÀ´Òýµ¼µÄ˳Ðò,ͨ³£Çé¿öÏ£¬BIOS¶¼ÊDZ»ÅäÖóÉÊ×Ïȼì²é
ÈíÇý»òÕß¹âÇý£¨»òÁ½Õ߶¼¼ì²é£©£¬È»ºóÔÙ³¢ÊÔ´ÓÓ²ÅÌÒýµ¼¡£Èç¹ûÔÚÕâЩ¿ÉÒƶ¯µÄÉè
±¸ÖУ¬Ã»ÓÐÕÒµ½¿ÉÒýµ¼µÄ½éÖÊ£¬ÄÇôBIOSͨ³£ÊÇתÏòµÚÒ»¿éÓ²ÅÌ×î³õµÄ¼¸¸öÉÈÇø£¬
Ñ°ÕÒÓÃÓÚ×°ÔزÙ×÷Ï ......
Àí½â
Linux
µ÷ÓŲÎÊý
ÔÚÎÒÃǽéÉÜ
Linux
ϵͳµÄ¸÷ÖÖµ÷ÓŲÎÊýºÍÐÔÄÜ
¼à²â¹¤¾ß֮ǰ£¬ÐèÒªÏÈÌÖÂÛһЩ¹ØÓÚÐÔÄܵ÷ÓŵIJÎÊý¡£ÒòΪ
Linux
ÊÇÒ»¸ö¿ªÔ´²Ù×÷ϵͳ£¬ËùÒÔÓÖ´óÁ¿¿ÉÓõÄÐÔÄܼà²â¹¤¾ß¡£¶ÔÕâЩ¹¤¾ßµÄÑ¡ÔñÈ¡¾öÓÚÄãµÄ¸öÈËϲºÃºÍ¶ÔÊý¾Ý
ϸ½ÚµÄÒªÇó¡£ËùÓеÄÐÔÄܼà²â¹¤¾ß¶¼ÊÇ°´ÕÕͬÑùµÄ¹æÔòÀ´¹¤×÷µÄ£¬ËùÒÔÎÞÂÛÄãʹÓÃÄÄÖÖ¼ ......
ת×Ô£ºhttp://www.oracle.com/technology/global/cn/pub/articles/calish-find.html
Linux find
ÃüÁîÊÇËùÓÐ Linux ÃüÁîÖÐ×îÓÐÓõÄÒ»¸ö£¬Í¬Ê±Ò²ÊÇ×î»ìÂÒµÄÒ»¸ö¡£ËüºÜÄÑ£¬ÒòΪËüµÄÓï·¨ÓëÆäËû
Linux ÃüÁîµÄ±ê×¼Óï·¨²»Í¬¡£µ«ÊÇ£¬ËüºÜÇ¿´ó£¬ÒòΪËüÔÊÐíÄú°´ÎļþÃû¡¢ÎļþÀàÐÍ¡¢Óû§ÉõÖÁÊÇʱ¼ä´Á²éÕÒÎļþ¡£Ê¹Óà find
̟産 ......
chmod £»ÐÞ¸ÄĿ¼ȨÏÞ
eg£ºchmod o-t /tmp
touch:´´½¨ÐÂÎļþ
rm -rf:ɾ³ýÎļþ
set gid ¶ÔĿ¼µÄ×÷ÓÃ
1£ºÄ¬ÈÏÇé¿öÏ£¬Óû§½¨Á¢µÄÎļþÊôÓÚÓû§µ±Ç°ËùÔÚµÄ×é
2£ºÄ¿Â¼ÉÏÉèÖÃÁËsetgid£¬±íʾÔÚ´ËĿ¼ÖУ¬ÈκÎÈ˽¨Á¢µÄÎļþ£¬¶¼»áÊôÓÚĿ¼ËùÊôµÄ×é¡£
rm -rf test //ɾ³ý֮ǰµÄtestĿ¼
mkdir test // ÔÚµ±Ç°Ä¿Â¼´´½¨Ò ......