Created
July 10, 2020 10:41
-
-
Save joshy/39984c38ad17cdc40a1de46bb7e07bce to your computer and use it in GitHub Desktop.
delete oldest first directories
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
# delete oldest first, first 100 entries of directories | |
ls -lctr | head -n 100 | xargs sudo rm -rf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment