This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
shell:find [2020/01/23 17:37] – [find] tmade | shell:find [2020/04/08 16:50] – [find] tmade | ||
---|---|---|---|
Line 16: | Line 16: | ||
find / | find / | ||
find . -name " | find . -name " | ||
- | find /somedir -type f -exec chmod 666 {} \; #Find files in "/ | + | find /somedir -type f -exec chmod 644 {} \; #Find files in "/ |
- | find . -type f -print0 | xargs -0 chmod 666 #Find files in "/somedir" and chmod to 666 | + | find . -type d -exec chmod 775 {} \; #Find folder in " |
+ | find . -type f -print0 | xargs -0 chmod 666 #Find files in "." and chmod to 666 |