Networking Forums

Networking Forums > Computer Networking > Linux Networking > copy file and directory with permission

Reply
Thread Tools Display Modes

copy file and directory with permission

 
 
Bit Twister
Guest
Posts: n/a

 
      04-16-2004, 04:45 PM
On Sat, 17 Apr 2004 00:54:28 +0800, happy wrote:
> i want to know any command or software for copy file and directory with
> permission to target location.



cd /source/dir
tar cf - . | (cd /target && tar xpf -)

 
Reply With Quote
 
 
 
 
happy
Guest
Posts: n/a

 
      04-16-2004, 04:54 PM
i want to know any command or software for copy file and directory with
permission to target location.
thank you very much

 
Reply With Quote
 
Rex Dieter
Guest
Posts: n/a

 
      04-16-2004, 04:58 PM
happy wrote:

> i want to know any command or software for copy file and directory with
> permission to target location.


$ man cp
-a, --archive
same as -dpR

-d same as --no-dereference --preserve=link

-p same as --preserve=mode,ownership,timestamps
--preserve[=ATTR_LIST]
preserve the specified attributes (default: mode,owner-
ship,timestamps), if possible additional attributes: links, all

-R, -r, --recursive
copy directories recursively
...

So, it looks like you probably want

$ cp -a source target

-- Rex
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
File Copy Windows -> SMB Linux; File size problem Publishers Press Windows Networking 0 10-23-2008 06:05 PM
File Copy - Directory of 150+ Gb. Nick Windows Networking 1 04-18-2007 03:44 AM
Give copy permission without execute permission Sam Windows Networking 0 01-09-2007 01:44 AM
File Sharing and Permission Michael Broadband Hardware 0 02-04-2004 04:24 AM
permission denied writing in samba shared directory on linux pepijn Linux Networking 1 10-13-2003 08:17 PM



1 2 3 4 5 6 7 8 9 10 11