- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to copy multiple directories?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2008 12:58 AM
03-28-2008 12:58 AM
how to copy multiple directories?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2008 01:17 AM
03-28-2008 01:17 AM
Re: how to copy multiple directories?
You can use cp -r dir1 dir2 ... target_dir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2008 02:39 AM
03-28-2008 02:39 AM
Re: how to copy multiple directories?
As mentioned by Dennis, we need more clarifications. From where to where?
to preserve the permissions, you will have to also include the "-p" switch.
for more information, see: man cp
Are there any symbolic links in these directories?
revert.
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2008 12:41 AM
03-29-2008 12:41 AM
Re: how to copy multiple directories?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2008 06:09 AM
03-29-2008 06:09 AM
Re: how to copy multiple directories?
"cp -r" for this task?
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1203742
Given an adequate "tar" program, a "tar"
pipeline can do a much better job.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2008 07:21 PM
03-30-2008 07:21 PM
Re: how to copy multiple directories?
# find /dir1 /dir2 /dir3 -print |\
cpio -pdvlmx /newDir
Read the find and cpio man pages. Lots of control options. Overkill, sure! But isn't that what Unix is all about ;-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2008 07:32 PM
03-30-2008 07:32 PM
Re: how to copy multiple directories?
> to do anything! [...]
Not all equally good, however.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2008 07:10 AM
03-31-2008 07:10 AM
Re: how to copy multiple directories?
True, some are much funnier than others :-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2008 08:56 AM
03-31-2008 08:56 AM
Re: how to copy multiple directories?
> Not all equally good, however.
...and some will puzzle the uninitiated more than others...especially if one doesn't care to read the manpages :-)
Then again, the philosophy is to do whatever you tell it (or not) to do...
Regards!
...JRF...