Moving Fedora system to new disk

Chris Adams linux at cmadams.net
Thu May 29 14:37:15 UTC 2014


Once upon a time, g <geleem at bellsouth.net> said:
> i do not know what version of 'cp' you have, but i can tell you that
> "cp (GNU coreutils) 8.4" does not copy directories or files that have
> a space in their name.

That is not true.  cp handles files with any characters just fine (just
tested on an old RHEL 4 system with coreutils-5.2.1).

I would gues you have run into shell quoting issues, but that's the
standard "fun" of using special characters in filenames and Unix shells.
You can't just say:

$ cp File With Spaces.txt /tmp

you have to:

$ cp "File With Space.txt" /tmp

-- 
Chris Adams <linux at cmadams.net>


More information about the users mailing list