[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Copy all except one



Russell <rjshaw@iprimus.com.au> [2002-08-24 16:22:04 +1000]:
> When i do: cp /bin /mnt   i get:
>   cp: omitting directory '/bin'
> 
> Why?
> 
> I'm in as root, and can do: cp /bin/* /mnt/bin

cp by default copies _files_ only.  To copy directories you must use
one of the recursive copy options such as -r or preferably -a.

Bob

Attachment: pgpqGCvr5JnxY.pgp
Description: PGP signature


Reply to: