chown Flashcards
1
Q
chown
A
chown changes the user and/or group ownership of each given file.
2
Q
chown
- c
- f
- v
- R [-H,-L,-P]
A
- c, –changes
- f, –silent, –quiet
- v, –verbose
- R [-H,-L,-P], –recursive, HLP modify how a hierarchy is traversed.
- H, If a command line argument is a symbolic link to a directory, traverse it.
- L, Traverse every symbolic link to a directory encountered.
- P, Do not traverse any symbolic links (default).
3
Q
chown
–dereference
-h, –no-dereference
–from=CURRENT_OWNER:CURRENT_GROUP
–no-preserve-root
–preserve-root
–reference=RFILE
A
–from=CURRENT_OWNER:CURRENT_GROUP
Change the owner and/or group of each file only if its current owner and/or group match those specified here. Either may be omitted, in which case a match is not required for the moitted attribute.