FIND

find . -name '*filename*' | xargs shred -v -n 2 -z -u
find -name '*filename*' -exec rename -v ' ' _ {} \;
find / -path /proc -prune -o -path /sys -prune -o -type f -newermt "$(date +%Y-%m-%d)" -ls|more
find / -mount -mtime -1 -ls |sort -k 11 |less
# find data/ \! -user apache -printf "%u \t %g \t %t \t %s \t %h%p \n"
# find . \( -iname \*40785\* -o -iname \*40791\* -o -iname \*40806\* \) -exec ls -l {} \;
# find . -type d -perm +g=x \! -perm +g=w \! -user apache -exec chmod g+w {} \;
# find . -group pr -type f \! -perm +u=w -exec chmod u+w {} \;
# find . \! -perm +a=r -exec ls -ld {} \; 
# find apps/ -type d -exec ls -ld {} \; | less
# find apps/ -type d -exec chmod g+w {} \;
# find apps/ -type d -exec chmod g-s {} \;
# find . -path './data' -prune -o -path './logs' -prune -o -type f -exec grep -iHn "ecu.edu.au" {} \; |less
# find cache/ ! \( -name "sess_*" \) -ctime 1 -printf "\t%s \t %a \t %h%p \n"
# find cache/ ! \( -name "sess_*" \) -mmin 700 -printf "%t \t %s \t %h%p \n" 2>/dev/null
# find /var/log/ -maxdepth 1 -exec du -s {} \; |sort -n
# find . -type f -ctime 1 -printf "\t%s \t %a \t %h%p \n"
# find . -perm 2775 -printf "%m %g" -exec ls -d {} \;
# find . -maxdepth 2 -perm -2000 -type d -printf "%m \t %u \t %g \t" -exec ls -d {} \;
# find . -type d -exec chmod g-s {} \;
  • find.txt
  • Last modified: 2024/12/30 12:03
  • by admin
  • Currently locked by: 172.18.0.1