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

LinuxϵĻ·¾³±äÁ¿

 
ÎÒÃÇÔÚLinuxÏ°²×°ÏµÍ³Èí¼þµÄʱºò,¾­³£Óöµ½Ò»Ð©ÏµÍ³»·¾³±äÁ¿ÅäÖõÄÎÊÌ⡣ʲôÊÇ»·¾³±äÁ¿£¿ÈçºÎ¶¨ÖÆ»·¾³±äÁ¿£¿ÎÒ½«ÔÚÏÂÃæ×öһЩ½éÉÜ¡£
Ò»¡¢ ʲôÊÇ»·¾³±äÁ¿£¿
LinuxÊÇÒ»¸ö¶àÓû§µÄ²Ù×÷ϵͳ¡£¶àÓû§Òâζ×Åÿ¸öÓû§µÇ¼ϵͳºó£¬¶¼ÓÐ×Ô¼º×¨ÓõÄÔËÐл·¾³¡£¶øÕâ¸ö»·¾³ÊÇÓÉÒ»×é±äÁ¿Ëù¶¨Òå, Õâ×é±äÁ¿±»³ÆΪ»·¾³±äÁ¿¡£Óû§¿ÉÒÔ¶Ô×Ô¼ºµÄ»·¾³±äÁ¿½øÐÐÐÞ¸ÄÒÔ´ïµ½¶Ô»·¾³µÄÒªÇó¡£
¶þ¡¢¶¨ÖÆ»·¾³±äÁ¿ 
»·¾³±äÁ¿ÊǺÍShell½ôÃÜ Ïà¹ØµÄ£¬ËüÊÇͨ¹ýShellÃüÁîÀ´ÉèÖõġ£»·¾³±äÁ¿ÓÖ¿ÉÒÔ±»ËùÓе±Ç°Óû§ËùÔËÐеijÌÐòËùʹÓ᣶ÔÓÚbashÀ´Ëµ£¬¿ÉÒÔͨ¹ý±äÁ¿ÃûÀ´·ÃÎÊÏàÓ¦µÄ»·¾³±äÁ¿¡£
Ï Ãæͨ¹ý¼¸¸öʵÀýÀ´ËµÃ÷
1.ÏÔʾ»·¾³±äÁ¿HOME 
$ echo $HOME
/home/admin
2. ÉèÖÃÒ»¸öеĻ·¾³±äÁ¿NAME
$ export NAME="RaidCheng"
$ echo $NAME
RaidCheng
3. ʹÓÃenvÃüÁîÏÔʾËùÓеĻ·¾³±äÁ¿ 
$ env
HOSTNAME=test
TERM=vt100
SHELL=/bin/bash
HISTSIZE=1000
SSH_CLIENT=202.xxx.xxx.xxx 53694 22
CATALINA_BASE=/usr/local/jakarta-tomcat
SSH_TTY=/dev/pts/0
ANT_HOME=/usr/local/ant
JAVA_OPTS=-server
USER=admin
...
4. ʹÓÃsetÃüÁîÏÔʾËùÓб¾µØ¶¨ÒåµÄShell±äÁ¿ 
$ set
BASH=/bin/bash
BASH_VERSINFO=([0]="2" [1]="05b" [2]="0" [3]="1" [4]="release" [5]="i386-redhat-linux-gnu")
BASH_VERSION='2.05b.0(1)-release'
CATALINA_BASE=/usr/local/jakarta-tomcat
CATALINA_HOME=/usr/local/jakarta-tomcat
...
5. ʹÓÃunsetÃüÁîÀ´Çå³ý»·¾³±äÁ¿ 
$ export NAME="RaidCheng"
$ echo $NAME
RaidCheng
$ unset NAME
$ echo $NAME
6. ʹÓÃreadonlyÃüÁîÉèÖÃÖ»¶Á±äÁ¿ 
$ export NAME="RaidCheng"
$ readonly NAME
$ unset NAME
-bash: unset: NAME: cannot unset: readonly variable
$ NAME="New" # »á·¢ÏÖ´ËÒ²±äÁ¿²»Äܱ»ÐÞ¸Ä
-bash: TEST: readonly variable
Èý¡¢ ³£¼ûµÄ»·¾³±äÁ¿ 
PATH¡¡¡¡¡¡¡¡¡¡¡¡¾ö¶¨ÁËshell½«µ½ÄÄЩĿ¼ÖÐÑ°ÕÒÃüÁî»ò³ÌÐò
HOME¡¡¡¡¡¡¡¡¡¡¡¡µ±Ç°Óû§Ö÷Ŀ¼
HISTSIZE ¡¡¡¡¡¡¡¡ÀúÊ·¼Ç¼Êý
LOGNAME ¡¡¡¡¡¡¡¡µ±Ç°Óû§µÄµÇ¼Ãû 
HOSTNAME¡¡¡¡¡¡¡¡Ö¸Ö÷»úµÄÃû³Æ
SHELL ¡¡¡¡¡¡¡¡¡¡Ç° Óû§ShellÀàÐÍ 
LANGUGE ¡¡¡¡¡¡¡¡ÓïÑÔÏà¹ØµÄ»·¾³±äÁ¿£¬¶àÓïÑÔ¿ÉÒÔÐ޸Ĵ˻·¾³±äÁ¿
MAIL¡¡¡¡¡¡¡¡¡¡¡¡µ±Ç°Óû§µÄÓʼþ´æ·ÅÄ


Ïà¹ØÎĵµ£º

LinuxÄÚºËѧϰ(תÌû+Ô­´´)

     ²Ù×÷ϵͳÊÇÒ»¸ö·Ç³£¸´ÔÓµÄÈí¼þ,Éè¼ÆºÍʵÏÖÒ»¸ö²Ù×÷ϵͳÐèÒª¾ßÓо«ÉîµÄÀíÂÛ֪ʶºÍ¸ß³¬µÄʵ¼ùÄÜÁ¦.´«Í³µÄ²Ù×÷ϵͳÉè¼Æ¿Î³Ì,¹ýÓÚÆ«ÖØÀíÂÛµÄѧϰ,ȱ·¦¶Ôʵ¼ùµÄÖ¸µ¼¡£Ï£ÍûÉîÈëѧϰ²Ù×÷ϵͳµÄÉè¼Æ£¬×îºÃµÄ·½·¨¾ÍÊÇÕÒÒ»¸ö²Ù×÷ϵͳÀ´×Ô¼ºÊµ¼ù£¬ÔÚʵ¼ùÖÐѧϰ£¬¿ÉÒÔ´´Ôì³öÆæ¼£¡£
     ......

Linux Command Line ½âÎö

0
´¦Àí
Ä£ÐÍ
Linux kernel
µÄÆô¶¯°ü
À¨ºÜ¶à×é¼þµÄ³õʼ»¯ºÍÏà¹ØÅäÖã¬ÕâЩÅäÖòÎÊýÒ»°ãÊÇͨ¹ýcommand line
½ø
ÐÐÅäÖõġ£ÔÚ½øÐкóÐø·ÖÎö֮ǰ£¬ÏÈÀ´Àí½âÒ»ÏÂcommand line
µÄ´¦Àí
Ä£ÐÍ£º
Òª´¦ÀíµÄ¶ÔÏóÊÇÒ»¸ö×Ö·û´®£¬ÆäÖаüº¬Á˸÷ÖÖÅäÖÃÐÅÏ¢£¬Í¨³£¸÷¸öÅäÖÃÖ®¼äͨ¹ý¿Õ¸ñ½øÐзÖÀ룬ÿ¸öÅäÖõıí´ïÐÎʽÊÇ
È磺param=va ......

¹ØÓÚÔÚlinuxÏÂepollµÄʹÓÃÎÊÌâ

      ÕâÕó×ÓÔÚlinuxϵÄÒ»¸öÏîÄ¿ÐèÒªÓõ½epollÀ´³ÐÊÜÍøÂçµÄ¸ß¸ºÔØ£¬µ«ÊÇÔÚʹÓõĹý³ÌÖоÍÓöµ½ÁËһЩÎÊÌâ¡£
ÔÚÕû¸ö¹ý³ÌÖУ¬ÎÒÊÇÓÃEPOLL µÄ±ßÔµ´¥·¢Ä£Ê½À´ÊµÏÖÎÒÏëÒªµÄ¹¦ÄÜ¡£
      ÎÒÊÇÕâÑùʵÏֵģºÔÚEPOLLÀïÃæ°Ñ¼àÌýµÄÃèÊö·û¸ø¼ÓÁ˽øÈ¥£¬È»ºóµ÷ÓÃepoll_waitÀ´¶Ô¿Í»§¶ ......

LinuxÄ£¿é±à³Ì


ÕªÒª
LinuxÄÚºËÄ£¿é±à³ÌµÄ×ÊÁÏÓÐЩ·×·±¸´ÔÓ£¬ÓеĹýÓÚ¼òµ¥£¬ÓеĹýÓÚÅÓÔÓ£¬ÎÒÊÔͼÓñʼǵÄÐÎʽÏë¶ÁÕßչʾÔõÑùÀ´½ø³ÌLinuxÄ£¿é±à³Ì£¬Á¦Í¼×öµ½¼òÃ÷¶óÒª£¬ÕâƪÎÄÕÂÒ²ÊÇ×÷Ϊ±¾È˱¸ÍüµÄ×ÊÁÏ£¬ËùÒÔÓÐЩµØ·½¹ýÓÚ¼òÂÔÊÇÄÑÃâµÄ¡£±¾À´ÕâƪÎÄÕµÄÄ¿µÄ¾ÍÊÇÈÃÓû§ÖªÆäÈ»£¬ÖÁÓÚËùÒÔÈ»»¹ÊÇÇë²Î¿¼ÏàÓ¦µÄ×ÊÁÏ£¬Æäʵ×îºÃµÄ×ÊÁÏĪ¹ýÓÚLinux ......

LINUX°²×°Íø¿¨Çý¶¯Ê±ÌáʾÕÒ²»µ½.autoconf.h

ÔÚfc8µÄdom0ÉÏ°²×°e1000eÍø¿¨Çý¶¯
#make
#Linux kernel source not configured: missing autoconf.h
½â¾ö·½·¨£º
ÔÚ±àÒëxenʱδʹÓÃmake config
´Ëʱ¿ÉÒÔÕÒµ½Ô´Â룬ÆäÖаüº¬.configÎļþ£¬ÔËÐÐmake oldconfig¼´¿ÉÉú³Éautoconf.h
´Ó¶ø¿ÉÒԳɹ¦±àÒë°²×°Äںˡ£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ