The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
wtmp file lo-lp-kl AIX 4 06-02-2008 10:32 AM
wtmp dsharples UNIX for Dummies Questions & Answers 2 11-17-2003 05:06 AM
Resetting WTMP? cuppjr UNIX for Dummies Questions & Answers 4 02-22-2001 10:58 AM
manage the wtmp file me2unix UNIX for Dummies Questions & Answers 0 12-18-2000 04:09 AM
Need Wtmp Reader pgold1 UNIX for Dummies Questions & Answers 1 12-13-2000 12:23 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 11-04-2004
Registered User
 

Join Date: Oct 2003
Location: Pratt,KS
Posts: 78
truncate wtmp

I have AIX5.1
I have been trying to learn how to truncate the /var/adm/wtmp file.
I have seen several things on google actually but don't quite understand. I also searched your forums but couldn't find it.
one says this ">/var/adm/wtmp
Is that all I do?
I have a seperate question also. I was wondering if somewhere there is a list of files that I should be keeping track of as a administrator that fill up like this. Maybe some sort of a guide ?
Thanks
Dave
Reply With Quote
Forum Sponsor
  #2  
Old 11-04-2004
zazzybob's Avatar
Registered Geek
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
>/var/adm/wtmp

Is basically saying "redirect nothing's STDOUT to the file /var/adm/wtmp", which is essentially the same as the longhand "cat /dev/null > /var/adm/wtmp" - this is a fairly common method of truncating a file down to 0 bytes.

As for the list of files.... I only administer HP-UX and Linux, so one of the AIXers here will be able to give more info, but for a start anything under /var/adm (or Linux - /var/log) is game. Also, keep your beady eye on /tmp and /var/tmp as these can quickly fill filesystems if not managed properly. Also keep an eye on wayward mail spools filling up (some /var/mail/* others /var/spool/mail/*). I should probably say that I'd rather use some form of log rotation mechanism so that logs are archived x times, rotated and removed (such as logrotate under linux), rather than blithely wiping things out.

Unfortunately the things that fill up systems the fastest are the users

Cheers
ZB
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 02:54 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0