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

Linux shell ±Ê¼Ç

µÚ¶þÕ ±äÁ¿ºÍÔËËã·û
±¾µØ±äÁ¿:¾¡¿ÉÒÔ±»±¾½ø³ÌʹÓÃ
1 ¸³Öµ
varname=varvalue
varname="varvalue"
¿ÉÒÔͨ¹ýsetÃüÁî²é¿´±¾µØ±äÁ¿
readonly varname//ÉèÖÃΪֻ¶Á
readonly varnmae=varvalue//ÉèÖò¢³õʼ»¯
readonlyÃüÁî±¾Éí¿ÉÒÔÏÔʾËùÓÐÖ»¶Á±äÁ¿
»·¾³±äÁ¿£º¿ÉÒÔ±»×Ó½ø³ÌʹÓÃ
ϵͳ³õʼ»¯µÄ»·¾³±äÁ¿ $HOME/.bash_profile  »òÕß /etc/profile
export varname=varvalue
»òÕ߶ÔÒѾ­´æÔڵıäÁ¿  export varname
export²é¿´»·¾³±äÁ¿
// t=1;export t;t=2;
2 ±äÁ¿Ìæ»»
$varname
${varname}//   $"var"name?
${varname:-value}//Èç¹ûvarnameûÓж¨Òå»òÕßΪ¿Õ£¬ÏÔʾvalue(varnameµÄֵûÓÐÓ°Ïì).Èç¹ûÉèÖÃÁË£¬·µ»ØvarnameµÄÖµ¡£
${varname:=value}//Èç¹ûvarnameûÓж¨Òå»òÕßΪ¿Õ£¬ÏÔʾvalue£¬²¢°Ñvarname¸³ÖµÎªvalue
${varname:+value} varnameÉèÖÃÁË£¬ÔòÏÔʾvalue(varnameµÄֵûÓÐÓ°Ïì),·ñÔòΪ¿Õ
${varname:?value}


Ïà¹ØÎĵµ£º

ÈçºÎÈýø³ÌÔÚLinuxºǫ́ÔËÐÐ

ÔÚLinuxÖУ¬Èç¹ûÒªÈýø³ÌÔÚºǫ́ÔËÐУ¬Ò»°ãÇé¿öÏ£¬ÎÒÃÇÔÚÃüÁîºóÃæ¼ÓÉÏ&¼´¿É£¬Êµ¼ÊÉÏ£¬ÕâÑùÊǽ«ÃüÁî·ÅÈëµ½Ò»¸ö×÷Òµ¶ÓÁÐÖÐÁË£º
[root@localhost /]# ./test.sh &
[1] 17208
È»ºóÎÒÃǾͿÉÒÔÓÃÒÔÏÂÃüÁî½øÐв鿴£º
[root@localhost /]# jobs -l
[1]  17208 Running ./test.sh &
¶ÔÓÚÒѾ­ÔÚǰִ̨ÐеÄÃüÁî ......

linuxÏÂmysql±àÒë°²×°·½·¨±¸Íü

# tar -zxvf mysql-5.0.45.tar.gz -C /usr/src/
# cd /usr/src/mysql-5.0.45
# ./configure --prefix=/usr/local/mysql --with-charset=gbk
--localstatedir=/usr/local/mysql/data
# make
# make install
# groupadd mysql
# useradd mysql -g mysql
# cd /usr/local/mysql/bin
# ./mysql_install_db --user=mys ......

³É¹¦ÊµÏÖLinuxÏÂpppdͨ¹ýGPRS²¦ºÅÉÏÍø

³É¹¦ÊµÏÖLinuxÏÂpppdͨ¹ýGPRS²¦ºÅÉÏÍø


×ò
Ìì°Ñ¿ª·¢°åµÄbootloaderɾÁË,û°ì·¨,Ö»µÃÔÚPCÉϵ÷GPRS²¦ºÅÁË.ÏÈÔÚwindowsϲ¦ºÅ³É¹¦,È»ºóÓù¤¾ß¿´²¦ºÅʱ¾ßÌåʹÓÃÁËÄÄЩATÃü
Áî,ÔÙʹÓÃÕâЩÃüÁîµ½linuxÏÂʹÓÃpppdÀ´²¦ºÅ,×îºóÖÕÓڳɹ¦ÁË,֮ǰ¿ª·¢°åÉϲ»Äܳɹ¦²¦ºÅ¼«ÓпɾÍÊÇATÖ¸ÁîÓÐÎ ......

ÈçºÎ±àÒëLinuxµÄÄÚºË

ÈçºÎ±àÒëLinuxµÄÄÚºË. Äںˣ¬ÊÇÒ»¸ö²Ù×÷ϵͳµÄºËÐÄ¡£Ëü¸ºÔð¹ÜÀíϵͳµÄ½ø³Ì¡¢ÄÚ´æ¡¢ É豸Çý¶¯³ÌÐò¡¢ÎļþºÍÍøÂçϵͳ£¬¾ö¶¨×ÅϵͳµÄÐÔÄܺÍÎȶ¨ÐÔ¡£Linux×÷Ϊһ¸ö×ÔÓÉÈí¼þ£¬ ÔÚ¹ã´ó°®ºÃÕßµÄÖ§³ÖÏ£¬Äں˰汾²»¶Ï¸üС£ÐµÄÄÚºËÐÞ¶©Á˾ÉÄں˵Äbug£¬²¢Ôö¼ÓÁËÐí
http://www.phpv.net/article.php/40
ÈçºÎ±àÒëLinuxÄÚºË- Linuxer ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ