Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




The Unofficial Ubuntu Starter Guide
Prev Home Next

Q: How to clean /tmp/ folder contents on shutdown?

  1. Read General Notes
  2. sudo cp /etc/init.d/sysklogd /etc/init.d/sysklogd_backup
    sudo gedit /etc/init.d/sysklogd
  3. Find this section
        log_begin_msg "Stopping system log daemon..."
        start-stop-daemon --stop --quiet --oknodo --exec $binpath --pidfile $pidfile
        log_end_msg $?
  4. Add the following line below it
        rm -fr /tmp/* /tmp/.??*
  5. Save the edited file (sample)
The Unofficial Ubuntu Starter Guide
Prev Home Next

  Published under the terms of the GNU General Public License Design by Interspire