Skip to content

Instantly share code, notes, and snippets.

@eculver
Created November 13, 2010 02:17
Show Gist options
  • Save eculver/675021 to your computer and use it in GitHub Desktop.
Save eculver/675021 to your computer and use it in GitHub Desktop.
bash -- removes the oldest file/directory.
ls -t | tail -n1 | xargs rm -rf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment