[CentOS] how to clear out /var/cache?

Fri Dec 31 06:51:28 UTC 2021
Gianluca Cecchi <gianluca.cecchi at gmail.com>

Il Ven 31 Dic 2021, 03:39 Fred <fred.fredex at gmail.com> ha scritto:
[snip]

>
>
> > --On Thursday, December 30, 2021 6:20 PM -0500 Fred <
> fred.fredex at gmail.com>
> >
> > wrote:
> >
> > > Mine has hit over 3 gigs, making it one of the larger directories in /,
> > > which is running low on space. I've hit all the low-hanging fruit I can
> > > find and now I come to things like /var/cache, and I don't know what to
> > do
> > > about such.
> >
>

If you go into /var/cache and run
du -sh *
you should see which subdirectories take more space and so on going through
their subdirectories... to pinpoint the main specific  component
responsible of the space occupation..

With the * in the command above you don't catch elements (files or
directories) beginning with a . but I don't think there are normally this
kind of objects... Just in case you can run a
ll -a
to be sure of that..
Hih,
Gianluca