Skip to main content

tmp file keeps getting full

Comments

2 comments

  • cPanelPeter cPanel Staff
    Hello, What sort of files are contained in /tmp? If it's session files then they should clear automatically. You may also want to look into tmpwatch. If it's not installed it would need to be installed first (in most cases that's yum install tmpwatch) Once installed, type: man tmpwatch An example on how to use it might be something like this: tmpwatch --mtime --all 336 /tmp
    The above will remove all files/dirs from /tmp if they are not accessed in last 2 weeks (24 * 14 days = 336)
    0
  • numarketing
    hi thats great thx, it helped sanjay
    0

Please sign in to leave a comment.