linux shellÖк¯Êý²ÎÊý¼°Æä±äÁ¿
linuxÖеÄSHELLº¯ÊýÊÇ¿ÉÒÔ´ø²ÎÊýµÄ.
====´úÂë===
#!/bin/bash
function show()
{
echo $0 #·µ»Ø½Å±¾±¾ÉíÃû×Ö¶ø²»ÊǺ¯ÊýÃû
echo $1 #·µ»Øµ÷ÓÃʱµÄµÚÒ»¸ö²ÎÊý
.
.
.
echo $9 #·µ»Øµ÷ÓÃʱµÄµÚ¾Å¸ö²ÎÊý
}
echo "Begin" #³ÌÐò¿ªÊ¼
show #²»´ø²ÎÊýµÄµ÷Ó÷µ»Øshell±¾ÉíµÄÃû×Ö
show local #´ø²ÎÊýµ÷ÓÃ.·µº¯Êý±¾ÉíµÄÃû×Ö¼Ó²ÎÊýlocal
####end#####
ÐèҪעÒâµÄÊÇ:
Ïòº¯Êý´«µÝ²ÎÊý¾ÍÏñÔÚÒ»°ã½Å±¾ÖÐʹÓÃÌØÊâ±äÁ¿$1£¬$2Ò»Ñù...º¯ÊýÈ¡µÃËù´«²ÎÊýºó,½«Ôʼ²ÎÊý´«»Øshell½Å±¾,Òò´Ë×îºÃÏÈÔÚº¯ÊýÄÚÖØÐÂÉèÖñäÁ¿±£´æËù´«µÄ²ÎÊý.ÕâÑùÈç¹ûº¯ÊýÓÐÒ»µã´íÎó,¾Í¿ÉÒÔͨ¹ýÒѾ±¾µØ»¯µÄ±äÁ¿ÃûѸËÙ¼ÓÒÔ¸ú×Ù.
»¹ÓбäÁ¿µÄ×÷ÓÃÓò:
º¯ÊýÄÚ²¿±äÁ¿×÷ÓÃÓòÖ»ÊÇÔÚº¯ÊýÄÚ²¿
¶øÖ÷SHELL±äÁ¿µÄ×÷ÓÃÓòÔÚÕû¸öshellÖÐ...°üÀ¨Æäº¯Êý
»¹Óоֲ¿±äÁ¿ÉùÃ÷·½Ê½:
local valuename=value
´ËÉùÃ÷¸ñʽµÄ±äÁ¿Ö»ÄÜÔÚ±äÁ¿ÉùÃ÷²¿·ÖʹÓÃ....
˳±ãÍÆ¼öÒ»¸öѧϰµÄBOLG:http://xiaowang.net/
Ïà¹ØÎĵµ£º
probeÊÇusb×Óϵͳ×Ô¶¯µ÷ÓõÄÒ»¸öº¯Êý£¬ÓÐUSBÉ豸½Óµ½Ó²¼þ¼¯Ï߯÷ʱ£¬usb×Óϵͳ»á¸ù¾Ýproduction IDºÍvendor IDµÄ×éºÏ»òÕßÉ豸µÄclass¡¢subclass¸úprotocolµÄ×éºÏÀ´Ê¶±ðÉ豸µ÷ÓÃÏàÓ¦Çý¶¯³ÌÐòµÄprobe£¨Ì½²â£©º¯Êý£¬¶ÔÓÚskeletonÀ´Ëµ£¬¾ÍÊÇskel_probe¡£ÏµÍ³»á´«µÝ¸øÌ½²âº¯ÊýÒ»¸öusb_interface *¸úÒ»¸östruct usb_device_id *×÷Î ......
ÒÔǰ×Ô¼º¸ú×ÅÄÚºËÄÚ´æ¹ÜÀíµÄһЩºê¶¨Ò廹ýÄÚ´æ·Ö²¼Í¼
±ÈÈçVMALLOC_START, VMALLOC_END, FIXADDR_STARTµÈµÈ
Ò»Ö±ÒÔΪÕâЩֵÔÚʵ¼ÊÄÚºËÖжà¶àÉÙÉÙ»áÓÐÎó²î£¬Ã»Ï뵽ǰ¼¸Ìì¿´ÁËÒ»ÏÂ
¾ÓÈ»ÍêÈ«ÎǺϡ£
À´ÊÔ׿ÆËãÒ»ÏÂVmallocµÄ×Ü´óС£¬ÎªÁ˱ãÓÚ¼ÆËãÎÒÃÇÈÏΪ1GµÄÄں˿ռä´Ó0µØÖ·¿ªÊ¼¡£
Ê×ÏÈÎÒµÄÎïÀíÄڴ泬¹ýÁË896M£¬Òò´Ëhigh_ ......
Linux²é¿´Ó²¼þÐÅÏ¢ÃüÁî
1.²é¿´CPUÐÅÏ¢
cat /proc/cpuinfo
2.²é¿´ÄÚ´æÐÅÏ¢
cat /proc/meminfo
free
vmstat
3.²é¿´Ó²ÅÌÐÅÏ¢
fdisk -l
df -lh
4.²é¿´Äں˰汾ÐÅÏ¢
cat /proc/version
uname -r
lsb_release -a
5.²é¿´ÎļþÕ¼Óÿռä
du
6.²é¿´ÏµÍ³ÐÅÏ¢
dmesg
7.²é¿´¶Ë¿ÚÐÅÏ¢
netstat
8.²é¿´32λ»¹ÊÇ64λ
ge ......
£¨ÉùÃ÷£ºÕâÊÇ×ªÔØ×Ôhttp://www.chinaunix.net/jh/21/1079.html)
´ÓSybaseµÄÕ¾µãÉÏÏÂÔØÁ½¸öÈí¼þ°ü£¬±ÊÕßÏÂÔØÁË11.0.3.3°æ±¾£¬SybaseĿǰÒÑ¾ÍÆ³öÁËASE11.9.2£¬ÓÉ
ÓÚ11.9.2Èí¼þ°üºÜ´ó£¬ÓÉ6¸örpmÈí¼þ°ü×é³É£¬¸÷λ¿ÉÒÔÈ¥ÆäÕ¾µãÏÂÔØ¡£¶ÔÓÚSybase¡¡11.0.3£¬sybaseÌṩÁË
Á½¸örpm¸ñʽµÄÈí¼þ°ü¡£
£¨ÕâÁ½¸öÎļþ¿ÉÒÔ¿´ÎÒ²©¿ ......