How to empty /tmp

If you want to delete all files and dirs from /tmp use following command.

cd /tmp

chattr +i lost+found; deltree -f *; deltree -f .*; chattr -i lost+found

ln -s /var/lib/mysql/mysql.sock

service mysql restart

/scripts/restartsrv mysql

above commands will help you to delete all files under /tmp





Subscribe Now to stay updated.

Please fill in your email address to get most latest updates.