Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
shell:find [2020/06/20 05:10] – [find] tmadeshell:find [2024/03/21 14:09] (current) – [find] tmade
Line 21: Line 21:
   find . -type f -print0 | xargs -0 chmod 666                                #Find files in "." and chmod to 666   find . -type f -print0 | xargs -0 chmod 666                                #Find files in "." and chmod to 666
   find . -name "*.sh" -type f -print0 | xargs -0 chmod 700                   #Find all files named "*.sh" in "." and chmod to 700   find . -name "*.sh" -type f -print0 | xargs -0 chmod 700                   #Find all files named "*.sh" in "." and chmod to 700
 +  ls -la $(find /opt/tomcat/ \! -user tomcat -print) | grep -v '^l'
 +  find /var/log -type f -newermt 2021-01-01 \! -newermt 2022-12-31 -delete   #deletes only files of 2021/2022
shell/find.1592622644.txt.gz · Last modified: 2020/06/20 05:10 by tmade
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki