DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 12th July 2008
bsdnewbie999 bsdnewbie999 is offline
Package Pilot
 
Join Date: May 2008
Posts: 145
Thanked 0 Times in 0 Posts
Default how to copy a directory.

What is the command to copy a directory ?
Reply With Quote
  #2   (View Single Post)  
Old 12th July 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

Why, cp(1) of coarse.

Quote:
Originally Posted by cp(1)
-R If source designates a directory, cp copies the directory and the
entire subtree connected at that point. Created directories have
the same mode as the corresponding source directory, unmodified
by the process's umask.

This option also causes symbolic links to be copied, rather than
followed, and special files to be created, rather than being
copied as normal files. However, cp copies hard linked files as
separate files. To preserve hard links, use a utility such as
pax(1) or tar(1) instead.
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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
strange "~" directory in home directory gosha OpenBSD General 5 23rd February 2009 06:12 PM
Copy w/ active verification Weaseal FreeBSD General 4 5th February 2009 12:23 AM
How to copy FBSD installation from one which is already installed on a HDD? padmanabh FreeBSD Installation and Upgrading 2 7th October 2008 04:09 AM
how to copy every mail as html in different directory? bgobs FreeBSD General 1 4th August 2008 11:31 AM
Should be easy.... Keyboard copy n paste WeakSauceIII OpenBSD General 4 11th May 2008 07:32 PM


All times are GMT. The time now is 04:31 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick