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

°Ù·ÖÇóÒ»linuxÃüÁî

ÎÒÏëͳ¼Æij¸öĿ¼ÏµĽ¨Á¢Ê±¼äΪÎÒÖ¸¶¨Ê±¼äµÄ£¬ÎļþµÄ×Ü´óС

ÒªÔõôͳ¼Æ£¿ÇëÎÊÒªÓÃʲôÃüÁî
findÃüÁî

find + du

ÄãÖ¸¶¨µÄʱ¼ä ¾«È·µ½·Ö »¹ÊÇÃë

ÔÚLinuxÖУ¬Ã»ÓÐÎļþ×î³õ´´½¨Ê±¼äµÄ¸ÅÄî¡£Ö»ÓÐÎļþµÄ·ÃÎÊʱ¼ä¡¢ÐÞ¸Äʱ¼ä¡¢×´Ì¬¸Ä±äʱ¼ä¡£Ò²¾ÍÊÇ˵²»ÄÜÖªµÀÎļþµÄ´´½¨Ê±¼ä¡£µ«Èç¹ûÎļþ´´½¨ºó¾ÍûÓÐÐ޸Ĺý£¬ÐÞ¸Äʱ¼ä=´´½¨Ê±¼ä£»Èç¹ûÎļþ´´½¨ºó£¬×´Ì¬¾ÍûÓиıä¹ý£¬ÄÇô״̬¸Ä±äʱ¼ä=´´½¨Ê±¼ä£»Èç¹ûÎļþ´´½¨ºó£¬Ã»ÓỶÁÈ¡¹ý£¬ÄÇô·ÃÎÊʱ¼ä=´´½¨Ê±¼ä£¬Õâ¸ö»ù±¾²»Ì«¿ÉÄÜ¡£
²»ÖªµÀÄãÒªµÄÊÇÄĸöʱ¼ä

¹ØÓÚÕâ3¸öʱ¼ä Äã¿ÉÒÔÓÃstat Îļþ µÄ·½Ê½À´²é¿´

¾«È·µ½Ìì¾Í¿ÉÒÔÁË¡«±ÈÈçͳ¼Æ¸ÃÎļþ¼ÐÏÂ×òÌ콨Á¢µÄÎļþµÄ×Ü´óС

ÎÒÐèÒªµÄÊÇÐÞ¸Äʱ¼ä £¬ÎÒµÄÎļþÖ»»á±»·ÃÎÊ¡«²»»áÔÙ±»ÐÞ¸Ä

Ë­ÄܸæËßÎÒ£¿Ð»Ð»¡«    ͳ¼Æij¸öÎļþ¼ÐÏÂÖ¸¶¨ÐÞ¸Äʱ¼äµÄÎļþ×Ü´óС

find . -type f -mtime +1|du * -bc


Çë½ÌһϠ du * -bc ÊÇʲôÒâ˼£¿

¶î£¬´íÁË


find . -type f -mtime +1|du * -bc  »áÌáʾÒýÊýÌ«¶à£¬¿ÉÄÜÊÇ˵ÎļþÊýÌ«¶à£¿£¿£¿£¿

»¹ÓаÑÕâ¸ö½Å±¾·Åµ½Ä¿±êÎļþ¼ÐÏÂÖ´ÐÐ ·ñÔòÄãÒª¸ÄһϽű¾ÖеÄÏà¹Ø·¾¶

ÒªÊÇ´úÂë²»ÐÐ ÄãÔÚÀïµÄϵͳÀïÖ´ÐÐһϠstat Ëæ±ãÒ»¸öÎļþ È»ºó°Ñ½á¹û¸æËßÎÒ ÎÒ¸ù¾ÝÄãµÄϵͳ¸Ä¸Ä

find . -type f -mtime +1 -exec du -b {} \; | awk 'BEGIN{total=0}{total+=$1}END{print total}'


ºÃÏñûÓÐÖ±½ÓµÄÃüÁî°É£¬»»ÖÖ˼ά£¬¿ÉÒÔд¸öshell°¡


»¹ÓÐÉÏÃæÇóµÃµÄÊÇÎļþµÄ×Ü´óС,µ¥Î»×Ö½Ú£¬¶ø²»ÊÇÕ¼ÓõÄ×Ü´ÅÅÌ¿Õ¼äÊý£¬Õâ¸öÄã¿ÉÒÔ¸ù¾ÝÐèÒªÐÞ¸ÄduµÄ²ÎÊý

ÄúµÄÄǸöshell½Å±¾ÎÒ»¹ÔÚÖ´ÐС«ÎҸղſ´ÁËÏ¡«ÎÒËæ


Ïà¹ØÎÊ´ð£º

linux»·¾³ÏÂgethostbynameº¯ÊýÎÊÌâ - C/C++ / CÓïÑÔ

дÁ˸ö²âÊÔ³ÌÐòÈçÏÂ
   
  struct hostent *hp; 
char AlarmDevIP[20];  
  int x2;

hp = gethostbyname("www.google.com");
if (hp)
{ ......

linuxÏÂoracle tns-12555ºÍtns12546ÎÊÌ⣬¼±µÈ

×î½üÖØÐÂ×°ÁËoracle,½ñÌì´òËãʹÓÃtnspingÊÔһϣ¬µ«ÊÇ·¢ÏÖûÓÐÆô¶¯¼àÌý¡£

ÓÚÊÇÔÚoracleÓû§ÏÂʹÓÃlsnrctl startÀ´Æô¶¯¼àÌý³ÌÐò£¬µ«ÊÇ·¢ÏÖ±¨ÁËÈçÏ´íÎó£º
TNSLSNR for Linux: Version 10.2.0.1.0 - Product ......

linux 2.6 Äں˵ÄÅäÖÃÎļþÔÚÄÄÀï

Á½Ì¨»úÆ÷ÐͺÅÍêÈ«Ò»Ñù

ÏëÒª°Ñһ̨»úÆ÷µÄÄÚºËÅäÖÃÎļþ¿½±´¸øÁíÍâһ̨

RT


3Q
...

.config Òþ²ØµÄ ÔÚÄãÅäÖùýÄں˺ó¾ÍÉú³ÉÁË

lsÕý½â£¬ÔÚkernelÔ´Â붥²ãĿ¼ÖÐÓиö.configÎļþ£¬ÅäÖ ......

ÎʸöLINUXÖÐdateÃüÁîµÄÎÊÌâ¡£

ÎÒÏëÎÊÏÂ
date --date Õâ¸öÃüÁîÊÇʲôÒâ˼£¿
»¹ÓÐdate -d Õâ¸öÃüÁîÓÖÊÇʲôÒâ˼£¿
ÎÒÊÇÐÂÊÖ¡£¸ßÊÖÖ¸µãÏ¡£Ð»ÁË
-d ºÍ--dateÊÇÒ»ÑùµÄ
¸ñʽ-d datestr£¬--date datestr
ÏÔʾÓÒdatestrÃèÊöµÄÈÕÆÚ

d ......

java linux²Ù×÷word,Ì滻ijЩÎÄ×Ö

ÈçÌ⣬¾ÍÊǽâ¾öÔÚÒ»¸öwordÄ£°åÖУ¬Ì滻ijЩÌØÊâÎÄ×Ö£¨Èç°Ñ×Ö·û'title_name'Ìæ»»³É'linuxϵͳϲÙ×÷word'£©£¬µ±È»ÄÜÌæ»»ÊéÇ©Ò²¿ÉÒÔ£¬ÓÉÓÚÔÚlinux·þÎñÆ÷£¬ËùÓв»ÄÜÓÃjacob,»¹Óдø.dllµÄjava2word¶¼²»Ä ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ