A while ago I acquired a small cloud server that is running cloudlinux. I have realized that my disk space is filling up so I ran a command to see which folders or files occupy the most space and this is the list:
1.1G /usr/tmpDSK
447M /var/log/btmp-20200401
298M /var/log/btmp
273M /var/log/chkservd.log
141M /var/log/secure-20200329
138M /var/log/secure-20200406
124M /var/log/secure-20200419
I don't have much Linux knowledge yet, so I don't know if I can alter some of these files without causing any problems in the system. Should I do this, or look for the cause of the full disk somewhere else?
/var/logSome of the services might not start properly after such procedure. – limakzi Apr 19 '20 at 17:02fusercan tell you which process is writing to it. Does not tell you which application might be reading it from time to time. You can get all accesses to a file with the audit system: https://unix.stackexchange.com/questions/186539/how-to-audit-access-to-any-file-or-folder-within-a-given-path-for-specific-user – Hauke Laging Apr 20 '20 at 08:55