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

ÔÚ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Öµ²ÅÄÜÉúЧ¡£


Ïà¹ØÎĵµ£º

[zz]dzÎöLinuxÏÂcoreÎļþ

dzÎöLinuxÏÂcoreÎļþ
́Ȼ (zhanghua@eyou.net)
2006 Äê 8 ÔÂ 02 ÈÕ
 
 
 
 
µ±ÎÒÃǵijÌÐò±ÀÀ£Ê±£¬ÄÚºËÓпÉÄܰѸóÌÐòµ±Ç°ÄÚ´æÓ³Éäµ½coreÎļþÀ·½±ã³ÌÐòÔ±ÕÒµ½³ÌÐò³öÏÖÎÊÌâµÄµØ·½¡£×î³£³öÏֵģ¬¼¸ºõËùÓÐC³ÌÐòÔ±¶¼³öÏÖ¹ýµÄ´íÎó¾ÍÊÇ“¶Î´íÎó”ÁË¡£Ò²ÊÇ×îÄѲé³öÎÊÌâÔ­ÒòµÄÒ»¸ö´íÎó¡£Ï ......

Linux Platform Device and Driver

    
´Ó
Linux 2.6
ÆðÒýÈëÁËÒ»Ì×еÄÇý¶¯¹ÜÀíºÍ×¢²á»úÖÆ :Platform_device
ºÍ Platform_driver
¡£
     Linux
Öд󲿷ֵÄÉ豸Çý¶¯£¬¶¼¿ÉÒÔʹÓÃÕâÌ×»úÖÆ ,
É豸ÓÃ
Platform_device
±íʾ£¬Çý¶¯ÓÃ
Platform_driver
½øÐÐ×¢²á¡£

     Linu ......

LinuxϱàÒëºÍ°²×°Èí¼þµÄ·½·¨

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 ......

LinuxÖն˽çÃ濪·¢_Ncurses¿â½éÉÜ

ÖÕ¶Ëϵ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ÊÇΪÁ˸üºÃµÄÒÆÖ ......

¼¸¸öLinuxʵÓóÌÐò

1. useradd ̞
useraddÃüÁÔðÌí¼ÓÓû§µ½Linuxϵͳ£¨Ö»ÓйÜÀíÔ±¿ÉÒÔʹÓÃÕâ¸öÃüÁ¡£
Àý£º
useradd tom
2.userdel ̞
userdelÃüÁîɾ³ýÒ»¸öÓû§ÕË»§£¨Ö»ÓйÜÀíÔ±¿ÉÒÔʹÓÃÕâ¸öÃüÁ¡£
Àý£º
userdel tom
3.passwd ̞
µ±´´½¨Ò»¸öÓû§Ö®ºóÐèҪΪÓû§ÉèÖÃÃÜÂ룬passwd ¿ÉÒÔÍê³É´Ë¹¦ÄÜ¡£µ±passwdºóÃæûÓвΠ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ