Solved

copy file

Posted on 2004-05-02
2
552 Views
Last Modified: 2013-12-16
How can i copy file from many user and keep same setting for owner and permission
Thank
0
Comment
Question by:teera
2 Comments
 
LVL 17

Assisted Solution

by:owensleftfoot
owensleftfoot earned 150 total points
ID: 10972776
Just use cp with the -p flag.
0
 
LVL 12

Accepted Solution

by:
paullamhkg earned 150 total points
ID: 10974145
for more detail read the man page of cp "man cp" you will find option you can use for cp, so that you can make use of other option

eg you can copy the whole folder/directory by using the -R so that cp -Rp will copy the folder/directory and it's content and preserve the attributes of each file and directory as owensleftfoot suggested.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now