Re: help with cp or mkdir

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Skull Crusher wrote:
Please help cause I REALLY don't want to go into each and every dir and
do a mkdir public_html for 200 hundred users

Why not?


for i in /home/*/* ; do
	mkdir $i/public_html
	chown `basename $i`:`basename $i` $i/public_html
done

Should just take a few seconds.



--
Psyche-list mailing list
Psyche-list@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux