Dwivedi Ajay kumar wrote:
> hi all,
> I have got a dircetory with all its subdirs and files in the mode
> 700. I wish to change the mode of all the directories to 755 and files
> in them to 644. Is there a way it can be done easily? chmod does not seem
The following 2 comands will do the trick:
find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;
>
> Moreover is there a cool way to change the mode of all files
> starting with "." ? ".*" seems to match even ".." and during a recursive
I use the regexp (in bash) .[a-zA-Z0-9]* to match all the dotfiles and
directories. This won't match files that start with more than one ., though.
Binand
----------------------------------------------
Find out more about this and other Linux India
mailing lists at http://lists.linux-india.org/