$ pip3 install --user autotrash
Collecting autotrash
Downloading autotrash-0.4.1-py3-none-any.whl (22 kB)
Collecting arrow<0.18.0,>=0.17.0
Downloading arrow-0.17.0-py2.py3-none-any.whl (50 kB)
|████████████████████████████████| 50 kB 2.2 MB/s
Requirement already satisfied: python-dateutil>=2.7.0 in /usr/lib/python3/dist-packages (from arrow<0.18.0,>=0.17.0->autotrash) (2.8.1)
Installing collected packages: arrow, autotrash
WARNING: The script autotrash is installed in '/home/rinzwind/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
有一个工具:autotrash
(没有 apt install 了)一个 cron 作业
将每天一次删除您的垃圾箱。
-d
删除超过 10 天的文件。添加-t
将删除所有用户。它还有更多功能(例如根据条目和文件大小删除,或者根据垃圾箱中当前空闲的内容进行删除)。还有垃圾-cli
和
将每天删除一次垃圾。
和 ...