Created
May 3, 2018 20:36
-
-
Save jcamilom/9aecba8a4832166a29f702a1726700fe to your computer and use it in GitHub Desktop.
[Remove non-empty folders in Linux] How to remove folders in Linux that contains other files and folders #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
#!/bin/sh | |
# Remove folder that contains other files or directories | |
rm -r mydir | |
# Avoid getting the delete confirmation for each file | |
rm -rf mydir |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment