Solved

copy file

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
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.

777 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