Exclude a directory or multiple directories using find command

How to exclude a directory or multiple directories using find command? Quick view on >> Find command and switches << Method 1 : Using the option “-prune -o” We can exclude directories by using the help of “path“, “prune“, “o” and “print” switches with find command. See the example: # find ./ -path ./bit/* -prune -o […]

See More

Mass ownership and permission change – Linux – Find command

How to change the permission of files and folders? Use chmod along with -exec to change the permissions. # find ./ -type f -exec chmod 777 {} \; this command changes all files permission to 777 in PWD. Use “-type d” for directory! How to change ownership? That’s simple. Use the chown command within the […]

See More