LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to rm if space between ? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-rm-if-space-between-4175484349/)

xitami 11-12-2013 10:56 AM

how to rm if space between ?
 
if it's like 10k most common.zip
how to run the rm (command)
Thx :D

qrange 11-12-2013 11:08 AM

you can do it like this:
Code:

rm "10k most common.zip"
or:
Code:

rm 10k\ most\ common.zip
surely there are other ways too.

suicidaleggroll 11-12-2013 11:11 AM

If you use tab completion it'll fill in the delimiters for you.

xitami 11-12-2013 11:28 AM

qrange you'r answer was really good !
Have a nice one :D

officerx 11-12-2013 11:29 AM

If your file names have spaces inbetween them enclose them with "" qoutes when running any linux command from terminal.

jmc1987 11-12-2013 07:02 PM

I just wanted to add in bash when you use tab to auto fill words, then just when you get to the first space, hit space and then tab, it should auto put the \ in it.


All times are GMT -5. The time now is 08:37 PM.