Re: [opensuse] tired of typing: find . -type d -print0 | xargs -0 chmod 0755 - here's a script that help
![](https://seccdn.libravatar.org/avatar/27aacf61a13c66fcc083fcf8a84823bc.jpg?s=120&d=mm&r=g)
Fred A. Miller wrote:
David C. Rankin wrote:
Listmates,
I got tired of having to continually type the long find command to set directory permission for the directories on my web site as well as the same form with an 'f' instead of a 'd' to manage the files. So I wrote a little script to do it. Typing dchm and fchm is a lot easier. (or dchm 0750) Both scripts accept a normal octal-mode digit string to set the permissions to something other than the defaults and an argument of -, h, or H will show short usage information. Help yourself to the scripts if you have a need at:
http://www.3111skyline.com/download/linux/scripts/utils/dchm http://www.3111skyline.com/download/linux/scripts/utils/fchm
[snip]
In Yast and "Software Management," search for "locate" and you'll find some unix utils. Install it. Then, in konsole as root, run "updatedb." Once done, it sets up a rebuild in cron. Then at konsole all you need to do is run "locate <name of file or part of it> and it will give you a list. ;)
Fred
Ummm... findutils-locate is a normal install for me Fred. Couldn't live without it. That the scripts do is 'set' the permission the way I want them. Basically they just save me from having to type the find command each time I do it. (I do it alot;-) -- David C. Rankin, J.D.,P.E. | openSoftware und SystemEntwicklung Rankin Law Firm, PLLC | Countdown for openSuSE 11.1 www.rankinlawfirm.com | http://counter.opensuse.org/11.1/small -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (1)
-
David C. Rankin