Forrest logo
back to context overview

chown

List of commands for chown:

  • chown:ai:134b8 How to have all ownership
    $ chown -R ${username}:staff /
    try on your machine
    explain this command
  • chown:ai:38384 User bob is in groups bg1 and bg2. User pat is in group pgg. drw------x 2 pat ted 60 Jan 1 1:00 foo --w--w-r-x 1 pat bg1 0 Jan 1 1:00 foo/bar
    $ chown bob:bg2 foo/bar
    try on your machine
    explain this command
  • chown:ai:c13a1 How can i change the user and group of a folder recursively?
    $ chown -R newuser:newgroup /path/to/folder
    try on your machine
    explain this command
  • chown:ai:e5c62 How to add user group to a folder?
    $ chown -R :groupname /path/to/folder
    try on your machine
    explain this command
  • chown:tldr:0afb3 chown: Recursively change the owner of a directory and its contents.
    $ chown -R ${user} ${path-to-directory}
    try on your machine
    explain this command
  • chown:tldr:1214d chown: Change the owner user of a file/directory.
    $ chown ${user} ${filename_or_directory}
    try on your machine
    explain this command
  • chown:tldr:1e60f chown: Change the owner of a symbolic link.
    $ chown -h ${user} ${path-to-symlink}
    try on your machine
    explain this command
  • chown:tldr:493cc chown: Change the owner of a file/directory to match a reference file.
    $ chown --reference=${path-to-reference_file} ${filename_or_directory}
    try on your machine
    explain this command
  • chown:tldr:56be8 chown: Change the owner user and group of a file/directory.
    $ chown ${user}:${group} ${filename_or_directory}
    try on your machine
    explain this command
back to context overview