目录 批量执行命令 批量执行命令 # 批量执行一条命令 ll `find /opt -type f` 将反引号内检索出来的内容全部执行一次ll ll $(find /opt -type f) find /opt -type f -exec ls -l {} \; find /opt -type f -ok ls -l {} \; 与上一条的区别是,每一次执行的时候都会询问 find /opt -type f | xargs ls -l