From cd990fa6da82c9d28b6817180552bd9a617d6827 Mon Sep 17 00:00:00 2001 From: rprieto Date: Wed, 25 Dec 2013 23:59:24 +1100 Subject: [PATCH] new page for chown, fixes #10 --- osx/chown.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 osx/chown.md diff --git a/osx/chown.md b/osx/chown.md new file mode 100644 index 000000000..dbab20610 --- /dev/null +++ b/osx/chown.md @@ -0,0 +1,19 @@ +# 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}}`