积累点滴,成就梦想
find -name "t*" -perm 744 -print
查找当前目录下文件名以t开头的,且文件属性主具有读、写、执行权限的文件。。。。
find还有-exec选项,对匹配文件执行该参数过给出的shell命令。
例如:find /etc/ -type f -name "rc*" -exec ls -l {} \;
注意{}和\之间有空格。。。
具体学习见man find...
Copyright @ 2024 anywei Powered by .NET 8.0 on Kubernetes Powered by: .Text and ASP.NET Theme by: .NET Monster