mv * doesn't work... I tried that

link|improve this question

74% accept rate
2  
What's the error? – miku Jan 25 '11 at 4:25
1  
Why doesn't 'mv * ../new.directory' work - or what else did you want it to do? Names beginning with '.'? The new directory as a sub-directory of the current one? – Jonathan Leffler Jan 25 '11 at 4:25
1  
More information and specifics are always helpful. – jmort253 Jan 25 '11 at 4:32
feedback

migrated from stackoverflow.com Jan 25 '11 at 4:27

This question came from our site for professional and enthusiast programmers.

4 Answers

up vote 1 down vote accepted

run:

mv -f * /home

mv [option] src dest

check out the manual pages of mv type

man mv

for more information

link|improve this answer
feedback

What do you want to do? Why doesn't mv * dir/ work? If having dir/ itself in the source list, try writing a glob pattern that includes everything other than dir/.

link|improve this answer
feedback

You'll have to give more details as to why mv does not work... but when doing 'not so usual' move, you might want to look at something like :

find . [add some filter here] -exec mv {} /path/to/destination \;
link|improve this answer
feedback
mv -f /source-folder /destination-folder

should work, I think

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.