Solved

copy file

Posted on 2004-05-02
2
557 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

737 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