• Home
  • Shell
    • Emacs
    • Perl
    • screen
    • sed
  • Ubuntu
    • VNC
  • Web Development
    • Javascript
    • Joomla
    • MySQL
    • osTicket
  • Windows
    • Gimp

Posts tagged find

BASH> Recursively set file/directory permissions

Jan19
2012
Written by Scott Rowley

Move to the directory you want to start chmodding files in and run the following:

Recursively set FILE permissions.

find . -type f -exec chmod 644 {} \+

Recursively set DIRECTORY permissions.

find . -type d -exec chmod 755 {} \+

*Note, obviously you can change the chmod number to whatever you want, 777, 600, etc.

Posted in BASH - Tagged chmod, chmodding, directory, file, files, permission, recursive, recursively, set, type

BASH> ‘find’ examples

Nov12
2010
Written by Scott Rowley

This will be a growing list as I find commands I need…

Find files of .ext that are 0 bytes and rm them.

find . -name "*.ext" -size 0 -exec rm {} \;
Posted in BASH - Tagged BASH, byte, example, rm, shell

Corrections? Questions? Comments?

Find an error?
Everything work out great for you?
Have some feedback?
Like to see something added to the article?

PLEASE leave us a comment after the article and let us know how we are doing, or if something needs corrected, improved or clarified.

Thank you!
- The Management

Advertisement

Sudo Bash
By Geeks - For Geeks

Back to Top