Austin Story

Ruby, Rails and Javascript Blog

Powered by Genesis

Pretty Awesome Linux Scripts

June 18, 2016 By Austin Story Leave a Comment

Show the 10 largest files in a system
sudo du -a / | sort -n -r | head -n 10

Find all pdfs in a directory that are older than 30 days and delete them
find -name “*.pdf” -type f -mtime +30 -exec rm -rf {} \;

Filed Under: Linux

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • AngularJS
  • Books
  • Devise
  • Elasticsearch
  • ES6
  • Information Security
  • Integrations
  • Javascript
  • Linux
  • Minitest
  • PhoneGap
  • Programming
  • React
  • Redux
  • Ruby
  • Ruby on Rails
  • Stripe
  • Testing
  • Theory
  • TypeScript
  • Uncategorized
  • Vue
  • Webpack