Command of the day (15 Oct) - chown

codlinuxchown

chown - Change file owner

    chown user file : Change owner of file

    chown -R user dir: Recursively change owner of directory and the files it contains

    chown -f user file: Silent. Suppress errors

    chown --from=user.group file: Changes ownership of foo if current owner and/or group matches the given values

    chown -R -c user dir: Change recursively ownership in bar only reporting when a change is made

    chown user.group file: Change owner and group of file

 

Get your free ebook

Learn GNU/Linux one command a day

Return to Home Page