• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
sharadchhetri

sharadchhetri

Tutorials On Linux, Unix & Open Source

  • Home
  • Linux Commands
  • Resources
    • Learn Linux
  • My WordPress plugins

group ownership reference to file/dir from other file/dir in linux

November 28, 2013 by Sharad Chhetri Leave a Comment

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

Share this:

  • Twitter
  • Facebook
  • More
  • Print
  • Email
  • LinkedIn
  • Reddit
  • Tumblr
  • Pinterest
  • Pocket
  • Telegram
  • WhatsApp
  • Mastodon

Related posts:

  1. Give permission reference to file/dir from other file/dir in linux
  2. Linux command to find modified and access date of file/dir/filesystem
  3. Set group password,its use and check which group after newgrp command in linux
  4. Command to create and delete group in Red Hat and CentOS linux
  5. script to change group from a file having list of users
  6. Allow only members of Wheel group to use su command on RHEL/CentOS
  7. NOTICE: nagios.cmd file not found. Please specify the location of this file in your /etc/vshell.conf file
  8. Nagios monitoring on AWS Autoscaling group instances
  9. Convert video file into gif file through command line in linux
  10. Yum command to download rpm file without installing in linux system

Filed Under: Linux Commands Tagged With: commands, linux command

Reader Interactions

Leave a Reply Cancel 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.

Primary Sidebar

Our Social Media Presence

  • Facebook
  • GitHub
  • Twitter

Linux Command

What is Linux Internal And External Command

Linux Basic Commands With Examples For Every Beginner

tr command to convert lines to space , tab and vertical tab

smbpasswd command not found on CentOS 7 and RHEL 7

Solution : semanage command not found

Unix / Linux : How to print duplicate lines from file

More Posts from this Category

You Might Like These Articles!

simplecodesyntax wordpress plugin

SimpleCodeSyntax : My Another WordPress Plugin

Install Nginx

How To Install Nginx On Ubuntu 22.04 LTS

Install Latest Git package in Ubuntu Operating System

How To Always Install Latest Git Package In Ubuntu Operating System

Bash script for installing VirtualBox on Ubuntu 22.04 LTS Desktop

Install VirtualBox On Ubuntu 22.04 LTS Desktop (Bash Script)

libfuse

dlopen(): error loading libfuse.so.2 – Got Error On Ubuntu

Failed to open/create the internal network

VirtualBox Error: Failed to open/create the internal network

Always Useful Tips And Tricks

How to find swap partition or file in linux

Agent admitted failure to sign using the key ssh

Error: Could not stat() command file ‘/var/lib/nagios3/rw/nagios.cmd’!

convert space into new line using sed command

How to empty Trash through command line in Ubuntu

How to protect from port scanning and smurf attack in Linux Server by iptables

Set GRUB password after installation of CentOS/Red Hat

Explore 90+ Article On "Linux Tips And Tricks"

Copyright © 2023 ยท
The material in this site cannot be republished either online or offline, without our permission.
Proudly Blogging From Bharat.

  • Contact
  • About Me
  • My WordPress plugins
  • Privacy Policy