°Ù·ÖÇóÒ»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½Å±¾ÎÒ»¹ÔÚÖ´ÐС«ÎҸղſ´ÁËÏ¡«ÎÒËæ
Ïà¹ØÎÊ´ð£º
дÁ˸ö²âÊÔ³ÌÐòÈçÏÂ
struct hostent *hp;
char AlarmDevIP[20];
int x2;
hp = gethostbyname("www.google.com");
if (hp)
{
......
×î½üÖØÐÂ×°ÁËoracle,½ñÌì´òËãʹÓÃtnspingÊÔһϣ¬µ«ÊÇ·¢ÏÖûÓÐÆô¶¯¼àÌý¡£
ÓÚÊÇÔÚoracleÓû§ÏÂʹÓÃlsnrctl startÀ´Æô¶¯¼àÌý³ÌÐò£¬µ«ÊÇ·¢ÏÖ±¨ÁËÈçÏ´íÎó£º
TNSLSNR for Linux: Version 10.2.0.1.0 - Product ......
Á½Ì¨»úÆ÷ÐͺÅÍêÈ«Ò»Ñù
ÏëÒª°Ñһ̨»úÆ÷µÄÄÚºËÅäÖÃÎļþ¿½±´¸øÁíÍâһ̨
RT
3Q
...
.config Òþ²ØµÄ ÔÚÄãÅäÖùýÄں˺ó¾ÍÉú³ÉÁË
lsÕý½â£¬ÔÚkernelÔ´Â붥²ãĿ¼ÖÐÓиö.configÎļþ£¬ÅäÖ ......
ÎÒÏëÎÊÏÂ
date --date Õâ¸öÃüÁîÊÇʲôÒâ˼£¿
»¹ÓÐdate -d Õâ¸öÃüÁîÓÖÊÇʲôÒâ˼£¿
ÎÒÊÇÐÂÊÖ¡£¸ßÊÖÖ¸µãÏ¡£Ð»ÁË
-d ºÍ--dateÊÇÒ»ÑùµÄ
¸ñʽ-d datestr£¬--date datestr
ÏÔʾÓÒdatestrÃèÊöµÄÈÕÆÚ
d ......
ÈçÌ⣬¾ÍÊǽâ¾öÔÚÒ»¸öwordÄ£°åÖУ¬Ì滻ijЩÌØÊâÎÄ×Ö£¨Èç°Ñ×Ö·û'title_name'Ìæ»»³É'linuxϵͳϲÙ×÷word'£©£¬µ±È»ÄÜÌæ»»ÊéÇ©Ò²¿ÉÒÔ£¬ÓÉÓÚÔÚlinux·þÎñÆ÷£¬ËùÓв»ÄÜÓÃjacob,»¹Óдø.dllµÄjava2word¶¼²»Ä ......