1、借助seq命令
seq 1000|xargs -i ls -alh
2、使用shell while循环
//所有文件
while true;do find -type f -name "*"|xargs ls -alh;echo“########";sleep 1;done
//在最后1分钟内修改过的文件
while true;do find -type f -name "*"|xargs ls -alh;echo“########";sleep 1;done
附:find与ls命令
find /path -amin -10 # 查找在系统/path目录中最后10分钟访问的文件
find /path -atime -2 # 查找在系统/path目录中最后48小时访问的文件
find /path -amin +10 # 查找在系统/path目录中10分钟之前访问的文件
find /path -atime +2 # 查找在系统/path目录中48小时之前访问的文件
find /path -mmin -10 # 查找在系统/path目录中最后10分钟修改的文件
find /path -mtime -2 # 查找在系统/path目录中最后48小时修改的文件
find /path -mmin +10 # 查找在系统/path目录中10分钟之前修改的文件
find /path -mtime +2 # 查找在系统/path目录中48小时之前修改的文件
find /path -cmin -10 # 查找在系统/path目录中最后10分钟文件状态发生变化
find /path -ctime -2 # 查找在系统/path目录中最后48小时文件状态发生变化
find /path -cmin +10 # 查找在系统/path目录中10分钟之前文件状态发生变化
find /path -ctime +2 # 查找在系统/path目录中48小时之前文件状态发生变化
find / -empty # 查找在系统中为空的文件或
find / -group ftpuser # 查找在系统中属于ftpuser的文件
find / -user ftpuser #查找在系统中属于ftpuser这个用户的文件
find / -nouser #查找在系统中属于作废用户的文件
ls -lt /path #按修改时间顺序查看
ls -lut /path # 按访问时间顺序查看