By Robert
Hello, I have 1TB of occupied space, and every time I have to rename the folder, instead of renaming I think it moves it, the last time I made it from the console with mv name_folder new_name and it takes more than 8 hours, because it does not rename it it moves it, now I’m doing it from https://cloud.digitalocean.com/spaces/ and it’s the same, why does it take so long? it’s supposed to be renaming not moving
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Use this:
mv -T namefolder newfolder
In that case, namefolder will not be moved into newfolder if newfolder is a directory. However, if both namefolder and newfolder are directories and newfolder is empty, namefolder will be renamed to newfolder (and the original newfolder removed). If both are directories and newfolder is non-empty, mv -T will complain.
With -T, namefolder is renamed to newfolder, but without -T, namefolder is moved into the directory pointed to by newfolder.
I have decided not to use spaces anymore due to such behaviors of spaces like renaming a directory! or slow moving thousands of files.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.