-   Linux - Newbie (
-   -   Blanks in file name (

MienteBakker 03-28-2015 09:54 AM

Blanks in file name
How do I cope with file names containing a blank, if I want to rename them?

suicidaleggroll 03-28-2015 09:58 AM

You mean a space?
Either quote it or delimit the space

ls "file name with spaces"
ls file\ name\ with\ spaces

Shadow_7 03-28-2015 10:24 AM

A gui file manager is the simple way. Right mouse -> Rename in a lot of cases. Or...

$ mv -- "File With Spaces" File_Without_Spaces

YMMV. The -- basically tells the shell to stop interpreting what follows before passing it along.

jefro 03-28-2015 06:32 PM

Just to be sure, it may be an underscore but you may know that already.

Hello and welcome to LQ.

All times are GMT -5. The time now is 05:30 PM.