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

LINUXÏÂviµÄÉèÖÃ

   ΪÁË·½±ã±àд³ÌÐò£¬ÕûÀíÁËviÉèÖõÄС·½·¨£¡
  
ÓÉÃüÁî“vi --version”ËùÏÔʾµÄÄÚÈÝÖªviµÄÈ«¾ÖÅäÖÃÎļþÔÚ/usr/share/vim/vim61/macros/vimrc£»
Óû§ÅäÖÃÎļþÔÚ$HOME/.vimrc
ËÑË÷ÍøÉÏÎÄÕ²¢ÊµÑéµÃÖª£º
    ÉèÖÃTAB¼üµÄÏÔʾ¿í¶È£ºset tabstop=4   £¨Ä¬ÈÏÊÇ8£¬ÕâÑù½öÏÔʾ³ÉÁË4¸ö¿Õ¸ñ£¬Êµ¼Ê»¹ÊÇ8¸ö£©
ÉèÖÃTAB¼üµÄʵ¼Ê¿í¶È£ºset softtabstop=4 £¨ÕâÑùʵ¼ÊµÄºÍÏÔʾµÄ¶¼±ä³ÉÁË4£©
1¡¢ÏÔʾÐкŠ  
ÔÚÎļþÄ©¶ËÌí¼ÓÒ»ÐÂÐУ¬ÊäÈë set nu
2¡¢Óï·¨¸ßÁÁ
ÔÚÎļþÖÐÕÒµ½ "syntax on  ÕâÒ»ÐУ¬È¥µôÇ°ÃæµÄË«ÒýºÅ"£¬Ë«ÒýºÅÊÇ×¢Ê͵ÄÒâ˼
3¡¢×Ô¶¯Ëõ½ø
ÔÚÎļþĩβÌí¼ÓÒ»ÐУ¬ÊäÈë set autoindentÔÚÌí¼ÓÒ»ÐУ¬ÊäÈë   set cindent
ÆäÖРautoindent ÊÇ×Ô¶¯Ëõ½ø£» cindentÊÇÌرðÕë¶Ô CÓïÑÔÓï·¨×Ô¶¯Ëõ½ø×¢Ò⣺Èç¹ûÉèÖúÃÒÔÉÏÉèÖúó£¬VIMûÓÐ×÷³öÏàÓ¦µÄ¶¯×÷£¬ÄÇôÇëÄã°ÑÄãµÄVIMÉý¼¶µ½×îа棬һ°ãÖ»ÒªÔÚÖÕ¶ËÊäÈëÒÔÏÂÃüÁî¼´¿É£ºsudo apt-get install vim


Ïà¹ØÎĵµ£º

LINUX³£ÓÃÃüÁî(ת)

1.# ±íʾȨÏÞÓû§(Èç:root),$ ±íʾÆÕͨÓû§
¿ª»úÌáʾ
ogin:ÊäÈëÓû§Ãû
password:ÊäÈë¿ÚÁî Óû§ÊÇϵͳע²áÓû§³É¹¦µÇ½ºó£¬¿ÉÒÔ½øÈëÏàÓ¦µÄÓû§»·¾³.
Í˳öµ±Ç°shell,ÊäÈë:exit
2.useradd netseek Ìí¼ÓÒ»¸önetseekÓû§
passwd netseek ¸ønetseekÕâ¸öÓû§ÉèÖÃÃÜÂë.
(/etc/passwd /etc/group)
userdel netseek É ......

Linux ³£ÓÃÃüÁ


1. ×î³£ÓõÄÃüÁîÁбí
ÏÂÃæÁгöÊ®¸öÔÚʹÓÃlinux¹ý³ÌÖÐʹÓÃƵÂÊ×î¸ßµÄÃüÁî¡£ÕâÀïÖ»×÷¼òµ¥½éÉÜ£¬¾ßÌåÓ÷¨Çë²Î¿¼ºóÃæÄÚÈÝ¡£
cat£¬ÏÔʾÎļþÄÚÈÝ¡£
cd£¬¸Ä±äĿ¼·¾¶¡£
cp£¬¸´ÖÆÎļþ¡£
find£¬²éÕÒÎļþ¡£
grep£¬ËÑË÷¡¢¹ýÂËÐÅÏ¢¡£
ls£¬ÁгöĿ¼ÐÅÏ¢¡£
more£¬·ÖÒ³ÏÔʾ¡£
rm£¬É¾³ýÎļþ»òĿ¼¡£
vi£¬µ÷ÓÃviÎı¾±à¼­Æ÷ ......

Linux I2C InputÉ豸Çý¶¯´úÂëµÄ¼¸µãÀí½â

×î½üÔÚ×öÒ»¸öI2C¼üÅ̵ÄLinuxÇý¶¯£¬²Î¿¼ÁËÆäËûоƬµÄһЩ´úÂ룬ÆäÖнÐø·¢ÏÖÓÐЩÈÃÈËÃÔ»óµÄ¶«Î÷£¬°ÑÎÒµÄÃÔ»ó¼°Àí½âÔÚÕâÀï¼ÓÒԼǼ£º
1. i2c_driver½á¹¹ÌåµÄprobe³ÉÔ±µÄÔ­ÐÍ£º
     int (*probe)(struct i2c_client *, const struct i2c_device_id *);
¼´£ºprobeº¯Êý±»µ÷ÓÃʱ»á´ÓÉϱߴ«Á½¸ö¸ö²Î ......

LinuxÈí¼þ°²×°¼°Ð¶ÔØ

²éѯÈí¼þÍêÕûÃû³Æ
¸ñʽ£ºrpm -qa ²¿·ÖÎļþÃû
ÀýÈ磺shell>rpm -qa firefox
firefox-3.0.5-l.e15.centos
»áÁгö»ðºüä¯ÀÀÆ÷µÄÈ«³Æ¡£Ò»°ã°²×°°ü¶¼»á°üº¬°æ±¾ºÅ¡£
²éѯÈí¼þ°²×°Ä¿Â¼
¸ñʽ£ºrpm -ql ÍêÕûÈí¼þÃû
ÀýÈ磺rpm -ql firefox-3.0.5-l.e15.centos
°²×°rpm°ü
¸ñʽ£ºrpm -ivh Èí¼þ°ü
ÀýÈ磺rpm -ivh firefox-3 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ