Re: What's up with bash shell and spaces in filenames?

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

 



> This is an on-again-off-again kind of problem. It usually hits me when
> it is least convenient, like when I only have shell access to the
> machine. Example:
>
> [alan@agena ~]$ cd /media/My\ Book/
> bash: cd: /media/My: No such file or directory
> [alan@agena ~]$ cd "/media/My Book/"
> bash: cd: /media/My: No such file or directory
> [alan@agena ~]$ Gaaah!
> bash: Gaaah!: command not found
>
> What's up with that? Usually it is no trouble, but occasionally, bash
> refuses to deal with spaces. I don't even know what to do in this
> case.

you can put the path in a single quote like so:

cd '/media/My Book/'

> --
> users mailing list
> users@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
>


-- 
jack wallen, jr
sooooooooo yeah
monkeypantz.net

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux