chgrp

From wikieduonline
Jump to navigation Jump to search

chgrp change group ownership. https://linux.die.net/man/1/chgrp

Basic commands[edit]

  • sudo addgroup my_group --> create a new group
  • sudo chgrp my_new_ownership my_file/directory --> change ownership a file or directory
  • sudo chgrp --dereference my_new_ownership file_link --> change reference of a symbolic link
  • sudo chgrp --no-dereference my_new_ownership file_link --> modify symbolic link itself
  • sudo chgrp -R my_new_ownership ./mydirectory/ --> print recursive
  • sudo chgrp -R -v my_new_ownership ./mydirectory1/ --> print verbose

Related terms[edit]

See also[edit]

Advertising: