how to change ownership and group for a batch of files/directories?

ivytony

Verified User
Joined
Jun 5, 2006
Messages
12
I've untar-ed a .tar.gz file on my vps using a linux command line. But now the ownership and group of those files/directories need to changed. It would be very painful if changing them one by one, because I have many subdirectories and thousands of files under them. I was wondering if there is any commands such as chown out there I can use to change the ownership and group simultaneously?

appreciate your help.

thanks

IVYtony
 
You said it yourself you would use chown to change the owner and group. You can change both at the same time and you can do it on the entire contents of a directory and all it's subdirectories and files in one command.

man chown will tell you all you need to know.
 
Back
Top