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 powered by Disqus