Lead Image © Putzen, 123RF.com

Lead Image © Putzen, 123RF.com

Cleaning up your Linux server

Housekeeping

Article from ADMIN 40/2017
By
Even in the best environments, a little housekeeping is necessary.

Housekeeping is one of the many duties bestowed on the overburdened backs of system administrators, but it is one that keeps the house in order, keeps backups small, and keeps servers running efficiently. A full filesystem can stop services and disallow logins, so it is imperative that you keep a watchful eye on critical filesystems. To maintain a healthy system, you should spend a few minutes every day on housekeeping chores.

Three directories require special attention when you are tidying up your Linux space: /tmp, /home, and /var.

The /tmp Directory

The /tmp directory exists on every Linux system and is writable by every user on the system, which makes it vulnerable to file dumping and file sprawl (Figure 1). Many software programs write temporary files to the /tmp directory, which can be a problem for a system administrator when determining which files to keep and which to remove. When removing files from /tmp, you must use some discernment. Applications currently in use by users might have temporary files open, and the application will crash or throw an error if the files are removed unexpectedly. Also, a user might lose all their work since the last save point.

Figure 1: Permissions make the /tmp
...
Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy ADMIN Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

comments powered by Disqus
Subscribe to our ADMIN Newsletters
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs



Support Our Work

ADMIN content is made possible with support from readers like you. Please consider contributing when you've found an article to be beneficial.

Learn More”>
	</a>

<hr>		    
			</div>
		    		</div>

		<div class=