½ø³ÌÔÚLinuxºǫ́ÔËÐÐ
ÔÚLinuxÖУ¬Èç¹ûÒªÈýø³ÌÔÚºǫ́ÔËÐУ¬Ò»°ãÇé¿öÏ£¬ÎÒÃÇÔÚÃüÁîºóÃæ¼ÓÉÏ&¼´¿É£¬Êµ¼ÊÉÏ£¬ÕâÑùÊǽ«ÃüÁî·ÅÈëµ½Ò»¸ö×÷Òµ¶ÓÁÐÖÐÁË£º
$ ./test.sh &
[1] 17208
$ jobs -l
[1]+ 17208 Running ./test.sh &
¶ÔÓÚÒѾÔÚǰִ̨ÐеÄÃüÁҲ¿ÉÒÔÖØзŵ½ºǫִ́ÐУ¬Ê×ÏÈ°´ctrl+zÔÝÍ£ÒѾÔËÐеĽø³Ì£¬È»ºóʹÓÃbgÃüÁֹͣµÄ×÷Òµ·Åµ½ºǫ́ÔËÐУº
$ ./test.sh
[1]+ Stopped ./test.sh
$ bg %1
[1]+ ./test.sh &
$ jobs -l
[1]+ 22794 Running ./test.sh &
µ«ÊÇÈçÉÏ·½µ½ºǫִ́ÐеĽø³Ì£¬Æ丸½ø³Ì»¹Êǵ±Ç°ÖÕ¶ËshellµÄ½ø³Ì£¬¶øÒ»µ©¸¸½ø³ÌÍ˳ö£¬Ôò»á·¢ËÍhangupÐźŸøËùÓÐ×Ó½ø³Ì£¬×Ó½ø³ÌÊÕµ½hangupÒÔºóÒ²»áÍ˳ö¡£Èç¹ûÎÒÃÇÒªÔÚÍ˳öshellµÄʱºò¼ÌÐøÔËÐнø³Ì£¬ÔòÐèҪʹÓÃnohupºöÂÔhangupÐźţ¬»òÕßsetsid½«½«¸¸½ø³ÌÉèΪinit½ø³Ì(½ø³ÌºÅΪ1)
$ echo $$
21734
$ nohup ./test.sh &
[1] 29016
$ ps -ef | grep test
515 29710 21734 0 11:47 pts/12 00:00:00 /bin/sh ./test.sh
515 29713 21734 0 11:47 pts/12 00:00:00 grep test
$ setsid ./test.sh &
[1] 409
$ ps -ef | grep test
515 410 1 0 11:49 ? 00:00:00 /bin/sh ./test.sh
515 413 21734 0 11:49 pts/12 00:00:00 grep test
ÉÏÃæµÄÊÔÑéÑÝʾÁËʹÓÃnohup/setsid¼ÓÉÏ&ʹ½ø³ÌÔÚºǫ́ÔËÐУ¬Í¬Ê±²»Êܵ±Ç°shellÍ˳öµÄÓ°Ïì¡£ÄÇô¶ÔÓÚÒѾÔÚºǫ́ÔËÐеĽø³Ì£¬¸ÃÔõô°ìÄØ£¿¿ÉÒÔʹÓÃdisownÃüÁ
$ ./test.sh &
[1] 2539
$ jobs -l
[1]+ 2539 Running ./test.sh &
$ disown -h %1
$ ps -ef | grep test
515 410 1 0 11:49 ? 00:00:00 /bin/sh ./test.sh
515 2542 21734 0 11:52 pts/12 00:00:00 grep test
ÁíÍ⻹ÓÐÒ»ÖÖ·½·¨£¬¼´Ê¹½«½ø³ÌÔÚÒ»¸ösubshellÖÐÖ´ÐУ¬ÆäʵÕâºÍsetsidÒìÇúͬ¹¤¡£·½·¨ºÜ¼òµ¥£¬½«ÃüÁîÓÃÀ¨ºÅ() À¨ÆðÀ´¼´¿É£º
$ (./test.sh &)
$ ps -ef | grep test
515 410 1 0 11:49 ? 00:00:00 /bin/sh ./test.sh
515 12483 21734 0 11:59 pts/12 00:00:00 grep test
×¢£º±¾ÎÄÊÔÑé»·¾³ÎªRed Hat Enterprise Linux AS release 4 (Nahant Update 5),shellΪ/bin/bash£¬²»Í¬µÄOSºÍsh
Ïà¹ØÎĵµ£º
1. HCI²ãÐÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI) ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,L2capµÈÐÒé ......
¶ÔÓÚ¸Õ¸Õ½Ó´¥LinuxµÄÈËÀ´Ëµ£¬Ò»¶¨»á¸øLinuxÏÂÒ»´ó¶Ñ¸÷ʽ¸÷ÑùµÄÎļþÃû¸ø¸ãÔΡ£±ð
¸ö²»Ëµ£¬µ¥µ¥¾ÍѹËõÎļþΪÀý£¬ÎÒÃÇÖªµÀÔÚWindowsÏÂ×î³£¼ûµÄѹËõÎļþ¾ÍÖ»ÓÐÁ½ÖÖ
£¬Ò»ÊÇ,zip£¬ÁíÒ»¸öÊÇ.rar¡£¿ÉÊÇLinux¾Í²»Í¬ÁË£¬ËüÓÐ.gz¡¢.tar.gz¡¢tgz¡¢bz2¡¢
.Z¡¢.tarµÈÖÚ¶àµÄѹËõÎļþÃû£¬´ËÍâwindowsϵÄ.zipºÍ.rarÒ²¿ÉÒÔÔÚLinuxÏÂʹÓà ......
Ö´ÐÐÏÂÁдúÂ룬²»ÐèҪȫִÐУ¬ÈÎÒâÒ»ÐоͿÉÒÔÁË¡£
setterm -bleng 0
setterm -blength 0
xset b off
===========
ÏÂÃæÁíÒ»ÖÖ·½·¨
ÁÙʱµÄ·½°¸
sudo rmmod pcspkr
¶ÔÓÚDebian/UbuntuµÄÓû§À´Ëµ£¬Ö»Òª´ò¿ªÄãµÄÖÕ¶ËÅÜÒ»ÏÂÉÏÊöµÄÃüÁî¾Í¿ÉÒÔÁË¡£¶ÔÓÚCentOS/Redhat/RHEL/FedoraµÄLinuxÓû§£¬ÔòÐèÒªÒÔrootÉí·ÝµÇ¼Ȼº ......
Linux²Ù×÷ϵͳ×ÔÈçµÄװжÄÚºËÄ£¿é
ʱ¼ä:2009-05-02 14:02 À´Ô´:δ֪ ×÷Õß:admin µã»÷:12´Î
LinuxÊǵ¥Äں˽ṹ£¬Ò²¾ÍÊÇ˵£¬ ËüÊÇÒ»¸ö´ó³ÌÐò£¬ÆäÖÐÈÎÒ»º¯Êý¶¼¿ÉÒÔ·ÃÎʹ«¹²Êý¾Ý½á¹¹ºÍÆäËüº¯Êýµ÷Óᣠ(×÷Ϊ²Ù×÷ϵͳ)ÁíÍâÒ»ÖÖ¿ÉÄܵĽṹÊǶàºËʽµÄ£¬ ¸÷¹¦Ä ......
LinuxÄں˲üôµÄ¾ßÌå²½Öè
ÔÚmenuconfigÖÐÅäÖãº
Ïêϸ½éÉÜÄÚºËÅäÖÃÑ¡Ïɾ¸ÄÇé¿ö
µÚÒ»²¿·Ö£ºÈ«²¿É¾³ý
Code maturity level options ---> ´úÂë³ÉÊìµÈ¼¶Ñ¡Ïî
[]Prompt for development and/or incomplete code/drivers ĬÈÏÇé¿öÏÂÊÇÑ¡ÔñµÄ£¬Õ⽫»áÔÚÉèÖýçÃæÖÐÏÔʾ»¹ÔÚ¿ª·¢»òÕß»¹Ã»ÓÐÍê³ÉµÄ´úÂëÓëÇý¶¯.²» ......