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

Linuxϲ鿴Îļþ±àÂë,Îļþ»òÎļþÃû±àÂë¸ñʽת»»


Èç¹ûÄãÐèÒªÔÚLinuxÖвÙ×÷windowsϵÄÎļþ£¬ÄÇôÄã¿ÉÄܻᾭ³£Óöµ½Îļþ±àÂëת»»µÄÎÊÌâ¡£WindowsÖÐĬÈϵÄÎļþ¸ñʽÊÇGBK(gb2312)£¬¶øLinuxÒ»°ã¶¼ÊÇUTF-8¡£ÏÂÃæ½éÉÜһϣ¬ÔÚLinuxÖÐÈçºÎ²é¿´ÎļþµÄ±àÂë¼°ÈçºÎ½øÐжÔÎļþ½øÐбàÂëת»»¡£
Ò»£¬²é¿´Îļþ±àÂ룺
ÔÚLinuxÖв鿴Îļþ±àÂë¿ÉÒÔͨ¹ýÒÔϼ¸ÖÖ·½Ê½£º
1.ÔÚVimÖпÉÒÔÖ±½Ó²é¿´Îļþ±àÂë
:set fileencoding
¼´¿ÉÏÔʾÎļþ±àÂë¸ñʽ¡£
Èç¹ûÄãÖ»ÊÇÏë²é¿´ÆäËü±àÂë¸ñʽµÄÎļþ»òÕßÏë½â¾öÓÃVim²é¿´ÎļþÂÒÂëµÄÎÊÌ⣬ÄÇôÄã¿ÉÒÔÔÚ
~/.vimrc ÎļþÖÐÌí¼ÓÒÔÏÂÄÚÈÝ£º
set encoding=utf-8 fileencodings=ucs-bom,utf-8,cp936
ÕâÑù£¬¾Í¿ÉÒÔÈÃvim×Ô¶¯Ê¶±ðÎļþ±àÂ루¿ÉÒÔ×Ô¶¯Ê¶±ðUTF-8»òÕßGBK±àÂëµÄÎļþ£©£¬Æäʵ¾ÍÊÇÒÀÕÕfileencodingsÌṩµÄ±àÂëÁÐ±í³¢ÊÔ£¬Èç¹ûûÓÐÕÒµ½ºÏÊʵıàÂ룬¾ÍÓÃlatin-1(ASCII)±àÂë´ò¿ª¡£
2. enca (Èç¹ûÄãµÄϵͳÖÐûÓа²×°Õâ¸öÃüÁ¿ÉÒÔÓÃsudo yum install -y enca °²×° )²é¿´Îļþ±àÂë
$ enca filename
filename: Universal transformation format 8 bits; UTF-8
CRLF line terminators
ÐèҪ˵Ã÷Ò»µãµÄÊÇ£¬enca¶ÔijЩGBK±àÂëµÄÎļþʶ±ðµÄ²»ÊǺܺã¬Ê¶±ðʱ»á³öÏÖ£º
Unrecognized encoding
¶þ£¬Îļþ±àÂëת»»
1.ÔÚVimÖÐÖ±½Ó½øÐÐת»»Îļþ±àÂë,±ÈÈ罫һ¸öÎļþת»»³Éutf-8¸ñʽ
:set fileencoding=utf-8
2. iconv ת»»£¬iconvµÄÃüÁî¸ñʽÈçÏ£º
iconv -f encoding -t encoding inputfile
±ÈÈ罫һ¸öUTF-8 ±àÂëµÄÎļþת»»³ÉGBK±àÂë
iconv -f GBK -t UTF-8 file1 -o file2
3. enconv ת»»Îļþ±àÂë
±ÈÈçÒª½«Ò»¸öGBK±àÂëµÄÎļþת»»³ÉUTF-8±àÂ룬²Ù×÷ÈçÏÂ
enconv -L zh_CN -x UTF-8 filename
Èý£¬ÎļþÃû±àÂëת»»:
´ÓLinuxÍù windows¿½±´Îļþ»òÕß´ÓwindowsÍùLinux¿½±´Îļþ£¬ÓÐʱ»á³öÏÖÖÐÎÄÎļþÃûÂÒÂëµÄÇé¿ö£¬³öÏÖÕâÖÖÎÊÌâµÄÔ­ÒòÊÇÒòΪ£¬windowsµÄÎļþÃûÖÐÎıàÂëĬÈÏΪGBK,¶øLinuxÖÐĬÈÏÎļþÃû±àÂëΪUTF8,ÓÉÓÚ±àÂë²»Ò»Ö£¬ËùÒÔµ¼ÖÂÁËÎļþÃûÂÒÂëµÄÎÊÌ⣬½â¾öÕâ¸öÎÊÌâÐèÒª¶ÔÎļþÃû½øÐÐתÂë¡£
ÔÚLinuxÖÐרÃÅÌṩÁËÒ»ÖÖ¹¤¾ßconvmv½øÐÐÎļþÃû±àÂëµÄת»»£¬¿ÉÒÔ½«ÎļþÃû´ÓGBKת»»³ÉUTF-8±àÂë,»òÕß´ÓUTF-8ת»»µ½GBK¡£
Ê×ÏÈ¿´Ò»ÏÂÄãµÄϵͳÉÏÊÇ·ñ°²×°ÁËconvmv,Èç¹ûû°²×°µÄ»°ÓÃ:
yum -y install convmv
°²×°¡£
ÏÂÃæ¿´Ò»ÏÂconvmvµÄ¾ßÌåÓ÷¨£º
convmv -f Ô´±àÂë -t бàÂë [Ñ¡Ïî] ÎļþÃû
³£ÓòÎÊý£º
-r µÝ¹é´¦Àí×ÓÎļþ¼Ð
–notest ÕæÕý½øÐвÙ×÷£¬Çë×¢ÒâÔÚĬÈÏÇé¿öÏÂÊDz»¶ÔÎļþ½øÐÐÕæʵ²Ù×


Ïà¹ØÎĵµ£º

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

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

linux vi µÄ¼òµ¥Ó÷¨

 ½øÈëviºó ÓÐÁ½ÖÖģʽ
1.±à¼­Ä£Ê½
2.ÃüÁîģʽ
½øÈëviºóĬÈÏÊÇÃüÁîģʽ£¬ËùÒÔ²»ÒªÂÒ°´ ¾Í»áµÃµ½ddµÄ¾¯¸æÉù£¬ÒªÊäÈëÎÄ×ֵĻ° Çë°´aºói ¾Í¿ÉÒÔ¿ªÊ¼ÊäÈëÎÄ×ÖÀ­£¡
ÊäÈë½áÊøºó Çë°´esc¼ü»ØÃüÁîģʽ
ÊäÈëq¾ÍÊÇÍ˳ö
ÊäÈëwq¾ÍÊÇ´æÅ̺óÍ˳ö
ÊäÈëq!·ÅÆú´æÅÌÇ¿ÐÐÍ˳ö
.
Vi µÄʹÓÃ
Vi ÒѾ­ÊÇ Unix ϵͳÖбê×¼µÄÎÄ×Ö±à¼­Æ ......

ѧϰLinuxµÄһЩ±Ê¼Ç

 ½ñÌìÆð¿ªÊ¼¶ÔLinuxѧϰ×öЩÏà¹ØµÄ±Ê¼Ç£¬ÒÔ±ãÈÕºóÄܹ»ÓõÄÉÏ
1.ÈçºÎÈÃsshÖ»ÔÊÐíÖ¸¶¨µÄÓû§µÇ¼
    ¿ÉÒÔÔÚ/etc/ssh/sshd_configÖÐÔö¼ÓAllowUsers  user_name£¬È»ºóÖØÆô·þÎñ(service sshd restart)
2.¸Ä±ässhµÄ¶Ë¿ÚºÅ
   ¿ÉÔÚ/etc/ssh/ssd_configÎļþÖмÓÈëÀýÈ磺Port 2222£¬È»ºóÖØÆ ......

linux cÎÊÌ⼯½õ

1.ΪʲôÎÒдµÄMakefile£¬Ôڱ༭ÁËÔ´´úÂëÎļþºó£¬Ê¹ÓÃmake£¬makeÈ´ÌáʾĿ±êÎļþÒѾ­Îª×îеÄÁË£¡
2.OpenGL,ÔÚ´°¿ÚÖл­µãʱ£¬ÔõÑùʹÓÃglVertexi()º¯Êý£¿ÒòΪ´«µÝµÄ²ÎÊýÈç¹ûÊÇ´óÓÚ1µÄintÐÍ£¬Ôò²»ÐУ¬¶ø±ØÐë´«µÝ[-0.1~0.1]Ö®¼äµÄfloat£¬¶øÇÒʹÓú¯Êý
gVertex2f().
3.OpenGL,ʹÓò˵¥Ê±£¬ÔõÑù½â¾öµã»÷²Ëµ¥ºó²»Òª²¶×½GLUT_UPÊ ......

ÁªÏëÔÚÓÖ×ß»ØLinuxµÄÀÏ·?

 
¾¡¹Ü²»Ô¸Òâ¹ý·ÖÉùÕÅ£¬µ«ÁªÏëȷʵÔÚÖØ»ØLinuxµÄÀÏ·¡£11ÔÂ12ÈÕ£¬¸ßͨCEO Paul Jacobs͸¶ÁËÁªÏëÒ»¿î»ùÓÚARM¼Ü¹¹
Snapdragon´¦ÀíÆ÷µÄÖÇÄܱ¾²úÆ·£¬ÕâÖÖ²úÆ·µÄ¶¨Î»½éÓÚÖÇÄÜÊÖ»úÓëÉÏÍø±¾Ö®¼ä¡£Jacobs»¹Ðû³ÆÕâ¿î»ùÓÚLinuxµÄÖÇÄܱ¾½«ÓÚÃ÷Äê1Ô·ÝÕÙ¿ªµÄ
CES¼ÆËã»úµç×ÓÕ¹»áÉÏÕýʽ¶Ã棬¶øÁªÏëËæºóÒ²¶ÔÕâÔòÏûÏ¢½øÐÐÁËÈ·ÈÏ£¬ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ