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

linuxÖÐviÏÔʾÖÐÎÄÂÒÂëµÄÎÊÌâ


ÓÉÓÚÔÚwindowsÏÂĬÈÏÊÇgb±àÂ룬¶øÎÒµÄvimĬÈÏÊÇutf-8£¨geditĬÈÏÒ²ÊÇutf-8£©£¬ËùÒÔ´ò¿ª»á³ÉÂÒÂë¡£ÐÞ¸ÄÁËÒ»ÏÂÅäÖÃÎļþ£¬Ê¹viÖ§³Ögb±àÂë¾ÍºÃÁË¡£
$vi ~/.vimrc
let &termencoding=&encoding
set fileencodings=utf-8,gbk
$:wq
Ôٴδò¿ªvi£¬ÏÔʾ¾ÍÕý³£ÁË¡£
vimÖб༭²»Í¬±àÂëµÄÎļþʱÐèҪעÒâµÄһЩµØ·½
´ËÎĽ²½âµÄÊÇvim±à¼­¶à×Ö½Ú±àÂëÎĵµ£¨ÖÐÎÄ£©ËùÒªÁ˽âµÄһЩ»ù´¡ÖªÊ¶£¬×¢ÒâÆäûÓÐÉæ¼°gvim£¬´¿Ö¸×Ö·ûÖÕ¶ËϵÄvim¡£
vim±àÂë·½ÃæµÄ»ù´¡ÖªÊ¶£º
1£¬´æÔÚ3¸ö±äÁ¿£º
encoding—-¸ÃÑ¡ÏîʹÓÃÓÚ»º³åµÄÎı¾(ÄãÕýÔڱ༭µÄÎļþ)£¬¼Ä´æÆ÷£¬Vim ½Å±¾ÎļþµÈµÈ¡£Äã¿ÉÒÔ°Ñ ‘encoding’ Ñ¡Ïîµ±×÷ÊÇ¶Ô Vim ÄÚ²¿ÔËÐлúÖƵÄÉ趨¡£
fileencoding—-¸ÃÑ¡ÏîÊÇvimдÈëÎļþʱ²ÉÓõıàÂëÀàÐÍ¡£
termencoding—-¸ÃÑ¡Ïî´ú±íÊä³öµ½¿Í»§Öնˣ¨Term£©²ÉÓõıàÂëÀàÐÍ¡£
2£¬´Ë3¸ö±äÁ¿µÄĬÈÏÖµ£º
encoding—-Óëϵͳµ±Ç°localeÏàͬ£¬ËùÒԱ༭ÎļþµÄʱºòÒª¿¼Âǵ±Ç°locale£¬·ñÔòÒªÉèÖõĶ«Î÷¾Í±È½Ï¶àÁË¡£
fileencoding—-vim´ò¿ªÎļþʱ×Ô¶¯±æÈÏÆä±àÂ룬fileencoding¾ÍΪ±æÈϵÄÖµ¡£Îª¿ÕÔò±£´æÎļþʱ²ÉÓÃencodingµÄ±àÂ룬Èç¹ûûÓÐÐÞ¸Äencoding£¬ÄÇÖµ¾ÍÊÇϵͳµ±Ç°localeÁË¡£
termencoding—-ĬÈÏ¿ÕÖµ£¬Ò²¾ÍÊÇÊä³öµ½Öն˲»½øÐбàÂëת»»¡£
Óɴ˿ɼû£¬±à¼­²»Í¬±àÂëÎļþÐèҪעÒâµÄµØ·½²»½ö½öÊÇÕâ3¸ö±äÁ¿£¬»¹ÓÐϵͳµ±Ç°localeºÍ¡¢Îļþ±¾Éí±àÂëÒÔ¼°×Ô¶¯±àÂëʶ±ð¡¢¿Í»§ÔËÐÐvimµÄÖÕ¶ËËùʹÓõıàÂëÀàÐÍ3¸ö¹Ø¼üµã£¬Õâ3¸ö¹Ø¼üµãÓ°Ïì×Å3¸ö±äÁ¿µÄÉ趨¡£
Èç¹ûÓÐÈËÎÊ£ºÎªÊ²Ã´ÎÒÓÃvim´ò¿ªÖÐÎÄÎĵµµÄʱºò³öÏÖÂÒÂ룿
´ð°¸ÊDz»È·¶¨µÄ£¬Ô­ÒòÉÏÃæÒѾ­½²ÁË£¬²»¸ãÇå³þÕâ3¸ö¹Ø¼üµãºÍÕâ3¸ö±äÁ¿µÄÉ趨ֵ£¬³öÏÖÂÒÂëÊÇÕý³£µÄ£¬µ¹ÊDz»³öÏÖÂÒÂëÄÇ·´µ¹ÊÇ´ÕÇɵġ£
ÔÙÀ´¿´Ò»Ï³£¼ûÇé¿öÏÂÕâÈý¸ö¹Ø¼üµãµÄÖµÒÔ¼°ÔÚÕâÖÖÇé¿öÏÂÕâ3¸ö±äÁ¿µÄÖµ£º
1£¬locale—-Ä¿Ç°´ó²¿·ÖLinuxϵͳÒѾ­½«utf-8×÷ΪĬÈÏlocaleÁË£¬²»¹ýÒ²ÓпÉÄܲ»ÊÇ£¬ÀýÈçÓÐЩϵͳʹÓÃÖÐÎÄlocale zh_CN.GB18030¡£ÔÚlocaleΪutf-8µÄÇé¿öÏ£¬Æô¶¯vimºóencoding½«»áÉèÖÃΪutf-8£¬ÕâÊǼæÈÝÐÔ×îºÃµÄ·½Ê½£¬ÒòΪÄÚ²¿ ´¦ÀíʹÓÃutf-8µÄ»°£¬ÎÞÂÛÍⲿ´æ´¢±àÂëΪºÎ¶¼¿ÉÒÔ½øÐÐÎÞȱËðת»»¡£locale¾ö¶¨ÁËvimÄÚ²¿´¦ÀíÊý¾ÝµÄ±àÂ룬Ҳ¾ÍÊÇencoding¡£
2£¬ÎļþµÄ±àÂëÒÔ¼°×Ô¶¯±àÂëʶ±ð—-Õâ·½ÃæÇ£³¶µ½¸÷ÖÖ±àÂëµÄ¹æÔò£¬¾Í²»Ò»Ò»Ï¸½²ÁË¡£µ«ÐèÒªÃ÷°×µÄÊÇ£¬Îļþ±àÂëÀàÐͲ¢²»ÊDZ£´æÔÚÎļþÄڵģ¬Ò²¾ÍÊÇ˵ûÓÐÈÎ


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì(Áù) L2CAP±à³ÌʵÀý

ÀýÒ»£º·¢ËÍSignaling Packet£º
Signaling CommandÊÇ2¸öBluetoothʵÌåÖ®¼äµÄL2CAP²ãÃüÁî´«Êä¡£ËùÒÔµÃSignaling CommandʹÓÃCID 0x0001.
¶à¸öCommand¿ÉÒÔÔÚÒ»¸öC-frame£¨control frame£©Öз¢ËÍ¡£
 Èç¹ûÒªÖ±½Ó·¢ËÍSignaling Command.ÐèÒª½¨Á¢SOCK_RAWÀàÐ͵ÄL2CAPÁ¬½ÓSocket¡£ÕâÑù²ÅÓлú»á×Ô¼ºÌî³äCommand Code£¬Identi ......

Linux SSHÃüÁî´óÈ«


rm -rf mydir /* ɾ³ýmydirĿ¼ */
cd mydir /* ½øÈëmydirĿ¼ */
cd – /* »ØÉÏÒ»¼¶Ä¿Â¼ */
cd ~ /* »Ø¸ùĿ¼ */
mv tools tool /* °ÑtoolsĿ¼¸ÄÃûΪtool */
ln -s tool bac
/* ¸øtoolĿ¼´´½¨ÃûΪbacµÄ·ûºÅÁ´½Ó,×îÊìϤµÄÓ¦¸Ã¾ÍÊÇFTPÖÐwwwÁ´½Óµ½public_htmlĿ¼ÁË */
cp -a tool /home/leavex/www /* °Ñtoo ......

ʵÀý½âÎöLinuxÏÂĿ¼µÄȨÏÞ

ʵÀý½âÎöLinuxÏÂĿ¼µÄȨÏÞ
˵Ã÷:Èç¹û¶Ôumask,ȨÏÞÖµ,ÎļþµÄȨÏÞr,w,x¶¼²»Á˽âµÄÅóÓÑ,ÇëÏÈÈ¥²¹Ò»ÏÂÕâ·½ÃæµÄ֪ʶ,ÕâÀï²»×ö½éÉÜ,Ö±½Ó½øÈëÕýÌâ.
Ï£Íûͨ¹ýʵÀý½²½â,ÄÜÈøü¶àµÄ³õѧÕ߶ÔĿ¼µÄȨÏÞ¸üÇåÎú,¸üÃ÷°×!
      
±¾ÊµÀýÓõ½Á½¸öÕʺÅ:root  ºÍ Ò»°ãÓû§
(rootÓû§µÄÌáʾ·û "#&qu ......

Linux´ÅÅÌ·ÖÇøUUIDµÄ»ñÈ¡¼°ÆäUUIDµÄ×÷ÓÃ

Ò»¡¢Linux´ÅÅÌ·ÖÇøUUIDµÄ»ñÈ¡·½·¨
1¡¢[san@localhost ~]$ ls -l /dev/disk/by-uuid/
total 0
lrwxrwxrwx 1 root root 10 2010-01-18 02:18 0733f5c1-cb85-4f98-9d4f-122cfcee9806
-> ../../sdc1
lrwxrwxrwx 1 root root 10 2010-01-18 01:13 3754-1BDB
-> ../../sda5
lrwxrwxrwx 1 root root 10 2010-01-18 ......

linuxÏÂÆÕͨÓû§Çл»Îªroot

ÔÚLinuxϵͳÖУ¬rootÓû§ÊÇÒ»¸öȨÏ޷dz£´óµÄÓû§£¬ÕýÒòΪÆäȨÏÞ´óµ½ÄÜΣ¼°²Ù×÷ϵͳµÄ°²È«£¬ËùÒÔÎÒÃÇƽʱ²Ù×÷µçÄÔµÄʱºò¶¼ÊÇÓõÄÆÕͨÓû§
Ãû£¬Ö»ÓÐÔÚijЩ³¡ºÏÉèÖÃÐèÒª³¬¼¶Óû§È¨ÏÞµÄʱºòÔÙÁÙʱÓÃsuÃüÁîÇл»ÎªrootÓû§¡£²»¹ýÓÐʱºò²»ÏëÈÃÎÒµÄrootÃÜÂë¸æËß±ðÈË£¬µ«ÊÇÒ²Ïë±ðÈË×öһЩ³¬¹ý
ÆÕͨÓû§°²È«¼¶±ðµÄ²Ù×÷Ó¦¸ÃÔõô×öÄØ£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ