Skip to content

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

Notifications You must be signed in to change notification settings

gj357d/linux-autodeletefile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages