1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-11-02 11:17:59 +01:00
tldr/common/chown.md
2014-01-29 22:58:24 +01:00

385 B

chown

Change the owning user/group of the specified files

  • change the user of a file

chown {{user}} {{path/to/file}}

  • change the user and group of a file

chown {{user}}:{{group}} {{path/to/file}}

  • recursively change the owner of an entire folder

chown -R {{user}} {{path/to/folder}}

  • change the owner of a symbolic link

chown -h {{user}} {{path/to/symlink}}