Posted By

kayue on 12/31/10


Tagged


Versions (?)

File operations


 / Published in: Bash
 

  1. # Distribution and release info
  2. cat /etc/*-release
  3.  
  4. # Create symbolic link
  5. ln -s <from> <to>
  6.  
  7. # Remove all files and folder
  8. rm -rf <dir>
  9.  
  10. # Find large file
  11. find . -type f -size +1000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'
  12.  
  13. # Change all php / directories 's mod
  14. find . -type d -exec chmod 755 {} \;
  15. find . -name "*.php" -exec chmod 644 {} \;

Report this snippet  

You need to login to post a comment.