Last active
October 5, 2020 10:52
-
-
Save AlbertSuarez/ff52dcd450990badc5c306047910fd38 to your computer and use it in GitHub Desktop.
rm_large_directory_efficiently.sh
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
#!/usr/bin/env bash | |
mkdir empty_dir | |
rsync -a --delete empty_dir/ yourdirectory/ # Trailing slashes are mandatory. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment