Gentoo Blog

The ultimate Gentoo Blog
  • rss
  • Home
  • About

chmod change files or directories recursively to the same value

Simon | February 11, 2010

Recursively change all files in your current working directory including files in subdirectories to 644:

find . -type f -print0 | xargs -0 chmod 644

Recursively change all directories in your current working directory including subdirectories to 755:

find . -type d -print0 | xargs -0 chmod 755

Share on Facebook
Kategorien
Gentoo, Stuff, Ubuntu/Debian
RSS Kommentare
RSS Kommentare
Trackback
Trackback

« Debian Lenny Possible missing firmware /lib/firmware/bnx2-09-4.0.5.fw for module bnx2 Ubuntu 10.04 Lucid Window Buttons On The Left »

3 Antworten

chmod -R 644 * also works!

Dinbo | March 19, 2010

chmod -R 644 * also works!

yes, but chmod -R doesnt discriminate between files and directories...

Marcel | May 23, 2010

yes, but chmod -R doesnt discriminate between files and directories…

chmod -R doesn't make a distinction between files and directories. The

Ewoud Kohl van Wijngaarden | May 25, 2010

chmod -R doesn’t make a distinction between files and directories.

The following is equal to the above commands:

find -type f -exec chmod 644 {} +
find -type d -exec chmod 755 {} +

Schreib einen Kommentar

Du kannst diese Tags verwenden : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

 

September 2010
M T W T F S S
« Aug    
 12345
6789101112
13141516171819
20212223242526
27282930  

Links

  • Gentoo
  • http.net
  • iphone software linux
  • michael-fuchs.net
  • Ubuntu

Categories

  • confixx/Plesk
  • fun
  • Gentoo
  • iptables
  • news
  • Stuff
  • Ubuntu/Debian
  • Xen/Vmware

Search Blog

rss RSS Kommentare valid xhtml 1.1 design by jide powered by Wordpress get firefox