Categories: Hostripples Featured

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

 

 

 

 


HR-ADMIN

Recent Posts

Cron Jobs: Automate Everything While You Sleep

Cron Jobs – The Unsung Heroes Think of cron jobs as the unsung heroes of your server — capes optional,…

3 days ago

Designing a Christmas Website: Creative Ideas & Best Practices

With vibrant colors, cheerful graphics, and a sprinkle of festive magic, your website can instantly create an emotional connection and…

1 week ago

Meet Sora: The Game-Changing AI Video Model from ChatGPT

The world of artificial intelligence is evolving faster than ever — and one of the biggest breakthroughs is here. Sora,…

2 weeks ago

How to Design a Website for Black Friday 2025 (Complete Guide)

Black Friday 2025 is here — the biggest shopping moment of the year, where customers expect unbeatable prices, fast performance,…

4 weeks ago

301 Redirects for WordPress: What, Why & How (SEO Best Practices)

When you move or delete a page on your WordPress website, visitors — and search engines — can easily hit…

1 month ago