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

ÈÕ±¾Ñ§LinuxÇý¶¯µÄAVÄнÐɶ?

´ó¼Ò¶¼ÖªµÀ£¬ÎϾÓÀïС±´ÊǸãc++µÄ£¬½á¹û×îºóÀÏÆŸøÈ˵±ÁËСÈý
¾ÍΪÁËÕâ¸öÒýÆð¹ã´óÍøÓѵÄÈÈÒ飬µ«±È½ÏÒ»ÏÂÎÒÃÇ»¹ÊǺܲ»´íµÎ¡£ÔÚÈÕ±¾£¬¸ãLinuxµÄÒ²µÃÅÄAV¡£ÓÐͼÓÐÕæÏà
³ÌÐòÔ±ÐÖµÜÃÇ£¬²»Òª±§Ô¹ÁË£¬±È±ÈСÈÕ±¾£¬ÎÒÃǵĴ¦¾³ºÃ¶àÁËO(∩_∩)O¹þ¹þ~


Ïà¹ØÎĵµ£º

¡¶wc¡· linuxÃüÁîÎå·ÖÖÓϵÁÐ֮ʮÆß

ת×Ô£ºhttp://roclinux.cn/?p=1288#more-1288
½ñÌìµÄÄÚÈÝÊÇLinuxµÄwcÃüÁÕâ¸öÃû×ֺܺüǣ¬ÒòΪʲô£¬ÄãÒ²ÖªµÀ¡£
Õâ¸öÃüÁîµÄ¹¦ÄÜÒ²ºÜºÃ¼Ç£¬ÒòΪËü¹¦ÄܺÜÓÐÏÞ£º
wc -c filename£ºÏÔʾһ¸öÎļþµÄ×Ö½ÚÊý
wc -m filename£ºÏÔʾһ¸öÎļþµÄ×Ö·ûÊý
wc -l filename£ºÏÔʾһ¸öÎļþµÄÐÐÊý
wc -L filename£ºÏÔʾһ¸öÎļþÖеÄ×î³ ......

linuxº¯Êý¡¢½á¹¹ÌåÑо¿

ѧϰ±ðÈ˵ģ¬¼Ç¼×Ô¼ºµÄ¡£
1¡¢sysinfoÓ÷¨
#include <sys/sysinfo.h>
int sysinfo(struct sysinfo info);
¼Ç¼ÁËlinuxÖÐÆô¶¯Ê±¼ä¡¢ÄÚ´æÐÅÏ¢¡¢½»»»·ÖÇø¡¢cpu¸ºÔصÈÐÅÏ¢¡£
³É¹¦·µ»Ø0£¬Ê§°Ü·µ»Ø-1
struct sysinfo {
    long uptime;           ......

ÈçºÎжÔØlinuxϵÄhttpd

     µ±ÎÒÃÇÏëжÔØhttpd µÄʱºò£¬Ê¹ÓÃrpm -qa httpd µÄʱºò£¬ÎÒÃÇ·¢ÏÖÓкܶàµÄÒÀÀµ°ü¡£ÎÒÃÇÄÍÐĵÄÏëÒ»¸öÒ»¸öµÄжÔصÄʱºò£¨Ê¹ÓÃrpm -e httpd-*£©£¬»¹»á½øÈëËÀÑ­»·¡£
½â¾öµÄ°ì·¨ÊÇ£ºÊ¹Óà rpm -e httpd-* --nodeps˵Ã÷£º¡°*¡±ÊÇͨÅä·û¡£
 
°²×°CentOS5.3µÄʱºò»áĬÈÏ°²×°httpd·þÎñ¡£
Ê×ÏȲ鿴 ......

Linux ÉÏʵÏÖË«Ïò½ø³Ì¼äͨÐŹܵÀ(ת)

ÎÊÌâºÍ³£¼û·½·¨
Linux ÌṩÁË popen ºÍ pclose º¯Êý (1)£¬ÓÃÓÚ´´½¨ºÍ¹Ø±Õ¹ÜµÀÓëÁíÍâÒ»¸ö½ø³Ì½øÐÐͨÐÅ¡£Æä½Ó¿ÚÈçÏ£º
FILE *popen(const char *command£¬ const char *mode);
int pclose(FILE *stream);
Òź¶µÄÊÇ£¬popen ´´½¨µÄ¹ÜµÀÖ»ÄÜÊǵ¥ÏòµÄ -- mode Ö»ÄÜÊÇ "r" »ò "w" ¶ø²»ÄÜÊÇijÖÖ×éºÏ--Óû§Ö»ÄÜÑ¡ÔñҪôÍùÀïд£¬ ......

¡¶trÃüÁî ÓÅ»¯°æ¡· linuxÃüÁîÎå·ÖÖÓϵÁÐÖ®¶þÊ®Îå


ת×Ô:http://roclinux.cn/?p=1347
trÊÇtranslateµÄ¼òд£¬Ò༴·­Ò룬µ«ÊÇÒź¶µÄÊÇ£¬Ëü²»ÄÜ·­Òë¾ä×Ó£¬Ö»ÄÜ·­Òëµ¥¸ö×Ö·û¡£
1 trµÄ¹¤×÷Ô­ÀíÊÇʲô?
ÏȼÇסһµã£¬trÃüÁî²»½ÓÊÜÖ¸¶¨µÄÎļþ²ÎÊý£¬¶øÖ»ÊǶԱê×¼ÊäÈë½øÐз­Òë¡£ºÃÁË£¬¼ÇסÕâµãºó£¬ÎÒÃǼÌÐø¡£
trµÄÃüÁî¸ñʽÊÇtr SET1 SET2£¬·²ÊÇÔÚSET1ÖеÄ×Ö·û£¬¶¼»á±»Ì滻ΪSET2Ö ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ