How can I do a
cp to copy all files including all sub-directories in the current directory.
I looked at the man page, but I can't figure out how to do it.
EDIT: (my *nix is Linux)
Stack Exchange network consists of 181 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.Visit Stack Exchange
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
What *nix do you have?
Under Linux you use normally:
cp -r <source> <target>
and if you want to copy all the same attributes (aka owner, etc.):
cp -a <source> <target>
cp -r dir1 dir2
-R, -r, --recursive copy directories recursively