Skip to content

Instantly share code, notes, and snippets.

@miloskroulik
Last active August 29, 2015 14:14
Show Gist options
  • Save miloskroulik/49cfc5d4a177846cc997 to your computer and use it in GitHub Desktop.
Save miloskroulik/49cfc5d4a177846cc997 to your computer and use it in GitHub Desktop.
Move all directories and files (including hidden ones to parent directory #bash #linux #unix
# You could turn on dotglob:
shopt -s dotglob # This would cause mv below to match hidden files
mv /path/subfolder/* /path/
# In order to turn off dotglob, you'd need to say:
shopt -u dotglob
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment