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/
Ïà¹ØÎÊ´ð£º
дÁ˸ö²âÊÔ³ÌÐòÈçÏÂ
struct hostent *hp;
char AlarmDevIP[20];
int x2;
hp = gethostbyname("www.google.com");
if (hp)
{
......
ÔÚlinuxÏ£¬ÔõÑù±àÒëOCIµÄ³ÌÐò£¿ËüµÄgccÖ¸ÁîÊÇʲô£¿ÎÒ´ÓÍøÉÏÕҵĶ¼²»ÄÜÓã¡»¹ÓУ¬ÎÒÔÚlinuxÓÃCÓëoracleÁ¬½Ó£¬ÎÒ¶¼ÐèÒª°²×°oralceµÄÄÄЩÈí¼þ£¿Ö»ÐèÒªoralceµÄ¿Í»§¶Ë£¬ÓëOCIµÄ¿âô£¿±ðµÄ»¹ÐèҪô£¿
Çë¸ßÊÖÖ¸½Ì£¡
......
¹òÇóMyEclipse Linux°æ£¬Òªall in oneµÄ£¬Óеĸø·¢Ò»·Ý°É£¬¿ìÕûËÀÎÒÁË£¬µ½´¦Ï²»µ½£¬ÓеÄÖ±½Ó¼ÓÎÒQQ250009631£¬°×ÌìÒ»°ãÔÚÏߣ¬Ð»Ð»ÁË¡£
²»ÊÇ°É£¬¸÷λ´ó¸ç°ï°ïæ°¡
ÎҼǵð²×°linuxµÄʱºòÓиöÑ¡Ï¾ÍÊÇÑ¡°²×°µÄÈ ......
ÒòΪ°²×°cvsÒªÓõ½xinetd·þÎñ£¬·¢ÏÖ»úÆ÷ÉÏûÓС£¡£¾Í´ÓÍøÉÏÏÂÔØÁ˸ö×°ÉÏ£¬
SQL code:
[root@localhost ~]# rpm -qa xinetd
[root@localhost ~]# rpm -qa telnet
telnet-0.17-38.el5
[root@localhost ~]#
¸ ......