chown
: To change the user ownership
1
2
Input: chown -c <user> <filename>
Ouput: Changed the owner ship of the filename to the given user.
chgrp
: To change the group ownership
1
2
Input: chgrp -c <group> <filename>
Ouput: Changed the owner ship of the filename to the given user.