Advertisement
scriptz-team

[SHELL] FiND & REMOVE ZERO BYTE FiLES

May 8th, 2012
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. #!/bin/sh
  2. # _____ _____ _ _____ _____ _____ _____ _____ _____
  3. # ___| | __ |_| _ |_ _|___ ___|_ _| __| _ | |
  4. # |_ -| --| -| | __| | | |- _|___| | | | __| | | | |
  5. # |___|_____|__|__|_|__| |_| |___| |_| |_____|__|__|_|_|_|
  6. # |s C R i P T z - T E A M . i N F O|----------------------------
  7. # USAGE:
  8. # 1.LOGiN iNTO SSH CONSOLE
  9. # 2.RUN THE COMMANDS (BEFORE CORRECT THE PATH!)
  10.  
  11. # To find zero byte files use:
  12. find /home/www/files/ -type f -size 0
  13.  
  14. # To find & remove zero byte files use:
  15. find /home/www/files/ -type f -size 0 | xargs rm
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement