chown stands for Change Ownership.
To change the ownership and group of files and directories
Change ownership of a single file
chown:
eg.
chown root:root message.txt
Change ownership of a directory and all sub files and directories
chown -R:
eg.
chown -R root:root photo
To change the ownership and group of files and directories
Change ownership of a single file
chown
eg.
chown root:root message.txt
Change ownership of a directory and all sub files and directories
chown -R
eg.
chown -R root:root photo
Comments
Post a Comment