Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 798 Bytes

README.md

File metadata and controls

36 lines (26 loc) · 798 Bytes

linux-autodeletefile

A script that controls disk usage. The maximum value in % and the unit /dev/sdx are set.

Save chckhddspace.sh somewhere on the disk, edit the percentage limit in the condition and the disk you want to check.

Edit the file

nano crontab

and paste the following line. He will repeat the script every day at 3:00 am

0 3 * * * /chckhddspace.sh

In case you want to use other intervals you can use a great tool to help you.

https://crontab.guru/

Donate me

BTC

bc1q2h5ndkf9uws3p8cyrmj85ykf23wd5ahq5v0wp8

ETH (ETH Network)

0x55A50063774133eD52A0A8f9464eC69Bd7275215

ATOM

cosmos1vumvckcxezpfm8fq2ctdkhmmheuhznqdd5n9fp

ADA (ADA Network)

addr1qy7wpxnlarr7ywhsqffk9fmfdqdrh4k7n47fem9xwljvyueuuzd8l6x8uga0qqjnv2nkj6q680tda8tunnk2valycfesmcc6ur