chown
chown is a Linux command in the Permissions category, rated intermediate difficulty. Changes file owner and/or group ownership. The syntax is chown [options] owner[:group] file. Key options and parameters: owner, file — new owner, target file. It returns none (ownership changed). A practical example: chown user file.txt chown user:group file.txt # Change owner and group chown -R user:group dir/ # Recursive chown :group file.txt # Change group only A close relative is chmod, which changes file permissions (read, write, execute) for owner/group/others. A close relative is chgrp, which changes group ownership of files and directories. A close relative is umask, which sets the default permission mask for newly created files and directories. More about this category: Linux permission commands — chmod, chown, chgrp, umask, and more. Manage file permissions and ownership. Related Permissions commands: chmod, chgrp, umask, sudo, su, getfacl, setfacl, chattr.