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

Linux ³£ÓÃϵͳ¹ÜÀíµÄÃüÁî

 ¹Ø¼ü´Ê£º Linux    ϵͳ¹ÜÀí                                          
1¡¢²é¿´Ä³ÎļþµÄÒ»²¿·Ö
Èç¹ûÄãÖ»Ïë¿´ÎļþµÄÇ° 5 ÐУ¬¿ÉÒÔʹÓà head ÃüÁ
È磺head -5 /etc/passwd
Èç¹ûÄãÏë²é¿´ÎļþµÄºó 10 ÐУ¬¿ÉÒÔʹÓà tail ÃüÁ
È磺tail -10 /etc/passwd
²é¿´ÎļþÖмäÒ»¶Î£¬¿ÉÒÔʹÓà sed ÃüÁî
Èç:sed –n '5,10p' /etc/passwd ÕâÑùÄã¾Í¿ÉÒÔÖ»²é¿´ÎļþµÄµÚ 5 Ðе½µÚ 10 ÐÐ
2¡¢½« file.txt ÀïµÄ123¸ÄΪ 456
·½·¨ 1
sed 's/123/456/g' file.txt > file.txt.new    Ð޸ĵı£´æµ½ÆäËüÎļþ
sed -i 's/123/456/g' file.txt Ö±½ÓÐÞ¸ÄÔ­Îļþ
·½·¨ 2
vi file.txt
ÊäÈëÃüÁ
:%s/123/456/g
×¢Ò⣺Èç¹ûÌæ»»µÄÎļþÓÐÌØÊâ·ûºÅÈç/¾ÍÒªÓÃ\À´È¡Ïû¡£
Àý£ºsed -i 's/\/usr\/local\/apache2\/htdocs/\/var\/www\/html/g' /usr/local/apache2/conf/httpd.conf
Èç¹ûÖ»ÊÇÏÂÔ­ÓеÄÐкóÌí¼Ó¾ÍÓÃ&
Àý£ºsed -i 's/DirectoryIndex index.html index.html.var/& index.htm index.php /g' /usr/local/apache2/conf/httpd.conf
3¡¢echo µäÐÍÓ¦ÓÃ
echo "abcdefg" | perl -lne '{$a = reverse($_); print $a;}' °ÑÒ»¸ö×Ö·û´®·­×ª
echo bottle|rev °ÑÒ»¸ö×Ö·û´®·­×ª
[ÎļþĿ¼¹ÜÀí]
1¡¢É¾³ý¼¸ÌìÒÔÇ°µÄËùÓж«Î÷(°üÀ¨Ä¿Â¼ÃûºÍĿ¼ÖеÄÎļþ£©
1) find . -ctime +3 -exec rm -rf {} \;
2) find ./ -mtime +3 -print|xargs rm -f –r
2¡¢Ôڶ༶Ŀ¼ÖвéÕÒij¸öÎļþµÄ·½·¨
1) find /dir -name filename.ext
2) du -a | grep filename.ext
3) locate filename.ext
3¡¢É¾³ýÈíÓ²Á¬½Ó×¢Òâµã
ɾ³ýÈí¼þÁ¬½ÓµÄʱºòÒ»¶¨Òª¼ÇµÃ²»ÒªÔÚɾ³ýµÄÎļþ¼Ðºó¼Óһб¸Ü,
rm -f filename/   
»á˵ÕâÊÇÒ»¸öÎļþ¼Ð²»ÄÜɾ³ý
rm filename
»áÌáʾ˵ÊÇ·ñҪɾ³ýÕâ¸öÁ¬½Ó¡£
Èç¹ûÓõĵÚÒ»ÖÖ¿ÉÄÜ»á°ÑÆäËüÎļþ¶¼É¾³ý
4¡¢É¾³ýĿ¼Öк¬ÊäÈë¹Ø¼ü×ÖµÄÎļþ
find /mnt/ebook/ -type f -exec grep "ÔÚ´ËÊäÈë¹Ø¼ü×Ö" {} \; -print -exec rm {} \;
5¡¢ÔÚµ±Ç°Ä¿Â¼Ï½âѹ rpm Îļþ
cat kernel-ntfs-2.4.20-8.i686.rpm | rpm2cpio | pax –r
6¡¢ÓÃÃüÁîÇå¿Õ Root »ØÊÕÕ¾ÖеÄÎļþ
cd /var/.Trash-


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì£¨ËÄ£© L2CAP²ã±à³Ì

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

ʵսLinux Bluetooth±à³Ì (Æß) SDPЭÒé

Service Discovery Protocol(SDP)ÌṩһÖÖÄÜÁ¦£¬ÈÃÓ¦ÓóÌÐòÓз½·¨·¢ÏÖÄÄÖÖ·þÎñ¿ÉÓÃÒÔ¼°ÕâÖÖ·þÎñµÄÌØÐÔ¡£
·þÎñ·¢ÏÖЭÒé(SDP»òBluetooth SDP)ÔÚÀ¶ÑÀЭÒéÕ»ÖжÔÀ¶ÑÀ»·¾³ÖеÄÓ¦ÓóÌÐòÓÐÌØÊâµÄº¬Ò⣬·¢ÏÖÄĸö·þÎñÊÇ¿ÉÓõĺÍÈ·¶¨ÕâЩ¿ÉÓ÷þÎñµÄÌØÕ÷¡£SDP¶¨ÒåÁËbluetooth client·¢ÏÖ¿ÉÓÃbluetooth server·þÎñºÍËüÃǵÄÌØÕ÷µÄ·½·¨¡£ ......

LinuxÉ豸ģÐÍÖ®input×ÓϵͳÏê½â

Ò»£ºÇ°ÑÔ
×î½üÔÚÑо¿androidµÄsensor driver£¬Ö÷ÒªÊÇE-compass£¬ÆäÖÐÓõ½ÁËLinux input×Óϵͳ.ÔÚÍøÉÏÒ²¿´Á˺ܶàÕâ·½ÃæµÄ×ÊÁÏ£¬¸Ð¾õ»¹ÊÇÕâƪ·ÖÎöµÄ±È½ÏϸÖÂ͸³¹£¬Òò´ËתÔØÒ»ÏÂÒÔ±ã×Ô¼ºÑ§Ï°£¬Í¬Ê±ºÍ´ó¼Ò·ÖÏí£¡
£¨Õâƪ²©¿ÍÖ÷ÒªÊÇÒÔ¼üÅÌÇý¶¯ÎªÀýµÄ£¬²»¹ý½²½âµÄÊÇLinux Input Subsystem£¬¿ÉÒÔ×ÐϸµÄÑо¿Ò»Ï£¡£©
¼üÅÌÇý¶¯½«¼ì ......

¡¾×ª¡¿LinuxϵͳÌØÊâÎļþ

 Ä¿Â¼ÊÇLinuxϵͳ×éÖ¯ÎļþµÄÒ»ÖÖÌØÊâÎļþ¡£ÎªÊ¹Óû§¸üºÃµØʹÓÃĿ¼£¬ÎÒÃǽéÉÜÓйØĿ¼µÄһЩ»ù±¾¸ÅÄî¡£
£¨1£©¹¤×÷Ŀ¼ÓëÓû§Ö÷Ŀ¼
    ´ÓÂß¼­ÉϽ²£¬Óû§ÔڵǼµ½LinuxϵͳÖÐÖ®ºó£¬Ã¿Ê±Ã¿¿Ì¶¼´¦ÔÚij¸öĿ¼֮ÖУ¬´ËĿ¼±»³Æ×ö¹¤×÷Ŀ¼»òµ±Ç°Ä¿Â¼£¨Working Directory£©¡£¹¤×÷Ŀ¼ÊÇ¿ÉÒÔËæʱ¸Ä±äµÄ¡£Ó ......

[linux]

ÅäÖãº
ͨ¹ýÎļþÃû²éÕÒ·¨£º
Õâ¸ö·½·¨ËµÆðÀ´¾ÍºÍÔÚWINDOWSϲéÕÒÎļþÒ»ÑùÈÝÒ×Àí½âÁË¡£Èç¹ûÄã°ÑÕâ¸öÎļþ·ÅÔÚµ¥¸öµÄÎļþ¼Ð
ÀïÃ棬ֻҪʹÓó£¼ûµÄ“ls"ÃüÁî¾ÍÄÜ·½±ãµÄ²éÕÒ³öÀ´£¬ÄÇôʹÓÓfind”ÃüÁîÀ´²éÕÒËü¾Í²»Äܸø
ÄãÁôÏÂÉî¿ÌµÄÓ¡Ï󣬱Ͼ¹“find”ÃüÁîµÄÇ¿´ó¹¦Äܲ»Ö¹Õâ¸ö¡£Èç¹ûÖªµÀÁËij¸ö ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ