moving files to parent directory

This command will move all files & directories to the parent directory:

find . -maxdepth 1 -exec mv {} .. \;

... it will throw a warning when trying to move the current (.) directory:

mv: cannot move .' to../.': Device or resource busy

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
Mollom CAPTCHA
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated.