i was hoping to utilize this trick
How to move the Downloads folder (in Mountain Lion) to another disc
to move my Downloads folder inside a directory called "disktop zi5" which is inside the directory "synktorium" in my home folder
but when i try
sudo mv ~/Downloads ~/synktorium/disktop zi5/Downloads
i get:
usage: mv [-f | -i | -n] [-v] source target
mv [-f | -i | -n] [-v] source ... directory
what am i doing wrong??
MacOS – moving the downloads folder inside another folder (10.8.2)
foldersmacosterminal
Related Question
- Remove or Delete the ‘Music’ Folder on macOS – How to Guide
- MacOS – Can’t change folder permissions
- Troubleshooting “Unexpected argument” error when running defaults write
- MacOS – Drag and drop won’t move ALL selected files between Finder windows
- Help running what seems to be a directory in Terminal
- MacOS Symlink – Fix Folder in Folder Issue When Symlinking SpecialFolder
Best Answer
The shell in Terminal doesn't like white space in file names. That's what resulted in the error message. You need to use quotes to tell the shell that the second path is a single parameter, try
Alternatively, you could escape the single space before zi5
This is what OS X and Finder would do if you dragged the folder into terminal but it's less clear to someone than using " to prevent mv from seeing three arguments instead of two (a source and destination).