linuxÏÂviÓëvim±à¼Æ÷µÄÇø±ð¼°Ê¹Ó÷½·¨
viÓëvimÒ»Ñù¶¼ÊDZà¼Æ÷£¬²»Í¬µÄÊÇvim¸ü¸ß¼¶Ò»Ð©£¬¿ÉÒÔÀí½âÊÇviµÄ¸ß¼¶°æ±¾¡£vi¾ÍÏñWindowsÖеļÆʱ¾£¬¶øvimÔò¿ÉÒÔËãµÄÉÏÊÇ
officeÖеÄword¡£viÖ÷ÒªÓÃÀ´±à¼Ò»Ð©Îļþ£¬vimÊdzÌÐòÔ±µÄºÃ¹¤¾ß¡£ºÃµÄ¡£¡£¡£¡£ÏÂÃæÔÚ½éÉÜÒ»ÏÂviµÄʹÓᣡ£¡£¡£¡£¡£
1.
ʹÓÃvi½øÈëÒ»°ãģʽ
[root@linux ~]# vi test.txt
Ö±½ÓÊäÈë“vi
ÎļþÃû”¼´¿É½øÈëvi¡£Èçͼ10-2Ëùʾ£¬×óϽǻáÏÔʾÕâ¸öÎļþµÄµ±Ç°×´Ì¬¡£Èç¹ûÊÇн¨Îļþ£¬»áÏÔʾ [New
File]£¬Èç¹ûÊÇÒÑ´æÔÚµÄÎļþ£¬Ôò»áÏÔʾµ±Ç°ÎļþÃû¡¢ÐÐÊýÓë×Ö·ûÊý£¬ÀýÈ磺“"/etc/man.config" 145L, 4614C”¡£
ͼ10-2 ÀûÓÃvi´ò¿ªÒ»¸öÎļþ
2.
°´ÏÂi½øÈë±à¼Ä£Ê½£¬¿ªÊ¼±à¼ÎÄ×Ö
ÔÚÒ»°ãģʽÖУ¬Ö»Òª°´ÏÂI¡¢o¡¢aµÈ×Ö·û£¬¾Í¿ÉÒÔ½øÈë±à¼Ä£Ê½ÁË¡£ÔÚ±à¼Ä£Ê½ÖУ¬¿ÉÒÔ·¢ÏÖÔÚ×óϽǻá³öÏÖ
--INSERT-- £¬Òâζ×Å¿ÉÒÔÊäÈëÈÎÒâ×Ö·û£¬Èçͼ10-3Ëùʾ¡£Õâ¸öʱºò£¬¼üÅÌÉϳýÁË [Esc]
Õâ¸ö°´¼üÖ®Í⣬ÆäËû°´¼ü¶¼¿ÉÒÔÊÓ×÷Ϊһ°ãµÄÊäÈë°´Å¥£¬¿ÉÒÔ½øÐÐÈκα༣¨ÔÚviÀ[Tab]¼üËùµÃµ½µÄ½á¹ûÓë¿Õ¸ñ·ûËùµÃµ½µÄ²»Ò»Ñù£¬ÌرðÇ¿µ÷һϣ©¡£
ͼ10-3 ½øÈëviµÄ±à¼Ä£Ê½
3. °´ÏÂ [Esc]
¼ü»Øµ½Ò»°ãģʽ
°´Ï [Esc] ¼ü£¬ÂíÉϾͻᷢÏÖ»Ãæ×óÏÂ½ÇµÄ --INSERT-- ²»¼ûÁË¡£
4. ÔÚÒ»°ãģʽÖа´ÏÂ
:wq´æ´¢ºóÀ뿪vi
ÎÒÃÇÒª±£´æÎļþÁË£¬´æÅ̲¢À뿪µÄÃüÁîºÜ¼òµ¥£¬ÊäÈë“:wq”¼´¿É±£´æÎļþ²¢À뿪£¨×¢Ò⣬°´Ï :
£¬¸Ã¹â±ê¾Í»áÒƵ½×îÏÂÃæµÄÒ»ÐУ©¡£ÕâʱÔÚÌáʾ·ûºóÃæÊäÈë“ls -l”¼´¿É¿´µ½¸Õ½¨Á¢µÄtest.txtÎļþ£¬×îºó½á¹ûÈçͼ10-4Ëùʾ¡£
ͼ10-4 ÀûÓÃvi´æ´¢ÎļþÕâÑù£¬Îļþtest.txtÒѾ½¨Á¢ºÃ
ÁË£¬ÐèҪעÒâµÄÊÇ£¬Èç¹ûÎļþȨÏÞ²»¶Ô£¬ÀýÈçΪ -r--r--r--
ʱ£¬ÄÇô¿ÉÄÜ»áÎÞ·¨Ð´Èë¡£¿ÉÒÔʹÓÓǿÖÆдÈ딵ķ½Ê½Â𣿿ÉÒÔ¡£Ê¹ÓÓ:wq!”¶à¼ÓÒ»¸ö¸Ð̾ºÅ¼´¿É¡£²»¹ý£¬ÐèÒªÌرð×¢Ò⣬ÕâÊÇÔÚ“ÄãµÄȨÏÞ¿ÉÒԸı䔵Ä
Çé¿öÏ¿ÉÐеġ£
¶þ¡£¡£¡£¡£ ÃüÁîÐÐÄÚÈÝ˵Ã÷
ÈçÇ°ËùÊö£¬ÃüÁîÐлòÃüÁîģʽ£¬¾ÍÊÇÔÚ×îÏÂÃæÒ»ÐÐÖÐûÓÐÏÔʾ--INSERT--»òÕß
--REPLACE--×ÖÑù¡£Í¨³££¬ÃüÁîÐÐÖеÄÃüÁî²Î¼û±í10-1£¨×¢Ò⣬µ±°´Ï“:”ʱ£¬¹â±ê»á×Ô¶¯ÒƵ½ÆÁÄ»µÄ×îÏÂÃæÒ»ÐУ©¡£
±í
10-1
Ïà¹ØÎĵµ£º
2009 Äê 4 ÔÂ 23 ÈÕ
±¾ÎÄÖÐÎÒÃÇÕë¶Ô Linux É϶àÏ̱߳à³ÌµÄÖ÷ÒªÌØÐÔ×ܽá³ö 5 Ìõ¾Ñ飬ÓÃÒÔ¸ÄÉÆ Linux ¶àÏ̱߳à³ÌµÄÏ°¹ßºÍ±ÜÃâÆäÖеĿª·¢ÏÝÚå¡£ÔÚ±¾ÎÄÖУ¬ÎÒÃÇ´©²åһЩ Windows µÄ±à³ÌÓÃÀýÓÃÒÔ¶Ô±È Linux ÌØÐÔ£¬ÒÔ¼ÓÉî¶ÁÕßÓ¡Ïó¡£
±³¾°
Linux ƽ̨ÉϵĶàÏ̳߳ÌÐò¿ª·¢Ïà¶ÔÓ¦ÆäËûƽ̨£¨±ÈÈç Windows£©µÄ¶àÏß³Ì API ÓÐһЩϸ΢ ......
Õâ½Ú¿Î³ÌÊÇÏ൱ÖØÒªµÄ¡£Ò²ÊÇRHCE¿¼ÊÔÉÏÎçµÄ¿¼µÄÖ÷ÒªÄÚÈÝ£¬ÏµÍ³ÅÅ´í¡£Ö»ÒªÄã¿´¶®ÁËϵͳµÄÆô¶¯Á÷³Ì£¬ÅÅ´í¾Í»ù±¾Ã»Óжà´óÎÊÌâÁË¡£
¼ÆËã»úÆô¶¯£¬Éϵç×Ô¼ì¼ì²éBIOS¾Í²»ËµÁË,ËùÓÐϵͳ¶¼ÄÇÑù¡£
ÏÂÃæ¾ÍÊÇLINUXµÄÆô¶¯Á÷³Ì£º
£±¡¢Ó²¼þ¶ÁÈ¡Òýµ¼ÉÈÇø
£²¡¢¼ÓÔØLILO»òÕßGrub£¨Ò»°ãÎÒÃÇʹÓõÄÊÇGRUB£¬Õâ¸öÊÇÖص㣩
£³¡¢¼ÓÔØÄںˣ¨Ò ......
ÉÏÖÜ×îºóÎÒÃǽ²ÁËsudo,½ñÌìÎÒÃÇÖ÷Ҫ˵˵·ÖÇø¡¢¸ñʽ»¯¡¢SWAP¡¢LVM¡¢Èí¼þRAIDµÄ´´½¨¹þ~
¸ñʽ»¯
²é¿´µ±Ç°·ÖÇø£ºfdisk -l
Õâ¸öÃüÁîÎÒÃÇÒÔÇ°Êǽ²¹ýµÄ,ÎÒÏÖÔÚÎÊÏ£¬IDÄÇÏîÊÇʲôÒâ˼£¿
83 ÊÇ´ú±íEXT2ºÍEXT3
82 ÊÇ´ú±íSWAP·ÖÇø
Ó²Å̽ṹÎÒÃǾͲ»½²ÁË£¬ÏàÐÅ´ó¼Ò¶¼Óлù´¡¡£ÎÒÃǾÍÖ±½Ó½øÈë²Ù×÷
LINUX·ÖÇøʹÓõŤ¾ßÊÇF ......
×î½üÓÖ¿ªÊ¼¿´CarmerµÄÇý¶¯ÁË£¬ÔÚLinuxÏÂͨ³£ÊµÓÃVideo4linux¿ò¼ÜÀ´ÊµÏÖVideo capture/Camera CaptureµÈ¹¦ÄÜ£¬ÏÈ˵һÏÂÉ豸ע²á²¿·Ö£¬ov7670.cÖУ¬×¢²á·½·¨ÈçÏ£º
static struct v4l2_i2c_driver_data v4l2_i2c_data = {
.name = "ov7670",
&nb ......
ƽʱһ°ãÓÃpsÀ´²é¿´½ø³ÌÐÅÏ¢£¬¸Ï½ô¾Í¹»ÁË¡£½ñÌìÐèÒªÖªµÀÏêϸµÄ·¾¶£¬Ò»Ê±»¹Ïë²»ÆðÀ´¡£¼ÇµÃÓиö²ÎÊý£¬¿ÉÒԸıäpsµÄÊä³öÀïÃæcmdµÄÏÔʾ¿í¶È£¬¿Éϧ¼Ç²»ÇåÁË¡£»ØÍ·ÔÙÕÒÕÒ¡£
http://www.svn8.com/linux/glpz/20100221/22543.html
Õâ¸öÉÏÃæ½éÉܵķ½·¨ÊǸù¾ÝpidÔÚ/proc/pid_number ÏÂÃæ²é¿´¾ßÌåÐÅÏ¢¡£¾ÍÊÇÓеãСÂé·³¡£ ......