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

LinuxÃüÁî du

ת×Ô£ºhttp://www.cnblogs.com/hopeworld/archive/2009/08/07/1541444.html
 Í³¼Æ×ÜÊý´óС
    du -sh xmldb/
    du -sm * | sort -n //ͳ¼Æµ±Ç°Ä¿Â¼´óС ²¢°²´óС ÅÅÐò
    du -sk * | sort -n
    du -sk * | grep guojf //¿´Ò»¸öÈ˵ĴóС
    du -m | cut -d "/" -f 2 //¿´µÚ¶þ¸ö/ ×Ö·ûÇ°µÄÎÄ×Ö
    ²é¿´´ËÎļþ¼ÐÓжàÉÙÎļþ /*/*/* ÓжàÉÙÎļþ
    du xmldb/
    du xmldb/*/*/* |wc -l
    40752
    ½âÊÍ£º
    wc [-lmw]
    ²ÎÊý˵Ã÷£º
    -l :¶àÉÙÐÐ
    -m:¶àÉÙ×Ö·û
    -w:¶àÉÙ×Ö
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 ÔÚÎļþÁ´½ÓºÍ¶àÁ´½ÓÖ®¼ä¾ùÔȵطÖÅä¿é¡£¸ù¾ÝȱÊ


Ïà¹ØÎĵµ£º

[תÌû]LinuxÇý¶¯¿ª·¢Ñ§Ï°µÄһЩ±ØÒª²½Öè

 1. ѧ»áд¼òµ¥µÄmakefile
2. ±àһЩӦÓÃ
³ÌÐò
£¬¿ÉÒÔÓÃmakefileÅÜÆðÀ´
3. ѧ»áдÇý¶¯
µÄmakefile
4. дһ¼òµ¥charÇý¶¯£¬makefile±àÒëͨ¹ý£¬¿ÉÒÔinsmod£¬ lsmod£¬ rmmod. ÔÚÇý¶¯µÄinitº¯ÊýÀï´òÓ¡hello world£¬insmodºóÓ¦¸ÃÄܹ»Í¨¹ýdmesg¿´µ½Êä³ö
¡£
5. дһÍêÕûÇý¶¯£¬ ¼ÓÉÏread£¬ write£¬ ioctl£¬ pollingµÈ¸ ......

LinuxÏÂÉèÖÃ×î´ó´ò¿ªÎļþÊý

ÃüÁîÐ춱ð ÃüÁîÐÐÖÐÇÃÈë ulimit -n 12345 Óû§¼¶±ð ±à¼­/etc/security/limits.conf: Îļþ£¬²åÈëÒ»ÐУºuserx hard nofile 12345 ϵͳ¼¶±ð ÔÚ/etc/sysctl.confÎļþÖмÓÈëÒ»ÐÐ fs.file-max=12345£¬È»ºóÔÚÃüÁîÐÐÖÐÊäÈ룺sysctl -p £¬Ê¹ÆäÉúЧ ......

linuxÏÂtopÃüÁî²ÎÊý½âÊÍ

 topÃüÁîÊÇLinuxϳ£ÓõÄÐÔÄÜ·ÖÎö¹¤¾ß£¬Äܹ»ÊµÊ±ÏÔʾϵͳÖи÷¸ö½ø³ÌµÄ×ÊÔ´Õ¼ÓÃ×´¿ö£¬ÀàËÆÓÚWindowsµÄÈÎÎñ¹ÜÀíÆ÷¡£ÏÂÃæÏêϸ½éÉÜËüµÄʹÓ÷½·¨¡£
top - 01:06:48 up 1:22, 1 user, load average: 0.06, 0.60, 0.48
Tasks: 29 total,   1 running, 28 sleeping,   0 stopped,   0 zombie ......

ÔÚlinuxÉÏsilent°²×°oracle¼òÖ±ÊÇÒ»³¡Ø¬ÃÎ

 Parsing command line arguments:
    Parameter "silent" = true
java.lang.ArrayIndexOutOfBoundsException: 2
        at oracle.net.ca.CmdlineArgs.parseArgs(Unknown Source)
        at oracle.net.ca.I ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ