![]() Programs in GNOME using the menu: System -> Preferences -> Sessions If you do not know how to work with crontab, you could add it to the startup To configure this, run "crontab -e" and add one of these lines in theĮditor, then save and close the file. Or more frequently, but to keep disk IO down, only when there is less then 3GB of free space: /usr/bin/autotrash -max-free 3072 -d 30 You can also make autotrash process all user trash directories (not just in your home directory) by adding this crontab entry: /usr/bin/autotrash -td 30 To run autotrash daily using cron, add the following crontab entry: /usr/bin/autotrash -d 30 The service is installed to ~/.config/systemd/user so like the cron approach, root access is not required and multiple users have their own independent services. Systemctl -user disable autotrash.timer respectively. The timer can be enabled and disabled using systemctl -user enable autotrash.timer and ![]() Will run /usr/bin/autotrash -d 30 every day.Īfter installing this installation, the service can also be manually started with systemctl -user start autotrash. Run autotrash -install to create a systemd service which runs daily with the provided arguments. You can always run it manually, but most of the time you want to have it run scheduled in the background. You need to run autotrash to have it inspect your trash and start deleting old files. On ArchLinux, there is an AUR package availableįinally you could install it using pip directly, which will install it to your home in the folder ~/.local/bin, using pip install -user autotrash.On Debian using sudo apt-get install autotrash.On Ubuntu using sudo apt-get install autotrash.On Fedora consider using yum install autotrash.Using a distribution package is preferred as it will also ensure that autotrash is updated during your regular updates, however not all distributions have autotrash available as a package, so you may need ot use python directly anyway. Either using your Linux distribution package manager (if a package is available) or using the Python package directly. There are mulitple ways to install the software. Matching a particular regular expression are then purged, including their trashinfoįiles to determine their deletion date. It scans the ~/.local/share/Trash/info directory and reads the. It should work for most modern desktops, including KDE and GNOME. Trash files for it's deletion information. ![]() Autotrash is a small python script to automatically remove
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |