The file is named Bamboo Makeup Brush Set.jpg
mv /home/said/Downloads/Bamboo Makeup Brush Set.jpg /home/said/Downloads/11/
doesn't work because of the spaces in the file name. How can I move this file using the command line?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this communityThree options:
Use tab completion. Type the first part of the file and hit Tab. If you've typed enough for it to be unique, it'll be completed. Otherwise, type more and hit Tab again. Or, hit Tab a second time to list all the possible completions.
Surround the name in quotes:
mv "File with Spaces" "Other Place"
Use backslashes to escape the special characters:
mv File\ with\ Spaces Other\ Place
Simply do:
mv /home/said/Downloads/Bamboo\ Makeup\ Brush\ Set.jpg /home/said/Downloads/11/