LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   simple question - how to chown ALL files in a dir? (https://www.linuxquestions.org/questions/linux-newbie-8/simple-question-how-to-chown-all-files-in-a-dir-478553/)

flipwhy 08-29-2006 04:56 PM

simple question - how to chown ALL files in a dir?
 
how do you change the owner of al lthe files in a directory in one command...coz its really annoying ot change each file separately...

kaz2100 08-29-2006 05:07 PM

Check "man chown", :) and look for possible options. :)

zackarya 08-29-2006 05:09 PM

All you need to do is

chown (username) *

and all files in the current directory will be changed to (username) as the owner.

Zackarya

flipwhy 08-29-2006 05:12 PM

chown -R is the way forward...cant beleive i asked bout that...o well...thanks

kaz2100 08-29-2006 05:47 PM

;) :D :eek: :o :scratch: :Pengy:

zackarya 08-29-2006 05:54 PM

With -R you will change all files in the sub directories as well and
not just in the current directory.

Just so you know. :)

Zackarya


All times are GMT -5. The time now is 09:54 AM.