Skip to content

Gov.A.Th

Just another LInux blog

Gov.A.Th

Just another LInux blog

Delete / remove old / order files in linux automatically

  • by govath
  • September 15, 2011January 21, 2022
Code:
find /tmp/test -ctime +60 -delete

The above command  will delete any files created over 60 days ago in the /tmp/test  folder (and all subfolders).

You can add this to a cron job and it will be automatic daily, weekly, monthly

previousKill and Logout Users From linux
nextCreate tar and copy to another server using tar

Recent Posts

  • Install Google Chrome on Ubuntu 
  • Find Your Public IP Address in Linux
  • Log Analyzer in Linux
  • How to send email using telnet
  • How to create a swap file in linux using dd
  • VMware ESXi convert Thick to Thin Provisioned Drives
  • Ubuntu Web Control Panel – Ajenti
  • Install webmin on ubuntu
  • Mailx configuration
  • how to change date on linux
  • Install Google Chrome on Ubuntu 
  • Find Your Public IP Address in Linux
  • Log Analyzer in Linux
  • How to send email using telnet
  • How to create a swap file in linux using dd
  • VMware ESXi convert Thick to Thin Provisioned Drives
  • Ubuntu Web Control Panel – Ajenti
  • Install webmin on ubuntu
  • Mailx configuration
  • how to change date on linux
  • How to add a service on Linux using chkconfig
  • Change 404 Page on Apache – Linux
  • Sendmail Masquerading
  • Disable Suspend and Hibernate – Ubuntu
  • Disable screen going blank ubuntu server / Network timeout
  • Sendmail Linux Examples
  • Create tar and copy to another server using tar
  • Delete / remove old / order files in linux automatically
  • Kill and Logout Users From linux
  • How to search or find within a file in linux

Powered by govath.com © 2022