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
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

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

  




 

 

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
    ...
      stop)
        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