1.删除当前目录下以order14开头的所有文件。注意‘{}’与 \之间有空格,否则报错find: missing argument to `-exec’
find -H order14* -exec rm -f ‘{}’ \;
2.统计当前目录下文件总数
find . -type f |wc -l
3.递归设置目录赋予777权限
chmod -R 777 /www/sdk
4.修改文件或目录的拥有者
chown group:user file | dir
1.删除当前目录下以order14开头的所有文件。注意‘{}’与 \之间有空格,否则报错find: missing argument to `-exec’
find -H order14* -exec rm -f ‘{}’ \;
2.统计当前目录下文件总数
find . -type f |wc -l
3.递归设置目录赋予777权限
chmod -R 777 /www/sdk
4.修改文件或目录的拥有者
chown group:user file | dir