M
M
Minusator2017-08-11 20:28:02
CentOS
Minusator, 2017-08-11 20:28:02

How to periodically delete files from a Centos 7 folder?

Good day!
There was a problem of the following character. In the var/cache/yum/ folder, files began to constantly accumulate, which eat up all the disk space.
There is an idea to automatically delete all files from this folder by cron. How to do it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
pcdesign, 2017-08-12
@pcdesign

/usr/bin/yum clean all
You can put this command in cron.

K
Kirill Levunin, 2017-08-11
@klevunin

making a bash script that pulls the cron is the easiest

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question