Skip to content

Instantly share code, notes, and snippets.

@jasonheecs
Created December 13, 2016 08:13
Show Gist options
  • Save jasonheecs/8bdf4af8b696eca66e7f10d139818e64 to your computer and use it in GitHub Desktop.
Save jasonheecs/8bdf4af8b696eca66e7f10d139818e64 to your computer and use it in GitHub Desktop.
Move files and directories to the parent folder in Linux
# This will move hidden files as well
find . -maxdepth 1 -exec mv {} .. \;
# You will get the message:
# mv: cannot move `.' to `../.': Device or resource busy
# when it tries to move . (current directory) but that won't cause any harm.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment