ÔÚLinuxÏÂÐ޸Ļ·¾³±äÁ¿PATH
source file :
http://hi.baidu.com/neugraduzyq/blog/item/5602432f6a1a755a4ec22666.html
ÎÒÏëÔÚPATHϼÓÒ»¸ö/tools/binµÄ·¾¶ÓÃexport PATH=$PATH:/tools/binºóÓ¦¸ÃÊǼÓÉÏÈ¥ÁË£¬µ«ÊÇÓà echo $PATH »¹ÊÇÏÔʾµÄÔÀ´µÄ$PATH±äÁ¿µÄÖµ£¬¸Ð¾õÓÃexport PATH=$PATH:/tools/binÖ»ÊÇÔÚÔÀ´µÄ$PATH±äÁ¿ºó¼ÓÁËÒ»¸ö·¾¶µ½µ±Ç°µÄPATHÏ£¬µ«ÊÇûÓÐÕæÕýÐÞ¸Ä$PATHµÄÖµ£¬ÔõÑù¸Ä²ÅÄÜ ÔÚecho $PATH µÄʱºòÏÔʾµ±Ç°µÄPATHÖµÄØ£¿¾ÍÊÇ˵ÔõôÐ޸ıäÁ¿$PATH£¿ÎÒÒ²ÊÔÁËÐÞ¸Ä/etc/profile£¬µ«ÊÇÒ²ÊÇÖ»ÄܸÄPATHµÄÖµ£¬µ«¸Ä²»ÁË$PATH ±äÁ¿µÄÖµ¡£ÁíÍ⣬ÔõÑùÈ¡ÏûÒ»¸ö»·¾³±äÁ¿µÄÖ»¶ÁÊôÐÔ£¿
´ð£º ÔÚÄãµÄ
~/.bashrc ÀïÃæд
export PATH=$PATH:/tools/bin
×¢ÏúÒÔºóÖØеǽ¾Í¿ÉÒÔ¡£
Èç¹ûÄãÔÚijһ¸öÖÕ¶ËÀïÃæдÁËÉÏÃæÕâ¾ä»°
ÄÇÖ»ÊÇÔÚÕâ¸öÖÕ¶ËÀïÃæÐÞ¸ÄÁËPATH£¬¶ø¹Ø±ÕÁËÕâ¸öÖնˣ¬PATH»¹ÊÇÔÀ´µÄPATH.
ÄãÔÚ
/etc/profileÀïÃæÐÞ¸ÄPATHÊDz»ºÏÀíµÄ£¬ÒòΪÕâ¸ö±äÁ¿¿ÉÄܻᱻÆäËûµÄ½Å±¾¸øÐÞ¸ÄÁË¡£ËùÒÔ×îºÃÄãÔÚ
~/.bashrcÀïÃæд¡£
PATHµÄÖµÊÇһϵÁÐĿ¼£¬µ±ÄúÔËÐÐÒ»¸ö³ÌÐòʱ£¬LinuxÔÚÕâЩĿ¼Ï½øÐÐËÑÑ°¡£ÓÃÒÔÏÂÃüÁî¿ÉÒÔ¿´µ½PATHµÄÖµ¡£
$ echo $PATH
ÀýÈ磬ÔÚÖ÷»úÖУ¬Óû§yoginµÄPATHֵΪ£º
/opt/kde/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/yogin/bin
ÆäÖГ:”Ϊ·Ö¸ô·û¡£ËùÒÔ£¬ÉÏÃæµÄÒ»´®Ä¿Â¼¿ÉÒÔ¿´³ÉÊÇÈçϵÄĿ¼ÁÐ±í¡£
/opt/kde/bin
/usr/local/bin
/bin:/usr/bin
/usr/X11R6/bin
/home/yogin/bin
ͬÑù£¬Ò²ÊÇÖ÷»úÖУ¬Óû§rootµÄPATHֵΪ£º
/opt/kde/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
ÒªÐÞ¸ÄËùÓÐÓû§µÄPATHÖµ£¬Äú¿ÉÒÔÒÔrootÉí·Ý±à¼/etc/profileÎļþ£¬ÐÞ¸ÄÆäÖаüº¬“PATH=”µÄÒ»ÐС£
ÀýÈ磬Äú¿ÉÒÔʹÓÃpico±à¼Æ÷´ò¿ª/etc/profileÎļþ¡£
$ pico -w /etc/profile
picoÊÇÒ»¸öÎı¾±à¼Æ÷£¬¶ø-wÑ¡Ïî¹Ø±ÕÁ˳¤ÐлØÈƹ¦ÄÜ¡£
Ö»ÓÐÔÚÓû§ÖØÐÂ×¢²áºó£¬PATHµÄÐÂÖµ²Å»áÉúЧ¡£Èç¹ûÖ»ÊÇÒªÐÞ¸Äijһ¸öÓû§µÄPATHÖµ£¬¾ÍÓ¦¸Ã±à¼¸ÃÓû§Ö÷Ŀ¼ÖеÄ.bash-profileÎļþ¡£
ÖйúÍø¹ÜÂÛ̳bbs.bitsCN.com
Èç¹ûÄúÏ뽫µ±Ç°Ä¿Â¼¼ÓÈëµ½PATHÖУ¬Ôò½«“.”¼ÓÈëPATHÖУ¬´ËʱPATHµÄÉ趨ÈçÏ£º
PATH="$PATH:/usr/X11R6/bin:."
export PATH
×¢Ò⣺ÔÚÐÞ¸ÄÁËPATHÖµ»òÈκλ·¾³±äÁ¿ºó£¬¶¼ÒªÓÃexport½«ÆäÊä³ö£¬ÐµÄPATHÖµ²ÅÄÜÉúЧ¡£
Ïà¹ØÎĵµ£º
dzÎöLinuxÏÂcoreÎļþ
́Ȼ (zhanghua@eyou.net)
2006 Äê 8 ÔÂ 02 ÈÕ
µ±ÎÒÃǵijÌÐò±ÀÀ£Ê±£¬ÄÚºËÓпÉÄܰѸóÌÐòµ±Ç°ÄÚ´æÓ³Éäµ½coreÎļþÀ·½±ã³ÌÐòÔ±ÕÒµ½³ÌÐò³öÏÖÎÊÌâµÄµØ·½¡£×î³£³öÏֵģ¬¼¸ºõËùÓÐC³ÌÐòÔ±¶¼³öÏÖ¹ýµÄ´íÎó¾ÍÊÇ“¶Î´íÎó”ÁË¡£Ò²ÊÇ×îÄѲé³öÎÊÌâÔÒòµÄÒ»¸ö´íÎó¡£Ï ......
´Ó
Linux 2.6
ÆðÒýÈëÁËÒ»Ì×еÄÇý¶¯¹ÜÀíºÍ×¢²á»úÖÆ :Platform_device
ºÍ Platform_driver
¡£
Linux
Öд󲿷ֵÄÉ豸Çý¶¯£¬¶¼¿ÉÒÔʹÓÃÕâÌ×»úÖÆ ,
É豸ÓÃ
Platform_device
±íʾ£¬Çý¶¯ÓÃ
Platform_driver
½øÐÐ×¢²á¡£
Linu ......
For all those who are beginners in any linux(ubuntu) find hard to find the package files of their distro and end up in finding an source package(which is either in tar.gz or .gz).. so now people think how to install these source files…..
lets now see how would you be installing source files ......
ÖÕ¶ËϵijÌÐò£º¼ò½à¡¢Æ¯ÁÁ¡¢¿ìËÙ¡¢ÇáÁ¿¡£
http://www.lslnet.com/linux/books/resource/curses1.html
http://www.lslnet.com/linux/books/resource/curses2.html
http://hi.baidu.com/%D0%ED%D0%F1%D6%F9/blog/item/f103b0cf214fbb0a93457ed8.html
¡¾Ê¹ÓÃsetlocaleº¯ÊýÉèÖÃlocale¡¿
ÔÚ³ÌÐòÖÐÉèÖÃlocaleÊÇΪÁ˸üºÃµÄÒÆÖ ......
1. useradd ̞
useraddÃüÁÔðÌí¼ÓÓû§µ½Linuxϵͳ£¨Ö»ÓйÜÀíÔ±¿ÉÒÔʹÓÃÕâ¸öÃüÁ¡£
Àý£º
useradd tom
2.userdel ̞
userdelÃüÁîɾ³ýÒ»¸öÓû§ÕË»§£¨Ö»ÓйÜÀíÔ±¿ÉÒÔʹÓÃÕâ¸öÃüÁ¡£
Àý£º
userdel tom
3.passwd ̞
µ±´´½¨Ò»¸öÓû§Ö®ºóÐèҪΪÓû§ÉèÖÃÃÜÂ룬passwd ¿ÉÒÔÍê³É´Ë¹¦ÄÜ¡£µ±passwdºóÃæûÓвΠ......