![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
>/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 |
||||
| Google The UNIX and Linux Forums |