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:
chown --reference source-file-dir target-file-dir
example:
chown --reference testfile sharad_testfile
See the given below screenshot of example for more understanding