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
Ïà¹ØÎĵµ£º
1.# ±íʾȨÏÞÓû§(Èç:root),$ ±íʾÆÕͨÓû§
¿ª»úÌáʾ
ogin:ÊäÈëÓû§Ãû
password:ÊäÈë¿ÚÁî Óû§ÊÇϵͳע²áÓû§³É¹¦µÇ½ºó£¬¿ÉÒÔ½øÈëÏàÓ¦µÄÓû§»·¾³.
Í˳öµ±Ç°shell,ÊäÈë:exit
2.useradd netseek Ìí¼ÓÒ»¸önetseekÓû§
passwd netseek ¸ønetseekÕâ¸öÓû§ÉèÖÃÃÜÂë.
(/etc/passwd /etc/group)
userdel netseek É ......
1. ×î³£ÓõÄÃüÁîÁбí
ÏÂÃæÁгöÊ®¸öÔÚʹÓÃlinux¹ý³ÌÖÐʹÓÃƵÂÊ×î¸ßµÄÃüÁî¡£ÕâÀïÖ»×÷¼òµ¥½éÉÜ£¬¾ßÌåÓ÷¨Çë²Î¿¼ºóÃæÄÚÈÝ¡£
cat£¬ÏÔʾÎļþÄÚÈÝ¡£
cd£¬¸Ä±äĿ¼·¾¶¡£
cp£¬¸´ÖÆÎļþ¡£
find£¬²éÕÒÎļþ¡£
grep£¬ËÑË÷¡¢¹ýÂËÐÅÏ¢¡£
ls£¬ÁгöĿ¼ÐÅÏ¢¡£
more£¬·ÖÒ³ÏÔʾ¡£
rm£¬É¾³ýÎļþ»òĿ¼¡£
vi£¬µ÷ÓÃviÎı¾±à¼Æ÷ ......
×î½üÔÚ×öÒ»¸öI2C¼üÅ̵ÄLinuxÇý¶¯£¬²Î¿¼ÁËÆäËûоƬµÄһЩ´úÂ룬ÆäÖнÐø·¢ÏÖÓÐЩÈÃÈËÃÔ»óµÄ¶«Î÷£¬°ÑÎÒµÄÃÔ»ó¼°Àí½âÔÚÕâÀï¼ÓÒԼǼ£º
1. i2c_driver½á¹¹ÌåµÄprobe³ÉÔ±µÄÔÐÍ£º
int (*probe)(struct i2c_client *, const struct i2c_device_id *);
¼´£ºprobeº¯Êý±»µ÷ÓÃʱ»á´ÓÉϱߴ«Á½¸ö¸ö²Î ......
²éѯÈí¼þÍêÕûÃû³Æ
¸ñʽ£º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 ......