How to clear the last -10 information only for a Linux system? I tried to execute the command
> /var/log/wtmp to clear the last info, but it clears the whole login info , but I need to clear only last -10 login info.
The wtmp file is a sequence of
A simple C program will give you the size of a utmp record.
and a Perl script will truncate the wtmp file