$ autotrash -max-free 1024 -d 30. Similarly, you can use autotrash to make sure there is a minimum of M megabytes of free space. Example: $ autotrash -min-free 1024. You can even combine the two command to make sure that autotrash starts reading the trash if there is less than 2 GB of free space, and then keep a check on. Autotrash is a program that looks in a FreeDesktop.org Trash folder for information on it's contents and then purges a part of the trash depending on the options. The most common option is -d, which will purge files that have been in the trash for more then a given number of days. Vlc media player for mac update.
Sponsored Link
Autotrash is a simple Python script which will purge files from your trash based on their age or the amount of free space left on the device. Using autotrash -d 30 will delete files which have been in the trash for more then 30 days. It uses the FreeDesktop.org Trash Info files included in the new GNOME system to find the correct files and the dates they where deleted.Features:
Remove files that are older then a given number of days (see the -d option)

Purge older files to ensure a specific amount of disk space is free (see the --min-free option)

Check for remaining disk space, and only delete if you are running out (see the --max-free option)
Delete regex matching files first (see --delete-frist option)



Install autotrash on ubuntu
Open the terminal and run the following command Kingdom come deliverance console commands mod.
sudo apt-get install autotrash
Syntax
Auto Trash Terraria
autotrash [-d purge_n_days_old]
autotrash [--delete number_of_megabytes_to_purge]
autotrash [--keep-free number_of_megabytes_to_free]
Auto Trash Receptacle
Autotrash Examples
Purge any file that has been in the trash for more then 30 days.
autotrash -d 30
Auto Trash Can
Only purge files from the trash if there is less than 1GB of space left on the trash filesystem. If so, only trash files that are older than 30 days.
autotrash --max-free 1024 -d 30
Purge files from trash, oldest first, till there is at least 2GB of space on the trash filesystem. There is no restriction on how old trashed files are.
autotrash --min-free 2048
Purge files from trash till there is at least 2GB of space on the trash filesystem. If we need to remove files, make sure we remove *.bak files first, then all *.avi files and after that the oldest to the newest. There is no restriction on how old trashed files can get. Please note that ‘.*.bak' and ‘.*.avi' are regular expressions and not glob patterns.Given that they are regular expressions, using -D ‘.*.(png|gif|jpg|jpeg)' will match images with any of the given extensions.
autotrash --min-free 2048 -D ‘.*.bak' -D ‘.*.avi'
Start reading the trash if there is less than 4000MB of free space, then start keeping an eye on. At that point, remove files older than 30 days and if there is less than 2GB of free space after that remove even newer files.
autotrash --max-free 4000 --min-free 2048 -d 30
Experienced users should consider adding autotrash as a crontab entry, using crontab -e and adding the line above.
@hourly /usr/bin/autotrash --max-free 4000 --min-free 2048 -d 30
Sponsored Link
Related posts
Auto Trash Container
- Zik – Audio player based on gstreamer (3)
- Zero Install Injector – Install software easily and without root privileges (17)
- Zenmap – Cross platform Nmap Security Scanner GUI (0)
- Zattoo – Watch Online TV for free (18)
- Youker assistant – Integrated tool to aid in routine system maintenance tasks (1)
- YouAmp – Yet another music player for Linux (10)
- ÜberStudent – Ubuntu version for Students and Researchers (18)
