Ubuntu size

From wiki karavi
Revision as of 09:07, 22 December 2023 by Karavi (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

df -h

du -sk * | sort -nr | head -10

du -hs directory/*

du -h directory/*

du -ah Directory/*

journalctl --disk-usage

journalctl --vacuum-time=10d


lsof /var/lib/my


mysql -u root -p


SHOW BINARY LOGS;


PURGE BINARY LOGS BEFORE now();

use zabbix


DELETE FROM table ORDER BY the field DESC|ASC limit 100


delete from auditlog limit 100000;

delete from history limit 100000;

delete from history_uint limit 100000;

delete from history_text limit 10000;