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

ownership-group-reference

Read Some More Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.