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

һЩ³£ÓõÄLinuxÃüÁî

¡¡¡¡×ܽáһЩ³£ÓõÄLinuxÃüÁî¡£
Ò»¡¢LinuxÄں˺Ͱ汾²éѯÃüÁî
¡¡¡¡ÃüÁ uname -a
¡¡¡¡×÷Ó㺠²é¿´ÏµÍ³Äں˰汾ºÅ¼°ÏµÍ³Ãû³Æ¡£
¡¡¡¡ÃüÁ cat /proc/version
¡¡¡¡×÷Ó㺠²é¿´Ä¿Â¼"/proc"ÏÂversionµÄÐÅÏ¢£¬Ò²¿ÉÒԵõ½µ±Ç°ÏµÍ³µÄÄں˰汾ºÅ¼°ÏµÍ³Ãû³Æ¡£
¡¡¡¡ÃüÁlsb_release -a
¡¡¡¡×÷Ó㺵Ǽµ½·þÎñÆ÷Ö´ÐÐ lsb_release -a £¬¼´¿ÉÁгöËùÓа汾ÐÅÏ¢¡£
²¹³ä˵Ã÷£º
¡¡¡¡¡¡¡¡/procÎļþϵͳ²»ÊÇÆÕͨµÄÎļþϵͳ£¬¶øÊÇϵͳÄں˵ÄÓ³Ïñ¡£Ò²¾ÍÊÇ˵£¬¸ÃĿ¼ÖеÄÎļþÊÇ´æ·ÅÔÚϵͳÄÚ´æÖ®Öеģ¬ËüÒÔÎļþϵͳµÄ·½Ê½Îª·ÃÎÊϵͳÄÚºËÊý¾ÝµÄ²Ù×÷Ìṩ½Ó¿Ú¡£¶øʹÓÃÃüÁî“uname -a”µÃµ½µÄÐÅÏ¢¾ÍÊÇ´Ó¸ÃÎļþ»ñÈ¡µÄ£¬µ±È»ÓÓcat /proc/version”ÃüÁîÖ±½Ó²é¿´ËüµÄÄÚÈÝÒ²¿ÉÒԴﵽͬµÈЧ¹û¡£ÁíÍ⣬¼ÓÉϲÎÊý"a"ÊÇ»ñµÃÏêϸÐÅÏ¢£¬Èç¹û²»¼Ó²ÎÊý½öΪ²é¿´ÏµÍ³Ãû³Æ¡£“lsb_release -a”ÃüÁîÏ൱ÓÚ“cat /etc/lsb-release”¡£
¶þ¡¢ÄÚ´æÓëCPUÐÅÏ¢²éѯÃüÁî
¡¡¡¡ÃüÁfree£¨topºÍvmstatÒ²ÏÔʾÁËϵͳÄÚ´æµÄÐÅÏ¢£¬ºÍfreeµÄÏÔʾ½á¹ûÀàËÆ£¬ÕâЩÃüÁÊÇ´Ó/proc/meminfoÖжÁÈ¡ÄÚ´æÐÅÏ¢¡££©
¡¡¡¡×÷Ó㺲鿴ϵͳÄÚ´æʹÓÃ״̬£¬ ĬÈϵ¥Î»Îªk¡£
²¹³ä˵Ã÷£º
neonlight@neonlight-desktop:~$ free
             total       used       free     shared    buffers     cached
Mem:       2040004    1774332     265672          0     179528     728372
-/+ buffers/cache:     866432    1173572
Swap:      2931820          0    2931820
¡¡¡¡Mem ÐÐÏÔʾÁË´Óϵͳ½Ç¶È¿´À´ÄÚ´æʹÓõÄÇé¿ö£¬totalÊÇϵͳ¿ÉÓõÄÄÚ´æ´óС£¬ ÊýÁ¿ÉϵÈÓÚϵͳÎïÀíÄÚ´æ¼õÈ¥Äں˱£ÁôµÄÄÚ´æ¡£buffersºÍcachedÊÇϵͳÓÃ×ö»º³åµÄÄÚ´æ. buffersÓëij¸ö¿éÉ豸¹ØÁª, °üº¬ÁËÎļþϵͳԪÊý¾Ý, ²¢ÇÒ¸ú×ÙÁË¿éµÄ±ä»¯. cacheÖ»°üº¬ÁËÎļþ±¾Éí¡£
¡¡¡¡-/+ buffers/cacheÐÐÔò´


Ïà¹ØÎĵµ£º

linuxÉèÖÃÆô¶¯ÔØÈ붯̬Á´½Ó¿âĿ¼


LinuxÏ°²×°ÍêºóOracle¿Í»§¶Ëºóµ÷ÓÃOCI£¬±àÒëûÓÐÎÊÌ⣬ÔËÐÐʱ·¢ÏÖ
cannot open shared object file libclntsh.so.10.1: No such file or directory
¾­¹ý²éÕÒ·¢ÏÖÊÇoracleµÄ·¾¶Ã»ÓÐÉèÖÃ
ÊäÈë:
locate libclntsh.so.10.1
»ñÈ¡¶ÔÓÚ·¾¶
/app/oracle/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1
±à¼­/etc/ld. ......

linux³£¼ûµÄ·¢Ðа汾

¡¡¡¡REDHAT
´´½¨ÓÚ1993Ä꣬ÊÇ
Ä¿ÊÀ½çÉÏ×î×ÊÉîµÄLinuxºÍ¿ª·ÅÔ´´úÂëÌṩÉÌ£¬Í¬Ê±Ò²ÊÇ×î»ñÈϿɵÄLinux
Æ·ÅÆ¡£»ùÓÚ¿ª·ÅÔ´´úÂëģʽ£¬ºìñΪȫÇòÆóÒµÌṩרҵ¼¼ÊõºÍ·þÎñ¡£ºìñµÄ½â¾ö
·½°¸°üÀ¨ºìñÆóÒµLinux²Ù×÷ƽ̨£¬ÒÔ¼°ÆäËûÄÚÈݹ㷺µÄ·þÎñ£¬Èç:×Éѯ£¬24X7¼¼ÊõÖ§³ÖºÍºìñÍøÂç(RHN)¡£ºìñÒÔ¶©ÔĵÄÉÌҵģʽÏòÓû§Ìṩ²»¼ä¶Ï
µ ......

Linux Ubuntu 9.1 fcitx СÆó¶ì ÖÐÎÄÊäÈë·¨°²×°

Ô­ÎĵØÖ·£º
Linux Ubuntu 9.1 fcitx Ð¡Æó¶ì ÖÐÎÄÊäÈë·¨°²×°
×÷Õߣº
½¥Ðн¥Ô¶µÄ´¬
°²×°Ubuntu9.1£¬Ñ¡ÔñÖÐÎÄ°²×°¡£
°²×°ºÃºó£¬UbuntuÒѾ­×Ô´øÁËÒ»¸öibusÖÐÎÄÊäÈë·¨£¬¿ÉÊÇÓÃÆðÀ´ºÜ²»Ë¬£¬²»ÈçСÆó¶ì·½±ã¡£
°²×°Ð¡Æó¶ì·½·¨£¬ºÍÍøÉϵıȽϣ¬ÕâÀïµÄ¿ÉÄÜÊDZȽϼòµ¥µÄÁË£¬ÅäÖÃÒª¼òµ¥¶àÁË¡£µçÄÔÒªÁªÍø ......

linux daemonº¯Êý

#include <unistd.h>
int daemon(int nochdir,int noclose)
ÔÚ´´½¨¾«Áé½ø³ÌµÄʱºò,ÍùÍùÐèÒª½«¾«Áé½ø³ÌµÄ¹¤×÷Ŀ¼ÐÞ¸ÄΪ"/"¸ùĿ¼
²¢ÇÒ½«±ê×¼ÊäÈë,Êä³öºÍ´íÎóÊä³öÖض¨Ïòµ½/dev/null
daemonµÄ×÷ÓþÍÊǵ±²ÎÊýnochdirΪ0ʱ,½«¸ùĿ¼ÐÞ¸ÄΪ¹¤×÷Ŀ¼
nocloseΪ0ʱ,×öÊäÈë,Êä³öÒÔ¼°´íÎóÊä³öÖض¨Ïòµ½/dev/null
Ö´ ......

Linuxϵͳµ÷Óà unlinkº¯ÊýÏê½â

Linuxϵͳµ÷ÓÃ-- unlinkº¯ÊýÏê½â
 
¹¦ÄÜÃèÊö£º
´ÓÎļþϵͳÖÐɾ³ýÒ»¸öÃû³Æ¡£Èç¹ûÃû³ÆÊÇÎļþµÄ×îºóÒ»¸öÁ¬½Ó£¬²¢ÇÒûÓÐÆäËü½ø³Ì½«Îļþ´ò¿ª£¬Ãû³Æ¶ÔÓ¦µÄÎļþ»áʵ¼Ê±»É¾³ý¡£
Ó÷¨£º
#include
int unlink(const char *pathname);
²ÎÊý£º
pathname£ºÖ¸ÏòÐè½â³ýÁ¬½ÓµÄÎļþÃû¡£
·µ»Ø˵Ã÷£º
³É¹¦Ö´ÐÐʱ£¬·µ»Ø0¡£Ê§°Ü· ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ