Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pages/common/chgrp.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# chgrp

> Change group ownership of files and directories.
> See also: `chown`.
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/chgrp-invocation.html>.

- Change the owner group of a file/directory:
Expand Down
5 changes: 5 additions & 0 deletions pages/common/chown.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# chown

> Change user and group ownership of files and directories.
> See also: `chgrp`.
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/chown-invocation.html>.

- Change the owner user of a file/directory:
Expand All @@ -15,6 +16,10 @@

`sudo chown {{user}}: {{path/to/file_or_directory}}`

- Change the group of a file to a group that the current user belongs to:

`chown :{{group}} {{path/to/file_or_directory}}`

- Recursively change the owner of a directory and its contents:

`sudo chown {{[-R|--recursive]}} {{user}} {{path/to/directory}}`
Expand Down
Loading