"I guess i can't change that path via shell, because the shell won't understand it due to the space characters. Right?"

You have three choices--that I'm familiar with:

1.) You can either put the whole thing in quotes:
sudo mv "/media/ra/TOURO Mobile 3.0" /media/ra/new-name

2.) You can insert spaces by 'escaping them' with the backslash '\' For example, if the file was called "this is a file" you can write: this\ is\ a\ file Notice the backslash before each space. So we get:
sudo mv /media/ra/TOURO\ Mobile\ 3.0 /media/ra/new-name

3.) You can use auto-completion (usually the easiest):
sudo mv /media/ra/TOU and if now you hit the TAB key you will see:
/media/ra/TOURO\ Mobile\ 3.0

So really there are two approaches. Either put it all in " or escape the spaces with backslashes \ The difference between choice 2 and 3 is that you let auto-completion type the whole mess instead of you! This is especially useful if you are manipulating long files like:
i3wm - How To 'Rice' Your Desktop (3_3)-ARKIwOlazKI.webm

I just type i3 hit TAB and that is it.

Escaping with backslashes is also for other unusual characters. But why type all of that if you don't have to.


Reply via email to