reenadak

Delete Folder from Dinsol

Jul 30th, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.37 KB | None | 0 0
  1. # CHMOD files resursively
  2. $ chmod -R 777 2bdeleted/*
  3.  
  4. # delete files
  5. $ rm -rf 2bdeleted
  6.  
  7. # This will recursively search your directory tree (starting at dir ‘dot’) and chmod 755 all directories only.
  8. find . -type d -exec chmod 755 {} ;
  9.  
  10. # Similarly, the following will chmod all files only (and ignore the directories):
  11. find . -type f -exec chmod 644 {} ;
Advertisement
Add Comment
Please, Sign In to add comment