Skip to content

Instantly share code, notes, and snippets.

@ekka21
Created August 25, 2012 15:30
Show Gist options
  • Save ekka21/3467127 to your computer and use it in GitHub Desktop.
Save ekka21/3467127 to your computer and use it in GitHub Desktop.
Linux: find file permission
//find all with permission 777
find / -type f -perm 0777
//find all without permission 777
find / -type f ! -perm 0777
//Wordpress chmod permission
define('FS_METHOD', 'direct');
sudo find . -type d -exec chmod 775 {} \;
sudo find . -type f -exec chmod 664 {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment