Created
December 13, 2016 08:13
-
-
Save jasonheecs/8bdf4af8b696eca66e7f10d139818e64 to your computer and use it in GitHub Desktop.
Move files and directories to the parent folder in Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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