FreeAntivirus

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Friday, January 22, 2010

How to Periodically remove temporary files in Linux

Posted on 12:05 AM by Unknown
To remove periodically some files from a specific directory you can easily setup a cron entry. Execute in shell

crontab -e

and add

*/60 * * * * find /home/my_home/some_dir/ -name '*.dat' -mmin +60 -exec rm {} \;

where .dat is the suffix of the files and "-mmin +60 -exec rm {}" is the option telling to remove the files with data modified more than 60 minutes ago.

If your crontab uses Vim
Email ThisBlogThis!Share to XShare to Facebook
Posted in How to ... | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Google introduced new Voice and Video Chat !!
    Google today launched Gmail voice and video chat, making it simple for people around the world to chat in high-quality video for free right ...
  • Reducing load on web server by using reverse proxy - squid
    Many large organizations use caching proxy servers to save on network bandwidth utilization (and costs) and improve browsing response times...
  • UNP a Universal File Unpacking Utility for Ubuntu / Debian
    Unp is a small perl script which makes extraction of any archive files in easy way. It support several compressors and archiver programs, ch...
  • File Access Permissions on Linux
    File protection with chmod chmod 400 file    To protect a file against accidental overwriting.chmod 500 dir     To protect yourself from acc...
  • Convert text files to MP3 under Linux
    First we would need to install festival. We can install festival with the following command :sudo apt-get install festivalNow we need to ins...
  • Linux for Kids
    LinuxKidX was, until recently, a Brazilian-only Linux distribution, but, as of March 20th 2009, it is also available in English, so a lot mo...
  • How to allow access to the mail server by individual domains - Sendmail
    The access database (normally in /etc/mail/access) allows a mail administrator to administratively allow access to the mail server by indiv...
  • Visual Browser for Wikipedia
    No matter what you think about the quality and nature of Wikipedia articles, there is no denying that the encyclopedia provides an immense ...
  • How to recover/repair lost/damage partitions
    TestDisk is a powerful free data recovery software ! It was primarily designed to help recover lost partitions and/or make non-booting disks...
  • HOW TO INSTALL ANGRY IP SCANNER ON UBUNTU
    Currently there are many security software available for Linux and Windows. The Angry IP Scanner is one of the popular open source software ...

Categories

  • administration
  • Antivirus
  • Apache
  • Apple
  • AppZ
  • Blog
  • boot
  • CentOS
  • Communication
  • Database
  • disc
  • Download
  • Drivers
  • Editor
  • encryption
  • Fedora
  • File management
  • Filesystem
  • Font
  • Fun
  • gaming
  • Gnome
  • Google
  • Gossips
  • How to ...
  • internet
  • KDE
  • Kernel
  • Kidz
  • laptop
  • Linux
  • Linux embedded Devices
  • Mail
  • Media centre
  • Memory
  • mobile
  • MS
  • multimedia
  • network
  • News
  • Oracle
  • PDF
  • pendrive
  • Perl
  • processor
  • Programming
  • proxy
  • Reviews
  • script
  • security
  • sql
  • Squid
  • ssh
  • Supercomputer
  • SuSe
  • Themes
  • trickz n tipz
  • TweakZ
  • ubuntu
  • Video
  • Video editing
  • Virus
  • zip

Blog Archive

  • ▼  2010 (62)
    • ►  June (1)
    • ►  May (6)
    • ►  April (28)
    • ►  March (11)
    • ►  February (5)
    • ▼  January (11)
      • How to benchmark a C++ code
      • How to Periodically remove temporary files in Linux
      • How to Encrypt directories using EncFS
      • How to change MAC address of your WIFI or Etherne...
      • How to Setup Transparent Squid Proxy Server in Ubuntu
      • How to convert CHM to PDF in LInux
      • Google To Switch To EXT4
      • How to disable KVM in running kernel to solve erro...
      • 40,000 processors and 104 TB of RAM Assembled to R...
      • [ ubuntu ] Quick and Dirty method to remove a corr...
      • How to enable file and folder listing in apache
  • ►  2009 (367)
    • ►  December (16)
    • ►  November (23)
    • ►  October (45)
    • ►  September (44)
    • ►  August (35)
    • ►  July (1)
    • ►  June (20)
    • ►  April (6)
    • ►  March (8)
    • ►  February (18)
    • ►  January (151)
  • ►  2008 (69)
    • ►  December (31)
    • ►  November (38)
Powered by Blogger.

About Me

Unknown
View my complete profile