Change Owners and Groups

At some point, you'll need to change the owner and group associated with a file.

If you want to change the owner and group for the file todo to user jlp and group managers, you use the following shell commands, respectively:

chown jlp todo
chgrp managers todo


You could also make both these changes in one step by using a dot in your command:

chown jlp.managers todo