Feb 25, 2001 #1 ronron Technical User Joined Jun 21, 2002 Messages 3 Location 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 Joined Mar 7, 2001 Messages 27 Location 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 Joined Sep 11, 2000 Messages 756 Location 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 Joined Feb 6, 2001 Messages 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 Joined Oct 31, 2000 Messages 127 Location 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