Solved

copy file

Posted on 2004-05-02
2
558 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

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…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

623 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