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

linux dfisk, du,df(´ÅÅÌ¿Õ¼äÐÅÏ¢)ÃüÁîÏê½â


dfÃüÁîÏêϸÓ÷¨
 
a£ºÏÔʾȫ²¿µÄµµ°¸ÏµÍ³ºÍ¸÷·Ö¸îÇøµÄ´ÅÅÌʹÓÃÇéÐÎ
i£ºÏÔʾi -nodesµÄʹÓÃÁ¿
k£º´óСÓÃkÀ´±íʾ (ĬÈÏÖµ)
t£ºÏÔʾijһ¸öµµ°¸ÏµÍ³µÄËùÓзָîÇø´ÅÅÌʹÓÃÁ¿
x£ºÏÔʾ²»ÊÇijһ¸öµµ°¸ÏµÍ³µÄËùÓзָîÇø´ÅÅÌʹÓÃÁ¿
T£ºÏÔʾÿ¸ö·Ö¸îÇøËùÊôµÄµµ°¸ÏµÍ³Ãû³Æ
³£ÓÃÃüÁdf -hi
 
²Ù×÷Ïê½â
 
ÒýÓÃ
Ö¸Áî df ¿ÉÒÔÏÔʾĿǰËùÓеµ°¸ÏµÍ³µÄ×î´ó¿ÉÓÿռ估ʹÓÃÇéÐΣ¬Çë¿´ÏÂÁÐÕâ¸öÀý×Ó£º
 
# df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/ad0s1a 1.9G 389M 1.4G 21% /
devfs 1.0K 1.0K 0B 100% /dev
/dev/ad0s1d 989M 54K 910M 0% /tmp
/dev/ad0s1f 4.8G 3.8G 657M 86% /usr
/dev/ad0s1e 1.9G 149M 1.6G 8% /var
/dev/ad0s1g 26G 890K 24G 0% /volume2
/dev/da0s1d 325G 261G 38G 87% /volume1
 
ÎÒÃǼÓÁ˲ÎÊý -h ±íʾʹÓá¸Human-readable¡¹µÄÊä³ö£¬Ò²¾ÍÊÇÔÚµµ°¸ÏµÍ³´óСʹÓÃ
GB¡¢MB µÈÒ׶ÁµÄ¸ñʽ¡£
 
ÉÏÃæµÄÖ¸ÁîÊä³öµÄµÚÒ»¸ö×ֶμ°×îºóÒ»¸ö×ֶηֱðÊǵµ°¸ÏµÍ³¼°Æä¹ÒÈëµã¡£ÎÒÃÇ¿ÉÒÔ¿´µ½
/dev/ad0s1a Õâ¸ö·Ö¸îÇø±»¹ÒÔÚ¸ùĿ¼Ï¡£ÎÒÃÇÔÚÉÏһС½ÚÌáµ½¹ý ad Ëù´ú±íµÄÊÇ IDE µÄÓ²ÅÌ£¬¶ø s1
±íʾµÚÒ»¸öÖ÷ÒªÉÈÇø¡£ÎÒÁíÍâÓÐÒ»¸ö SCSI Ó²ÅÌ£¬ËüµÄ´úºÅÊÇ da£¬ËüµÄÈÝÁ¿ºÜ´ó£¬Ö÷ÒªÓÃÀ´´æ·ÅÊý¾Ý¡£devfs
ÊÇÒ»¸öÌرðµÄµµ°¸ÏµÍ³£¬¸Ãµµ°¸ÏµÍ³²¢·ÇÕæµÄ´ÅÅÌ£¬¶øÊÇ FreeBSD ÓÃÀ´¹ÜÀíϵͳӲ¼þ×°ÖõÄÐéÄâµµ°¸ÏµÍ³¡£
 
½ÓÏÂÀ´µÄËĸö×ֶΠSize¡¢Used¡¢Avail¡¢¼° Capacity
·Ö±ðÊǸ÷ָîÇøµÄÈÝÁ¿¡¢ÒÑʹÓõĴóС¡¢Ê£ÏµĴóС¡¢¼°Ê¹Óõİٷֱȡ£µ±Ó²ÅÌÈÝÁ¿ÒÑÂúʱ£¬Äú¿ÉÄܻῴµ½ÒÑʹÓõİٷֱȳ¬¹ý 100%£¬ÒòΪ FreeBSD
»áÁôһЩ¿Õ¼ä¸ø root£¬Èà root ÔÚµµ°¸ÏµÍ³Âúʱ£¬»¹ÊÇ¿ÉÒÔ䶫Î÷µ½¸Ãµµ°¸ÏµÍ³ÖУ¬ÒÔ½øÐйÜÀí¡£
 
ÁíÍ⣬ÎÒÃÇ»¹¿ÉÒÔʹÓòÎÊý -i À´²é¿´Ä¿Ç°µµ°¸ÏµÍ³ inode
µÄʹÓÃÇéÐΡ£ÓеÄʱºòËäÈ»µµ°¸ÏµÍ³»¹Óпռ䣬µ«ÈôûÓÐ×ã¹»µÄ inode À´´æ·Åµµ°¸µÄÐÅÏ¢£¬Ò»Ñù»á²»ÄÜÔö¼Óеĵµ°¸¡£
 
# df -ih
Filesystem Size Used Avail Capacity iused ifree
%iused Mounted on
/dev/ad0s1a 1.9G 389M 1.4G 21% 20495 262127 7% /
devfs 1.0K 1.0K 0B 100% 0 0 100% /dev
/dev/ad0s1d 989M 62K 910M 0% 24 141286 0% /tmp
/dev/ad0s1f 4.8G 3.8G 657M 86% 311439 348015 47%
/usr
/dev/ad0s1e 1.9G 149M 1.6G 8% 1758 280864 1% /var
/dev/ad0s1g 26G 890K 24G 0


Ïà¹ØÎĵµ£º

Linux iptableÎĵµ

×ÜÀÀ
ÓÃiptables -ADC À´Ö¸¶¨Á´µÄ¹æ
Ôò
£¬-AÌí¼Ó -Dɾ³ý -C ÐÞ¸Ä
iptables - [RI] chain rule num rule-specification[option]
ÓÃiptables - RI ͨ¹ý¹æÔòµÄ˳ÐòÖ¸¶¨
iptables -D chain rule num[option]
ɾ³ýÖ¸¶¨¹æÔò
iptables -[LFZ] [chain][option]
ÓÃiptables -LFZ Á´Ãû [Ñ¡Ïî]
iptables -[NX] chain
ÓÃ -NX ......

[ת]Ïê½âLinux 2.6ÄÚºËÐÂÎļþϵͳ±ä»¯»úÖÆ£¨inotify£©

Ô­ÎĵØÖ·£ºhttp://soft.yesky.com/os/lin/326/2237826.shtml
±¾ÎÄÏêϸµØ½éÉÜÁËÔÚ Linux 2.6.13 ÄÚºËÖÐÐÂÒýÈëµÄÎļþϵͳ±ä»¯Í¨Öª»úÖÆ inotify£¬²¢¾ÙÀý˵Ã÷ÁËËüµÄʹÓÃÓëµäÐÍÓ¦Óð¸Àý¡£
Ò»¡¢ÒýÑÔ
ÖÚËùÖÜÖª£¬Linux ×ÀÃæϵͳÓë MAC »ò Windows Ïà±ÈÓÐÐí¶à²»ÈçÈËÒâµÄµØ·½£¬ÎªÁ˸ÄÉÆÕâÖÖ×´¿ö£¬¿ªÔ´ÉçÇøÌá³öÓû§Ì¬ÐèÒªÄÚºËÌṩ ......

Linux»·¾³½ø³Ì¼äͨÐÅ£¨Î壩: ¹²ÏíÄڴ棨ÉÏ£©


 
 
ÎĵµÑ¡Ïî
 
½«´ËÒ³×÷Ϊµç×ÓÓʼþ·¢ËÍ
¼¶±ð£º ³õ¼¶
Ö£ÑåÐË (mlinux@163.com), ¹ú·À¿Æ´ó¹¥¶Á²©Ê¿Ñ§Î»
2003 Äê 5 ÔÂ 01 ÈÕ
¹²ÏíÄÚ´æ¿ÉÒÔ˵ÊÇ×îÓÐÓõĽø³Ì¼äͨÐÅ·½Ê½£¬Ò²ÊÇ×î¿ìµÄIPCÐÎʽ¡£Á½¸ö²»Í¬½ø³ÌA¡¢B¹²ÏíÄÚ´æµÄÒâ˼ÊÇ£¬Í¬Ò»¿éÎïÀíÄÚ´æ±»Ó³Éäµ½½ø³ÌA¡¢B¸÷×ԵĽø³ÌµØÖ·¿Õ¼ä¡£½ø³ÌA¿ÉÒÔ¼´Ê±¿´µ ......

LinuxÏÂARM»ã±àÓï·¨

µÚÒ»²¿·Ö LinuxÏÂARM»ã±àÓï·¨
 
      ¾¡¹ÜÔÚLinuxÏÂʹÓÃC»òC++±àд³ÌÐòºÜ·½±ã£¬µ«»ã±àÔ´³ÌÐòÓÃÓÚϵͳ×î»ù±¾µÄ³õʼ»¯£¬Èç³õʼ»¯¶ÑÕ»Ö¸Õë¡¢ÉèÖÃÒ³±í¡¢²Ù×÷ ARMµÄЭ´¦ÀíÆ÷µÈ¡£³õʼ»¯Íê³Éºó¾Í¿ÉÒÔÌøתµ½C´úÂëÖ´ÐС£ÐèҪעÒâµÄÊÇ£¬GNUµÄ»ã±àÆ÷×ñÑ­AT&TµÄ»ã±àÓï·¨£¬¿ÉÒÔ´ÓGNUµÄÕ¾µã £¨www.g ......

LINUXÍø¿¨°ó¶¨¾ÛºÏÉèÖÃ

LINUXÍø¿¨°ó¶¨¾ÛºÏÉèÖÃ
1.½¨Á¢ÐéÄâÍøÂç½Ó¿ÚÅäÖÃÎļþ£ºifcfg-bond0
cd /etc/sysconfig/ network-scripts/
[root@rhas-13 root]# vi ifcfg-bond0      (½¨Á¢ifcfg-bond0Îļþ)

2.±à¼­ÐéÄâÍøÂç½Ó¿ÚÅäÖÃÎļþ
#vi ifcfg-bond0  
½«µÚÒ»ÐÐ¸Ä³É DEVICE=bond0  
# cat ifcfg-bond ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ