Linux´óÅúÁ¿Òƶ¯Îļþ¼Ð
ÎÒһ̨serverÖÐÒ»¸öÎļþ¼ÐÖÐÓдóÔ¼2000¸öÎļþ¼Ð£¬ÀïÃ涼ÓдóÁ¿Êý¾Ý£¬ÏÖÔÚÎÒÏë°ÑÆäÖÐÒ»²¿·Ö(´ó¸Å1000¸öÎļþ¼Ð)Òƶ¯µ½Ò»¸öÐÂÎļþ¼ÐÖУ¬Ó¦¸ÃÔõô²Ù×÷¡£Îļþ¼ÐµÄÃüÃûÊÇûÓйæÂɵġ£
ÎÒ³õ²½ÉèÏëÊÇÓÃls -t | head -1000»ñµÃ1000¸öÎļþ¼ÐÃû£¬½Ó×ÅÏë°ÑÕâЩÎļþ¼ÐÃûÊäÈëµ½Ò»¸öÊý×飬ȻºóforÑ»·×ö£¬µ«ÊDz»ÖªµÀÔõôÏÂÊÖ£¬bashµÄÊý×é²»ÖªµÀÔõôÓã¬È»ºó¾ÍÊÇls -t | head -1000»ñµÃµÄ1000¸öÎļþ¼ÐÃûÊÇÒ»¸öÕûÌ壬Ôõô°ÑËü²ð³ÉÒ»¸ö¸öµÄ·Å½øÊý×é¡£
»¹ÓÐûÓиü¼òµ¥µÄ°ì·¨ £¬Ð»Ð»´ó¼Ò£¡
filename=`ls -t | head -1000`
for name in $filename
do
mv $name targetpath
done
targetpath¾ÍÊÇÄãÒªÒƶ¯µ½µÄÄ¿±êĿ¼
count=0
for files in path/*
do
mv files path_to/
$count=$count+1
if [$count==1000];then
break
fi
done
mv $files path_to/
ls -t | head -1000 | xargs -I NN mv NN targetdir/
Ïà¹ØÎÊ´ð£º
ÔÚlinuxÉÏʹÓÃtomcat·þÎñÆ÷³öÏÖÁ˺ܶàclose_wait
ʹÓÃä¯ÀÀÆ÷·ÃÎʵÄʱºò³öÏÖÒ³ÃæÒ»Ö±ÔÚÇëÇ󣬺ÜÂý £¬»ù±¾ÉÏûÓлØÓ¦¡£
ÓÃnetstat -anp ²é¿´ Óкܶàclose_wait
Õâ¸öÊÇʲôÒýÆðµÄ°¢ £¬Ôõô½â¾ö£¿
......
Linux²»Õý³£¹Ø»úµ¼ÖÂϵͳ»µ£¬ÇëÎÊÔõô¼ì²éºÍÐÞ¸´ÏµÍ³£¿
ÔÚ¸ÕÆô¶¯µÄʱºò»áÓÐÌáʾµÄ¡£
ÐÞ¸´¿ÉÒÔ¿¿livecd
»òÕß°Ñ»ù±¾ÏµÍ³²¿·ÖÖØа²×°¼´¿É
ÊDz»ÊÇϵͳ±à³ÌÁËread-onlyµÄÀ²£¿ÎÞ·¨ÍùϵͳдÈëÊý¾Ý°¡£¿
ÓеÄÇé ......
• ʵÑéÄ¿µÄ
ͨ¹ý±¾ÊµÑ飬Á˽âLinuxϵͳµÄ×éÖ¯ºÍÐÐΪ£¬¹Û²ì¸÷Öִ洢ϵͳ״̬ÐÅÏ¢µÄÄں˱äÁ¿£»ÊìϤÕâЩ½á¹¹ÓëÐÅÏ¢¡£
• ʵÑéÄÚÈÝ
±àд³ÌÐò´òÓ¡³öÈç ......
¹òÇóMyEclipse Linux°æ£¬Òªall in oneµÄ£¬Óеĸø·¢Ò»·Ý°É£¬¿ìÕûËÀÎÒÁË£¬µ½´¦Ï²»µ½£¬ÓеÄÖ±½Ó¼ÓÎÒQQ250009631£¬°×ÌìÒ»°ãÔÚÏߣ¬Ð»Ð»ÁË¡£
²»ÊÇ°É£¬¸÷λ´ó¸ç°ï°ïæ°¡
ÎҼǵð²×°linuxµÄʱºòÓиöÑ¡Ï¾ÍÊÇÑ¡°²×°µÄÈ ......