Skip to content
tech.tutulutu.ee
Simple Blog about Tech – written for myself. Use with caution.
  • Home
  • Links
command-line/linux

Find and Delete Files Older Than X Days In Linux

Posted April 25, 2020

find files older than 30 days

$ find . -mtime +30 -print

delete files older than 30 days

$ find  -mtime +30 -delete;

Thanks to: https://www.ostechnix.com/how-to-find-and-delete-files-older-than-x-days-in-linux/

Post navigation

Older post
find oldest file in directory tree
Newer post
Install Docker Ubuntu 20

Recent Posts

  • Find out command for software install on ubuntu
  • Find out uninstall command on ubuntu for specific software
  • PHP error log setup
  • Add a new column into mysql table – as last one
  • Change Moodle domain

Categories

  • Angularjs
  • apache
  • Atom
  • aws
  • bootstrap
  • command-line
  • css
  • docker
  • firefox
  • Git
  • gmail
  • https
  • Java
  • jQuery
  • LAN
  • laravel
  • linux
  • music
  • MySQL
  • network
  • nginx
  • nodejs
  • npm
  • php
  • phpunit
  • printers
  • Python
  • Sailsjs
  • sql
  • ssh
  • SSL and HTTPS
  • thunderbird
  • Uncategorized
  • vim
  • web
  • woocommerce
  • wordpress

Tags

angularjs apache atom aws bootstrap browser command line cron css dns docker dpkg find find file firefox gedit git htaccess html htpasswd https java laravel linux lvm moodle mysql nautilus network nginx npm php phpunit port printers rsync s3cmd scp server ssh ssl thunderbird ubuntu woocommerce wordpress
© 2026 tech.tutulutu.ee
Powered by WordPress | Theme: Graphy by Themegraphy