Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 835  / 1 Year ago, fri, november 18, 2022, 10:48:23

I have a directory I want to rename without spaces. This is the path to the file with spaces /home/ebank36/minecraft/The Fall of Gondolin.



I want to rename that directory to TFoG so I would like it to look like

/home/ebank36/minecraft/TFoG.



I need to do this so I can move a file out of that directory and place it in /home/ebank36/minecraft.


More From » directory

 Answers
7

From a terminal, you could issue this command:



mv /home/ebank36/minecraft/The Fall of Gondolin /home/ebank36/minecraft/TFoG


(NOTICE the before the space. This is how bash knows the special character that follows the should be treated as part of the name)



Or, from a GUI, just click on that directory, press F2, and type the new name.


[#29420] Saturday, November 19, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
olltea

Total Points: 238
Total Questions: 115
Total Answers: 107

Location: Moldova
Member since Tue, Feb 7, 2023
1 Year ago
;