Install Chown On A Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS

Install Chown On A Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS

chown

Change user and group ownership of files and folders.

Maintainer: Michael Stone



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/fileClick to copy
Change the owner user and group of a file/folder:
chown user:group path/to/fileClick to copy
Recursively change the owner of a folder and its contents:
chown -R user path/to/folderClick to copy
Change the owner of a symbolic link:
chown -h user path/to/symlinkClick to copy
Change the owner of a file/folder to match a reference file:
chown --reference=path/to/reference_file path/to/fileClick 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.