linuxº¯Êý¡¢½á¹¹ÌåÑо¿
ѧϰ±ðÈ˵ģ¬¼Ç¼×Ô¼ºµÄ¡£
1¡¢sysinfoÓ÷¨
#include <sys/sysinfo.h>
int sysinfo(struct sysinfo info);
¼Ç¼ÁËlinuxÖÐÆô¶¯Ê±¼ä¡¢ÄÚ´æÐÅÏ¢¡¢½»»»·ÖÇø¡¢cpu¸ºÔصÈÐÅÏ¢¡£
³É¹¦·µ»Ø0£¬Ê§°Ü·µ»Ø-1
struct sysinfo {
long uptime; /* Seconds since boot */
unsigned long loads[3]; /* 1, 5, and 15 minute load averages */
unsigned long totalram; /* Total usable main memory size */
unsigned long freeram; /* Available memory size */
unsigned long sharedram; /* Amount of shared memory */
unsigned long bufferram; /* Memory used by buffers */
unsigned long totalswap; /* Total swap space size */
unsigned long freeswap; /* swap space still available */
unsigned short procs; /* Number of current processes */
unsigned long totalhigh; /* Total high memory size */
unsigned long freehigh; /* Available high memory size */
unsigned int mem_unit; /* Memory unit size in bytes */
char _f[20-2*sizeof(long)-sizeof(int)]; /* Padding for libc5 */
};
2¡¢statfsÓ÷¨
#include <sys/vfs.h>
int statfs(const char *path, struct statfs *buf);
int fstatfs(int fd, struct statfs *buf);
struct statfs{
long f_type; ¡¢/*ÎļþϵͳÀàÐÍ*/
long f_bsize; /*¾¹ýÓÅ»¯µÄ´«Êä¿é´óС*/
long f_blocks; /*ÎļþϵͳÊý¾Ý¿é×ÜÊý*/
long f_bfree; /*Îļþϵͳ¿ÕÏпé*/
long f_bavail; /*·Ç³¬¼¶Óû§¿ÉÒÔÓõĿéÊý*/
long f_files; /*Îļþ½Úµã×ÜÊý*/
long f_ffree; /*¿ÕÏÐÎļþ½Úµã×ÜÊý*/
fsid_t f_fsid; /*Îļþϵͳ±êʶ*/
long f_namelen; /*ÎļþÃûµÄ×î´ó³¤¶È*/
};
Ïà¹ØÎĵµ£º
Ò»£ºÍøÂç»·¾³
bind9.4
Ö÷»úÃû£¨hostname£©:centos
ip£º192.168.1.168
dns£º192.168.1.1£¨ÅäÖÃÍêºó£¬ÐèÒªÐ޸ģ¬Ö¸Ïò192.168.1.168£¬ÐÞ¸Ä/etc/resolv.conf),
Òª´ïµ½µÄÄ¿µÄ£º°ÑÕą̂Ö÷»úÅäÖóÉһ̨dns·þÎñÆ÷
dns server:ns1.test.com
ip£º192.168.1.168
www.test.com 192.168.1.168
¶þ£º°²×°¹ý³Ì
°²×°µÄĿ¼ÊÇ/usr/lo ......
ת£©ÍêȫʹÓÃgnu/linux¹¤×÷
ÉÏһƪ / ÏÂһƪ 2008-08-17 17:59:59
²é¿´( 1752 ) / ÆÀÂÛ( 0 ) / ÆÀ·Ö( 0 / 0 )
ÍêÈ«ÓÃGNU/Linux¹¤×÷
Ç廪´óѧ Íõ珢
ÎÒÒѾ°ëÄêûÓÐʹÓà Windows µÄ·½Ê½¹¤×÷ÁË¡£Linux ¸ßЧµÄÍê³ÉÁËÎÒËùÓеŤ×÷¡£
GNU/Linux ²»ÊÇÿ¸öÈ˶¼ÏëÓõġ£Èç¹ûÄãÖ»ÐèÒª´¦ÀíÒ»°ãµÄÊÂÎñ£¬´òÓÎÏ·£¬ÄÇà ......
ubuntu9.10
ĬÈϰ²×°ÁË iBus
ÊäÈë·¨£¬Õâ¸öÊäÈë·¨ºÜºÃÓ㬵«ÊÇĬÈϵ½ÅäÖò»ºÏÀí£¬Òò´ËÓ¦¸ÃÉèÖÃһϡ£
iBus
ÉèÖò½Ö裺
* °²×° ÖÐÎÄÓïÑÔÖ§³Ö£º
ĬÈÏÏ£¬¿ÉÄÜÖÐÎÄÖ§³Ö²¢²»È«£¬Òò´ËÖÐÎÄÊäÈë·¨Ò²²»È«£¬Èç¹ûÖÐÎÄÖ§³ÖÒѾÍêÈ«°²×°ÔòÌø¹ýÕâ²½¡£
Ìí¼ÓÖÐÎÄÖ§³Ö£º
System -> Administrat ......
http://linuxwireless.org/
»òÊÇ http://wireless.kernel.org/
http://wireless.kernel.org/mac80211book/
http://www.hpl.hp.com/personal/J ... Linux/Wireless.html
http://madwifi.org/
http://ipw2200.sourceforge.net/
http://ieee80211.sourceforge.net/
ÖÕÓÚÕÒµ½×éÖ¯ÁË£¬ÓеÄѧÁË ......