group ownership reference to file/dir from other file/dir in linux
In this tutorial we will learn to give group ownership reference to file/dir from other file/dir in linux. Here we will take ownership and group reference from source file or directory and apply same ownership and group to target directory.
Syntax:
1
|
chown --reference source-file-dir target-file-dir
|
example:
1
|
chown --reference testfile sharad_testfile
|
See the given below screenshot of example for more understanding
No comments:
Post a Comment