Home Linux File Ownership Command (chown, chgrp)
Post
Cancel

Linux File Ownership Command (chown, chgrp)

  • 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.
This post is licensed under CC BY 4.0 by the author.