cp -p /mnt/cdrom/* dirname

Jeremy C. Reed reed at reedmedia.net
Thu Dec 15 16:32:56 MST 2005


On Thu, 15 Dec 2005, Josef Lowder wrote:

> On my old system, using this:  cp -p /mnt/cdrom/* dirname
> would copy all the files from a cdrom to the named directory (or folder)
> but on my new system this doesn't seem to work.

What doesn't work? What happens?

> I've tried various combinations, including
> cp -p /mnt/cdrom dirname
> cp -p -r /mnt/cdrom dirname
> cp -pr /mnt/cdrom dirname

And what happened? These bottom two should work and the wildcard one 
above. You may want to show us what went wrong.

> I want to copy all the files and directories and their contents
> from the backup CD I burned to the named directory on the
> new system, preserving the file creation date, owner, and
> permissions.
>
> What am I doing wrong?

  Jeremy C. Reed

  	  	 	 technical support & remote administration
 	  	 	 http://www.pugetsoundtechnology.com/


More information about the PLUG-discuss mailing list