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

linux ²é¿´Îļþ¼Ð´óС

du -sh *   ²é¿´µ±Ç°Ä¿Â¼ÏµÄÎļþ¼Ð´óС
du ÃüÁî
ÓÃ;
¸ÅÊö´ÅÅÌʹÓá£
Óï·¨
du [ -a | -s ] [ -k ] [ -m ] [ -g ][ -l ] [ -r ] [ -x ] [ -H | -L ][ File ... ]
ÃèÊö
duÃüÁîÏÔʾÓÃÓÚÎļþµÄ¿éµÄÊýÁ¿¡£Èç¹ûÖ¸¶¨µÄFile²ÎÊýʵ¼ÊÉÏÊÇÒ»¸öĿ¼£¬¾ÍÒª±¨¸æ¸ÃĿ¼ÄÚµÄËùÓÐÎļþ¡£Èç¹ûûÓÐÌṩ File²ÎÊý£¬duÃüÁîʹÓõ±Ç°Ä¿Â¼ÄÚµÄÎļþ¡£
Èç¹ûFile²ÎÊýÊÇÒ»¸öĿ¼£¬ÄÇô±¨¸æµÄ¿éµÄÊýÁ¿¾ÍÊÇ·ÖÅ䵽Ŀ¼ÖÐÎļþÒÔ¼°·ÖÅ䵽Ŀ¼×ÔÉíµÄ¿éÖ®ºÍ¡£
Ö¸¶¨-a±êÖ¾£¬±¨¸æ¸öÌåÎļþÖпéÊýÁ¿¡£²»¹ÜÊÇ·ñʹÓÃÁË-a±êÖ¾£¬ÓÉFile²ÎÊýÖ¸¶¨µÄ¸öÌåÎļþ×ÜÊÇÒªÁгö¡£
Ö¸¶¨-s±êÖ¾£¬±¨¸æÓÃÓÚËùÓÐÖ¸¶¨ÎļþºÍĿ¼ÖÐËùÓÐÎļþµÄÈ«²¿¿é¡£
¿é¼ÆÊý°üÀ¨Ã¿¸öÎļþµÄ¼ä½Ó¿é¡£¿é¼ÆÊýÊÇͨ¹ý 512 ×Ö½Úµ¥Î»¼ÆËãµÄ£¬ËüÓëϵͳʹÓõÄȺ¼¯´óСÎ޹ء£Ö¸¶¨-k±êÖ¾£¬Í¨¹ý 1024 ×Ö½Úµ¥Î»¼ÆËã¿éÊý¡£
×¢:
¾ßÓжà¸öÁ´½ÓµÄÎļþֻΪһ¸öÌõÄ¿¼ÆÊýºÍÊéд¡£
ÓÉÓÚ¿é¼ÆÊýÖ»»ùÓÚÎļþ´óС£¬ËùÒÔÔÚ±¨¸æµÄ¿éÊýÖУ¬Î´·ÖÅäµÄ¿éÊÇûÓаüº¬½øÈ¥µÄ¡£
Èç¹ûduµÃ²»µ½ÎļþÊôÐÔ£¬»òÕßÎÞ·¨¶ÁȡĿ¼£¬Ëü¾Í±¨¸æÒ»¸ö´íÎ󣬲¢ÇÒ»áÓ°ÏìÃüÁîµÄÍ˳ö״̬¡£
±êÖ¾
-a
Ϊÿ¸öÖ¸¶¨ÎļþÏÔʾ´ÅÅÌʹÓÃÇé¿ö£¬»òÕßΪĿ¼ÖÐÿ¸öÎļþÏÔʾ¸÷×Ô´ÅÅÌʹÓÃÇé¿ö¡£½«¸Ã±êÖ¾Óë-s±êÖ¾½øÐжԱȡ£
-g
Óà GB µ¥Î»¼ÆËã¿éÊý£¬¶ø²»ÊÇÓÃȱʡµÄ 512 ×Ö½Úµ¥Î»¡£¶Ô´ÅÅÌʹÓÃÇé¿öµÄÊä³öÖµÒªÓø¡µãÊý£¬ÕâÊÇÒòΪÈç¹ûÓÃ×Ö½ÚΪµ¥Î»µÄ»°£¬Öµ»á·Ç³£´ó¡£
-H
Èç¹ûÔÚÃüÁîÐÐÖ¸¶¨ÁË·ûºÅÁ´½Ó£¬du ÃüÁͳ¼ÆÁ´½ÓÒýÓõÄÎļþ»òÎļþ²ã´Î½á¹¹µÄ´óС¡£
-k
Óà 1024 ×Ö½Úµ¥Î»¼ÆËã¿éÊý£¬¶ø²»ÊÇÓÃȱʡµÄ 512 ×Ö½Úµ¥Î»¡£
-l
ÔÚÎļþÁ´½ÓºÍ¶àÁ´½ÓÖ®¼ä¾ùÔȵطÖÅä¿é¡£¸ù¾Ýȱʡֵ£¬ÓÐÁ½¸ö»òÕ߸ü¶àÁ´½ÓµÄÎļþÖ»¼ÆÊýÒ»´Î¡£
-L
Èç¹ûÔÚÃüÁîÐÐÖ¸¶¨ÁË·ûºÅÁ´½Ó»òÕßÔÚÎļþ²ã´Î½á¹¹µÄ±éÀúÖжà´ÎÓöµ½·ûºÅÁ´½Ó£¬Ôò du ÃüÁîӦͳ¼ÆÁ´½ÓÒýÓõÄÎļþ»òÎļþ²ã´Î½á¹¹µÄ´óС¡£
-m
Óà MB µ¥Î»¼ÆËã¿éÊý£¬¶ø²»ÊÇÓÃȱʡµÄ 512 ×Ö½Úµ¥Î»¡£¶Ô´ÅÅÌʹÓÃÇé¿öµÄÊä³öÖµÒªÓø¡µãÊý£¬ÕâÊÇÒòΪÈç¹ûÓÃ×Ö½ÚΪµ¥Î»µÄ»°£¬Öµ»á·Ç³£´ó¡£
-r
±¨¸æ²»¿É·ÃÎʵÄÎļþ»òÕßĿ¼Ãû¡£´ËΪȱʡÉèÖá£
-s
ΪËùÓÐÖ¸¶¨ÎļþÏÔʾÕû¸ö´ÅÅÌʹÓÃÇé¿ö£¬»òÕßΪһ¸öĿ¼ÖеÄËùÓÐÎļþÏÔʾ×ܵĴÅÅÌʹÓÃÇé¿ö¡£½«¸Ã±êÖ¾Óë-a±êÖ¾½øÐжԱȡ£
-x
ÔÚÆÀ¹ÀÎļþ´óСʱ£¬Ö»ÆÀ¹ÀÄÇЩÓëFile²ÎÊýÖ¸¶¨µÄÎļþ»òÕßĿ¼פÁôÔÚÏàͬÉ豸ÉϵÄÎļþ¡£ÀýÈ磬Äú¿ÉÒÔÖ¸¶¨Ò»¸öÔÚ¶à¸öÉ豸ÉÏ°üº¬ÎļþµÄĿ¼¡£ÕâÖÖÇé¿öÏ£¬-x±êÖ¾¾ÍΪÓëĿ¼פÁôÔÚÏàͬÉ豸µÄ


Ïà¹ØÎĵµ£º

Linux²é¿´Ó²¼þÐÅÏ¢¼°Çý¶¯É豸Ïà¹ØÕûÀí


================================================================================
                      =Linux²é¿´Ó²¼þÐÅÏ¢¼°Çý¶¯É豸Ïà¹ØÕûÀí=                       
============ ......

UNIX/LINUX ƽ̨¿ÉÖ´ÐÐÎļþ¸ñʽ·ÖÎö

±¾ÎÄÌÖÂÛÁË UNIX/LINUX ƽ̨ÏÂÈýÖÖÖ÷ÒªµÄ¿ÉÖ´ÐÐÎļþ¸ñʽ£ºa.out£¨assembler and link
editor output »ã±àÆ÷ºÍÁ´½Ó±à¼­Æ÷µÄÊä³ö£©¡¢COFF£¨Common Object File Format
ͨÓöÔÏóÎļþ¸ñʽ£©¡¢ELF£¨Executable and Linking Format
¿ÉÖ´ÐкÍÁ´½Ó¸ñʽ£©¡£Ê×ÏÈÊǶԿÉÖ´ÐÐÎļþ¸ñʽµÄÒ»¸ö×ÛÊö£¬²¢Í¨¹ýÃèÊö ELF
Îļþ¼ÓÔعý³ÌÒÔ½Òʾ ......

ÅäÖÃRedHat Linux 5 DNS½âÎö

1¡¢vi /etc/resolv.conf
Ôö¼ÓÒÔÏÂÄÚÈÝ£º
nameserver DNSserver_ip_address1
nameserver
DNSserver_ip_address2
ÈçÏ£º
[root@REDHATAS5 /]# cat /etc/resolv.conf
nameserver 192.168.88.1
2¡¢²âÊÔDNSÊÇ·ñÉúЧ
[root@Develop-Server ~]# nslookup www.baidu.com
Server:      &nb ......

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


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