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

Re: how to cp dir and subdir but not the parentdirectory?



On Fri, Nov 18, 2005 at 04:23:57PM +0100, Realos wrote:
> user@labpc307:~$ cp -drp testdir/ temp/
> user@labpc307:~$ ll temp/
> drwxr-xr-x  3 user user 1024 2005-11-18 16:04 testdir

> I know I could copy all files with "cp * temp" and then all
> subdirectories one by one butI would prefer a single command to do
> that. Any chance?

user@labpc307:~$ cp -drp testdir/* temp/

-- 
Jon Dowland
http://jon.dowland.name/



Reply to: