Solved

copy file

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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Suggested Solutions

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
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.

829 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