find - search for files in a directory hierarchy
Some useful syntax for find commands
find -perm 777 - to find files and folders which have 777 permission
find -user nobody - to find files and folders which have nobody ownership
find -name "test" - to find files or folders which have the name "test"
You can use special caracters like *, ?, \ etc with find command as per your requirment.
For exa- How to find all directories and files from /home which have the name contents like "fishingbank" with the nobody ownership ?
root@server [~]# find /home/ -name "*fishingbank*" -user nobody
Please read man page for more info
Enjoy:)
No comments:
Post a Comment