File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 11# chgrp
22
33> Change group ownership of files and directories.
4+ > See also: ` chown ` .
45> More information: < https://www.gnu.org/software/coreutils/manual/html_node/chgrp-invocation.html > .
56
67- Change the owner group of a file/directory:
Original file line number Diff line number Diff line change 11# chown
22
33> Change user and group ownership of files and directories.
4+ > See also: ` chgrp ` .
45> More information: < https://www.gnu.org/software/coreutils/manual/html_node/chown-invocation.html > .
56
67- Change the owner user of a file/directory:
1516
1617` sudo chown {{user}}: {{path/to/file_or_directory}} `
1718
19+ - Change the group of a file to a group that the current user belongs to:
20+
21+ ` chown :{{group}} {{path/to/file_or_directory}} `
22+
1823- Recursively change the owner of a directory and its contents:
1924
2025` sudo chown {{[-R|--recursive]}} {{user}} {{path/to/directory}} `
You can’t perform that action at this time.
0 commit comments