Feb 25, 2001 #1 ronron Technical User Jun 21, 2002 3 US does anybody know how to clear out lists after issuing the "last" command? i want to re-start it and start from scratch or zero. how about showing the complete date (including year)?
does anybody know how to clear out lists after issuing the "last" command? i want to re-start it and start from scratch or zero. how about showing the complete date (including year)?
Feb 26, 2001 #2 nadim Technical User Mar 7, 2001 27 GB I'm too sure if there is an option to empty wtmp, but you should be able to empty it by issuing. > /etc/wtmp Nadim Upvote 0 Downvote
I'm too sure if there is an option to empty wtmp, but you should be able to empty it by issuing. > /etc/wtmp Nadim
Feb 26, 2001 #3 BobMCT IS-IT--Management Sep 11, 2000 756 US We usually just simply delete the wtmp file (rm /var/wtmp) and it starts over at that point. Works for us... Upvote 0 Downvote
We usually just simply delete the wtmp file (rm /var/wtmp) and it starts over at that point. Works for us...
Feb 26, 2001 #4 farhsyed IS-IT--Management Feb 6, 2001 22 ron, try fwtmp command, get the syntax from man, clear wtmp to a save file for any archive purpose. hope this will work. Farhsyed Upvote 0 Downvote
ron, try fwtmp command, get the syntax from man, clear wtmp to a save file for any archive purpose. hope this will work. Farhsyed
Feb 26, 2001 #5 call Technical User Oct 31, 2000 127 US to capture the data to archive it use who -a /var/adm/wtmp and redirect the output to a save file like this from root who -a /var/adm/wtmp > don now you can clear it by using cat /dev/null > /var/adm/wtmp hope this helps Upvote 0 Downvote
to capture the data to archive it use who -a /var/adm/wtmp and redirect the output to a save file like this from root who -a /var/adm/wtmp > don now you can clear it by using cat /dev/null > /var/adm/wtmp hope this helps