1、#查看近10个未被修改过的文件
$ ls -lt |tail -10
drwxr-xr-x 4 root root 4096 Oct 23 05:36 a-qa
drwxr-xr-x 4 root root 4096 Oct 23 05:34 b-qa
drwxr-xr-x 4 root root 4096 Oct 23 05:33 c-qa
drwxr-xr-x 4 root root 4096 Oct 23 05:32 d-qa
drwxr-xr-x 4 root root 4096 Oct 23 05:31 el-qa
……
2、#删掉这些文件
$ ls -lt | tail -10 | awk '{print $9}' | xargs rm