Editing Chgrp
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | |||
<code>[[chgrp]]</code> change group ownership. https://linux.die.net/man/1/chgrp | <code>[[chgrp]]</code> change group ownership. https://linux.die.net/man/1/chgrp | ||
− | == Basic | + | == Basic Commands== |
− | *<code>sudo | + | *<code>$ sudo addgroup my_group</code> --> create a new group |
− | *<code>sudo chgrp my_new_ownership my_file/directory</code> --> change ownership a file or directory | + | *<code>$ sudo chgrp my_new_ownership my_file/directory</code> --> change ownership a file or directory |
− | *<code>sudo chgrp --dereference my_new_ownership file_link </code> --> change reference of a symbolic link | + | *<code>$ sudo chgrp --dereference my_new_ownership file_link </code> --> change reference of a symbolic link |
− | *<code>sudo chgrp --no-dereference my_new_ownership file_link</code> --> modify symbolic link itself | + | *<code>$ sudo chgrp --no-dereference my_new_ownership file_link</code> --> modify symbolic link itself |
− | + | ||
− | + | ||
== Related terms == | == Related terms == | ||
*<code>[[coreutils]]</code> | *<code>[[coreutils]]</code> | ||
− | *<code> | + | *<code>/etc/[[group]]</code> |
*<code>[[grpck]]</code> verify integrity of [[group]] files | *<code>[[grpck]]</code> verify integrity of [[group]] files | ||
*<code>[[groupadd]]</code> | *<code>[[groupadd]]</code> | ||
Line 18: | Line 17: | ||
== See also == | == See also == | ||
− | |||
− | |||
* {{Linux Commands privileges}} | * {{Linux Commands privileges}} | ||
* {{ls}} | * {{ls}} |
Advertising: