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»¶ÔÎļþ½øÐÐÕæÊµ²Ù×
Ïà¹ØÎĵµ£º
½øÈëviºó ÓÐÁ½ÖÖģʽ
1.±à¼Ä£Ê½
2.ÃüÁîģʽ
½øÈëviºóĬÈÏÊÇÃüÁîģʽ£¬ËùÒÔ²»ÒªÂÒ°´ ¾Í»áµÃµ½ddµÄ¾¯¸æÉù£¬ÒªÊäÈëÎÄ×ֵϰ Çë°´aºói ¾Í¿ÉÒÔ¿ªÊ¼ÊäÈëÎÄ×ÖÀ£¡
ÊäÈë½áÊøºó Çë°´esc¼ü»ØÃüÁîģʽ
ÊäÈëq¾ÍÊÇÍ˳ö
ÊäÈëwq¾ÍÊÇ´æÅ̺óÍ˳ö
ÊäÈëq!·ÅÆú´æÅÌÇ¿ÐÐÍ˳ö
.
Vi µÄʹÓÃ
Vi ÒѾÊÇ Unix ϵͳÖбê×¼µÄÎÄ×Ö±à¼Æ ......
ÎÒÓõÄUBUNTU9.04 ¡£
×°JDKʱ³öÏÖÁËDeleting temporary files...
ÆÁÄ»³ÖÐøÊ®¼¸·ÖÖÓ¶¼»¹ÊÇDeleting temporary files...¿´À´ÊÇ×°²»ÁËÁË¡£ÖØÐ¿ªÊ¼×°Ò»´Î
sudo chmod a+x ./jre-6u16-linux-i586.bin
sudo ./jre-6u16-linux-i586.bin
È»ºóÔÚÖÕ¶ËÅäÖû·¾³±äÁ¿£º
export JAVA_HOME=/usr/java/jdk1.6.0_16
&n ......
/bin »ù´¡ÏµÍ³ËùÐèÒªµÄÄÇЩÃüÁîλÓÚ´ËĿ¼£¬Ò²ÊÇ×îСϵͳËùÐèÒªµÄÃüÁ±ÈÈç ls¡¢cp¡¢mkdirµÈÃüÁ¹¦ÄܺÍ/usr/binÀàËÆ£¬Õâ¸öĿ¼ÖеÄÎļþ¶¼ÊÇ¿ÉÖ´Ðе쬯ÕͨÓû§¶¼¿ÉÒÔʹÓõÄÃüÁî¡£×öΪ»ù´¡ÏµÍ³ËùÐèÒªµÄ×î»ù´¡µÄÃüÁî¾ÍÊÇ·ÅÔÚÕâÀï¡£ /boot LinuxµÄÄں˼°Òýµ¼ÏµÍ³³ÌÐòËùÐèÒªµÄÎļþ£¬±ÈÈç vmlinuz initr ......
¾¡¹Ü²»Ô¸Òâ¹ý·ÖÉùÕÅ£¬µ«ÁªÏëȷʵÔÚÖØ»ØLinuxµÄÀÏ·¡£11ÔÂ12ÈÕ£¬¸ßͨCEO Paul Jacobs͸¶ÁËÁªÏëÒ»¿î»ùÓÚARM¼Ü¹¹
Snapdragon´¦ÀíÆ÷µÄÖÇÄܱ¾²úÆ·£¬ÕâÖÖ²úÆ·µÄ¶¨Î»½éÓÚÖÇÄÜÊÖ»úÓëÉÏÍø±¾Ö®¼ä¡£Jacobs»¹Ðû³ÆÕâ¿î»ùÓÚLinuxµÄÖÇÄܱ¾½«ÓÚÃ÷Äê1Ô·ÝÕÙ¿ªµÄ
CES¼ÆËã»úµç×ÓÕ¹»áÉÏÕýÊ½Â¶Ãæ£¬¶øÁªÏëËæºóÒ²¶ÔÕâÔòÏûÏ¢½øÐÐÁËÈ·ÈÏ£¬ ......
²Î¿¼£º
http://longer.spaces.eepw.com.cn/articles/article/item/60415
http://imganquan.org/blog/?p=350
ÍøÉÏÕҵ쬹éÄÉһϣº
ÔÓÏîÉ豸£¨misc device£©
ÔÓÏîÉ豸ҲÊÇÔÚǶÈëʽϵͳÖÐÓõñȽ϶àµÄÒ»ÖÖÉ豸Çý¶¯¡£ÔÚ Linux Äں˵Äinclude\linuxĿ¼ÏÂÓÐMiscdevice.hÎļþ£¬Òª°Ñ×Ô¼º¶¨ÒåµÄmisc device´ÓÉ豸¶¨ÒåÔÚÕâÀï¡ ......