chown (change owner)

team bbl


Changes the owner of a file.

 Format:    chown newowner filename Examples:  chown janet file29.txt 

The file file29.txt now has the owner janet. Only the owner of the file or the super user can change the owner.

Opt

What It Does

Example

-c

Display info about file changes

 chown -c janet file2 changed group of 'file2' to janet 

-R

Make changes in all subdirectories

 chown -R janet file3 changes file3 in any subdirectories, as well 


    team bbl



    Spring Into Linux
    Spring Into Linux
    ISBN: 0131853546
    EAN: 2147483647
    Year: 2005
    Pages: 362
    Authors: Janet Valade

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net