Change directory owner and all it's subdirectories

Associate
Joined
2 Apr 2004
Posts
674
Location
Melbourne
Hi,

I was wondering if anyone could tell me the correct command to change the owner of a directory called media and all it's subdirectories to a user named dave.

I know I need to use the chown command, but I'm not sure of the exact syntax or which folder I need to run it from.

media is currently sat in the "html" folder.

many thanks

Adrian
 
Back
Top Bottom