Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Sep 2000 18:44:21 -0400
From:      "Otter" <otterr@telocity.com>
To:        "Sriranga Veeraraghavan" <ranga@CSUA.Berkeley.EDU>, <freebsd-questions@FreeBSD.ORG>
Subject:   RE: how to copy directory and contents? 
Message-ID:  <HLEDJBJKDDPDJBMGCLPPGELBCDAA.otterr@telocity.com>
In-Reply-To: <200009222159.OAA29115@soda.csua.Berkeley.edu>

next in thread | previous in thread | raw e-mail | index | archive | help


}-----Original Message-----
}From: owner-freebsd-questions@FreeBSD.ORG
}[mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Sriranga
}Veeraraghavan
}Sent: Friday, September 22, 2000 6:00 PM
}To: freebsd-questions@FreeBSD.ORG
}Subject: Re: how to copy directory and contents?
}
}
}
}> How do you copy a directory? I have used cp to copy files, but I am
}> not sure about copying a directory and all the files within.
}
}I find that cpio is the prefered way to do this (several others have
}mentioned tar):
}
}$ cd <src> && find . -depth -print | cpio -pvd <dest>
}
}----ranga
}
cp -R has always worked for me.
-Otter



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?HLEDJBJKDDPDJBMGCLPPGELBCDAA.otterr>