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

Unix/Linux ÃüÁî²Î¿¼

ÎļþÃüÁî
ls – ÁгöĿ¼
ls -al – ʹÓøñʽ»¯ÁгöÒþ²ØÎļþ
cd dir - ¸ü¸ÄĿ¼µ½ dir
cd – ¸ü¸Äµ½ home Ŀ¼
pwd – ÏÔʾµ±Ç°Ä¿Â¼
mkdir dir – ´´½¨Ä¿Â¼ dir
rm file – ɾ³ý file
rm -r dir – ɾ³ýĿ¼ dir
rm -f file – Ç¿ÖÆɾ³ý file
rm -rf dir – Ç¿ÖÆɾ³ýĿ¼ dir *
cp file1 file2 – ½« file1 ¸´ÖƵ½ file2
cp -r dir1 dir2 – ½« dir1 ¸´ÖƵ½ dir2; Èç¹û dir2 ²»´æÔÚÔò´´½¨Ëü
mv file1 file2 – ½« file1 ÖØÃüÃû»òÒƶ¯µ½ file2; Èç¹ûfile2 ÊÇÒ»¸ö´æÔÚµÄĿ¼Ôò½« file1 Òƶ¯µ½Ä¿Â¼ file2 ÖÐ
ln -s file link – ´´½¨ file µÄ·ûºÅÁ¬½Ó link
touch file – ´´½¨ file
cat > file – ½«±ê×¼ÊäÈëÌí¼Óµ½ file
more file – ²é¿´ file µÄÄÚÈÝ
head file – ²é¿´ file µÄÇ° 10 ÐÐ
tail file – ²é¿´ file µÄºó 10 ÐÐ
tail -f file – ´Óºó 10 ÐпªÊ¼²é¿´ file µÄÄÚÈݽø³Ì¹ÜÀí
ps – ÏÔʾµ±Ç°µÄ»î¶¯½ø³Ì
top – ÏÔʾËùÓÐÕýÔÚÔËÐеĽø³Ì
kill pid – ɱµô½ø³Ì id pid
killall proc – ɱµôËùÓÐÃûΪ proc µÄ½ø³Ì *
bg – ÁгöÒÑÍ£Ö¹»òºǫ́µÄ×÷Òµ
fg – ½«×î½üµÄ×÷Òµ´øµ½Ç°Ì¨
fg n – ½«×÷Òµ n ´øµ½Ç°Ì¨
---------------------------------------------------------------------------
ÎļþȨÏÞ
chmod octal file – ¸ü¸Ä file µÄȨÏÞ
¡ñ 4 – ¶Á (r)
¡ñ 2 – д (w)
¡ñ 1 – Ö´ÐÐ (x)
ʾÀý:
chmod 777 – ΪËùÓÐÓû§Ìí¼Ó¶Á¡¢Ð´¡¢Ö´ÐÐȨÏÞ
chmod 755 – ΪËùÓÐÕßÌí¼Ó rwx ȨÏÞ, Ϊ×éºÍÆäËûÓû§Ìí¼Órx ȨÏÞ
¸ü¶àÑ¡Ïî²ÎÔÄ man chmod.
---------------------------------------------------------------------------
SSH
ssh user@host – ÒÔ user Óû§Éí·ÝÁ¬½Óµ½ host
ssh -p port user@host – ÔÚ¶Ë¿Ú port ÒÔ user Óû§Éí·ÝÁ¬½Óµ½ host
ssh-copy-id user@host – ½«ÃÜÔ¿Ìí¼Óµ½ host ÒÔʵÏÖÎÞÃÜÂëµÇ¼
---------------------------------------------------------------------------
ËÑË÷
grep pattern files – ËÑË÷ files ÖÐÆ¥Åä pattern µÄÄÚÈÝ
grep -r pattern dir – µÝ¹éËÑË÷ dir ÖÐÆ¥Åä pattern µÄÄÚÈÝ
command | grep pattern – ËÑË÷ command Êä³öÖÐÆ¥Åäpattern µÄÄÚÈÝ
-----------


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì£¨Èý£© HCI²ã±à³Ì

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 Bluetooth±à³Ì£¨ËÄ£© L2CAP²ã±à³Ì

£¨L2CAPЭÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPЭÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼­Á¬½Ó¿ØÖƺÍÊÊÅäЭÒé (L2CAP) ΪÉϲãЭÒéÌṩÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àЭÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãЭÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......

LinuxÖÐÌí¼Ósudoer

 
ʹÓÃsudo¿ÉÒÔÔÚÒÔ·ÇrootÓû§µÇ¼ʱÁÙʱ»ñµÃrootȨÏÞ£¬²¢Ö´ÐÐÐèÒªµÄÃüÁî¡£
¿ÉÒÔʹÓÃsudoµÄÓû§¿ÉÒÔ½Ð×ösudoer¡£
Ìí¼ÓsudoerµÄ·½·¨£¨¼ÙÉèÄúÒѾ­°²×°sudo£©£º
Ö´ÐÐ
# visudo
»ò
# sudoedit
Ìáʾ£º
ÓÐЩ·¢ÐаæµÄsudoÌṩÁËsudoedit£¬ÓеÄÔòÌṩÁËvisudo£¬¹¦ÄÜÉÏ»ù±¾ÊÇÒ»ÑùµÄ¡£
ÄãÒ²¿ÉÒÔʹÓÃÆäËû±à¼­Æ÷Èçvi½øÐÐ ......

Linuxϳ£Óú¯Êý


getenv£¨È¡µÃ»·¾³±äÁ¿ÄÚÈÝ£©  
Ïà¹Øº¯Êý   putenv£¬setenv£¬unsetenv
±íÍ·Îļþ   #include<stdlib.h>
¶¨Ò庯Êý   char * getenv(const char *name);
º¯Êý˵Ã÷   getenv()ÓÃÀ´È¡µÃ²ÎÊýname»·¾³±äÁ¿µÄÄÚÈÝ¡£²ÎÊýnameΪ»·¾³±äÁ¿µÄÃû³Æ£¬Èç¹û¸Ã±äÁ¿´æÔÚÔò»á·µ»Ø ......

VVϸ˵ Ubuntu Linux Èí¼þÔ´


Ò»¿ªÊ¼×°ubuntuµÄʱºò£¬ºÃ¶à³õѧÕß²»ÖªµÀÈçºÎÌí¼ÓÔ´£¬Èç´ËÎÊÌâ·´·´¸´¸´£¬ÐÂÊÖÓÖ²»ÔõôȥGOOGLE£¬ÏÖÔÚÎÒ°ÑÕâЩÎÊÌâÕûÀíÏ£¬°ïÖúÐÂÊÖÀí½â²¢Ê¹Óãº
ʲôÊÇ Ubuntu Linux Èí¼þÔ´
Ô´£¬ÔÚubuntuÏ£¬Ëü¾ÍÏ൱ÓÚÈí¼þ¿â£¬ÐèҪʲôÈí¼þ£¬Ö»Òª¼ÇµÃÕýÈ·µÄÈí¼þÃû²¢ÇÒÈ·¶¨ÔÚubuntuÏ¿϶¨ÓеÄÈí¼þ£¬¾Í¿ÉÒÔʹÓÃÃüÁîÀ´°²×°Èí¼þµÄ£¨µ±È»Ò² ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ