Skip to content

Instantly share code, notes, and snippets.

@jcamilom
Created May 3, 2018 20:36
Show Gist options
  • Save jcamilom/9aecba8a4832166a29f702a1726700fe to your computer and use it in GitHub Desktop.
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
#!/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