Install Chown On A Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS
Maintainer: Michael Stone
Email: [email protected] .
Website: https://gnu.org/software/coreutils
Section: utils
Install chown
-
Debian
apt-get install coreutils
Click to copy -
Ubuntu
apt-get install coreutils
Click to copy -
Alpine OS
apk add coreutils
Click to copy -
Arch Linux
pacman -S coreutils
Click to copy -
Kali Linux
apt-get install coreutils
Click to copy -
CentOS
yum install coreutils
Click to copy -
Fedora
dnf install coreutils
Click to copy -
Raspbian
apt-get install coreutils
Click to copy -
macOS
brew install coreutils
Click to copy
Change user and group ownership of files and folders.
How to use chown?
Below are few example commands for chown that you can use in the terminal.
Change the owner user of a file/folder:chown user path/to/file
Click to copyChange the owner user and group of a file/folder:chown user:group path/to/file
Click to copyRecursively change the owner of a folder and its contents:chown -R user path/to/folder
Click to copyChange the owner of a symbolic link:chown -h user path/to/symlink
Click to copyChange the owner of a file/folder to match a reference file:chown --reference=path/to/reference_file path/to/file
Click to copy
To install the latest version of chown in your favorite operating system just copy the chown installation command from above and paste it into terminal. It will download and install the latest version of chown 2024 package in your OS.