1.

What do chmod, chown, chgrp commands do?

Answer»

These are file management commands. These are used for:

  • chmod - It CHANGES the permission set of a file
  • CHOWN - It changes the ownership of the file.
  • chgrp - It changes the group of the file.

$ chmod g+w testfile

It changes permission for a user group to write.
$ chown sroy8091 testfile

It changes the OWNER of testfile to sroy8091.

$ chgrp MODERATORS testfile

It changes a group of testfile to moderators.



Discussion

No Comment Found