/home folder - 8G?

(Mvogel4949) #1

I have a system where my /home folder is over 8G which seems way too high. Any thoughts as to why it is so large? The only file in it is the asterisk user file

(Itzik) #2
cd /home
du -sh *

And take it from thereā€¦

(Mvogel4949) #3
[root@freepbx ~]# cd /home
[root@freepbx home]# du -sh *
8.2G    asterisk

8.2G is much larger than any other system

(TheJames) #4

du -a /home/asterisk | sort -n -r | head -n 10

(Mvogel4949) #5
8535064 /home/asterisk
8099376 /home/asterisk/.pm2
8099332 /home/asterisk/.pm2/pm2.log
270524  /home/asterisk/.package_cache/npm/5.6.0
270524  /home/asterisk/.package_cache/npm
270524  /home/asterisk/.package_cache
114512  /home/asterisk/.npm
114508  /home/asterisk/.npm/_cacache
101360  /home/asterisk/.npm/_cacache/content-v2
91532   /home/asterisk/.package_cache/npm/5.6.0/d6074356c76df89aff95ef2058f76228.tar.gz

(TheJames) #6

delete or truncate that. You may want to give a look inside to see what is filling it but in general it should rotate

(Mvogel4949) #7

No harm in deleting the pm2.log?

(TheJames) #8

It is just a log. If it is that big something may be going wrong but in general no you can delete it or

echo > /home/asterisk/.pm2/pm2.log

to truncate

(system) closed #9

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.