Question as to whether Ubuntu or UbuntuMATE is 32 bit

Colin Watson cjwatson at ubuntu.com
Sun Sep 2 10:41:04 UTC 2018


On Sat, Sep 01, 2018 at 11:33:24PM +0100, Peter Flynn wrote:
> On 01/09/18 23:14, Bret Busby wrote:
> > I could not use the cp command, as the USB drive name includes a
> > space, which is not recognised as a character within a directory name,
> > by command line commands (or so I believe).
> 
> No, you can enclose the path in quotes, eg
> 
> $ cp "~/path with spaces/name for the big file.dat" /tmp/newfile.dat

Quoting the ~ will cause that character not to have its special effect
of expanding to your home directory, which is unlikely to be what you
want.  But either of these forms would work instead:

  cp "$HOME/path with spaces/name for the big file.dat" /tmp/newfile.dat
  cp ~/"path with spaces/name for the big file.dat" /tmp/newfile.dat

Also, note that tab-completing the file name should automatically
include suitable quotation (probably by putting a backslash in front of
each character that might otherwise have some special meaning to the
shell).  Beginners often seem not to use tab-completion much, but it's
extremely helpful and doesn't require much special knowledge.

-- 
Colin Watson                                       [cjwatson at ubuntu.com]




More information about the ubuntu-users mailing list