wtmp last last tricks Remove IP from /var/log/wtmp utmpdump /var/log/wtmp | grep -v "tty1" > /tmp/.i utmpdump -r < /tmp/.i > /var/log/wtmp rm -f /tmp/.i