Skip to content
LinkedIn Twitter Reddit Facebook Email
  • Admin Contact [email protected]
hacknos.com-logo Affiliate
  • Home
  • Installation
    • CMS Installation
    • Linux Installation
    • Windows Installation
  • Walkthrough
    • Vulnhub Walkthrough
    • HackTheBox Walkthrough
  • E-Hacking
    • Ethical Hacking
    • Networking
    • Penetration Testing
    • Privilege Escalation
    • Internet of Things ( IoT )
    • hacker Cheat Sheets
    • Metasploit
  • WebTools
    • Base64 Encode
    • Base64 decode
    • URL Encode
    • URL decode
    • Online ROT13 Encoder Decoder
    • Online MD5 Hash Generator
    • Website IP Address Finder
    • Alexa website ranking
    • DNS Lookup Tool
  • O-Directory
    • MicroWord
    • AWS
    • error-fix
    • Latest
  • Contact
    • Contact US
    • About US
    • Disclaimer
    • Privacy Policy
hacknos.com-logo Affiliate
Menu
  • Home
  • Installation
    • CMS Installation
    • Linux Installation
    • Windows Installation
  • Walkthrough
    • Vulnhub Walkthrough
    • HackTheBox Walkthrough
  • E-Hacking
    • Ethical Hacking
    • Networking
    • Penetration Testing
    • Privilege Escalation
    • Internet of Things ( IoT )
    • hacker Cheat Sheets
    • Metasploit
  • WebTools
    • Base64 Encode
    • Base64 decode
    • URL Encode
    • URL decode
    • Online ROT13 Encoder Decoder
    • Online MD5 Hash Generator
    • Website IP Address Finder
    • Alexa website ranking
    • DNS Lookup Tool
  • O-Directory
    • MicroWord
    • AWS
    • error-fix
    • Latest
  • Contact
    • Contact US
    • About US
    • Disclaimer
    • Privacy Policy
LinkedIn Twitter Reddit Facebook Email

Remove Last Login History in Linux

September 13, 2020September 16, 20231 min readWrite a Comment on Remove Last Login History in Linux
SHARE THIS POST
Facebook Twitter LinkedIn Email Reddit
Remove Last Login History in Linux

On the Linux systems, there are three standard commands that show the information about the last logged-in users: last, last, and last log.

The output of these commands includes login-name, last login time, IP address, port, etc.

And sometimes, to keep anonymity, it is required to erase last login history.

CommandLogfileDescription
last/var/log/wtmpLists successful login/logout history
lastb/var/log/btmpShows the bad login attempts
lastlog/var/log/lastlogShows the most recent login

Remove Information About Last Logins

To remove all the information about the last logged in users, you have to clear the files where this information is kept :
echo > /var/log/wtmp
echo > /var/log/btmp
echo > /var/log/lastlog

Post Navigation

Systemd Command Cheat Sheet

Previous

Nvidia Drivers on Linux

Next

Related Posts

Best Video Editor For Linux

September 19, 2021September 16, 20236 min read

How to Factory Reset Kali Linux

December 21, 2020September 16, 20233 min read

Phoneinfoga Phone Number tracker In 2021

September 2, 2021September 16, 20234 min read

Subscribe to Newsletter

Already Subscribes 13000+ Users
Loading

Advertisement Here

Popular Posts

  • Hack Tools Setup

    Zxing org Wifi Password Hack

    November 1, 2021
  • Vulnhub Walkthrough

    Os-Hax Walkthrough vulnhub CTF

    November 5, 2019
  • hacker Cheat Sheets

    Termux Commands list 2022

    February 15, 2022
  • What is - How to

    How to create a tunnel in HTTP

    December 18, 2022
  • ethical hacking

    Enumeration Ethical Hacking

    April 20, 2020

About HackNos

hacknos.com-logo

hackNos is a comprehensive source of information on cybersecurity, penetration testing, Red Teaming, etc.

Facebook Instagram LinkedIn Twitter

Advertisement Here

Legal

  • About US
  • Contact US!
  • Privacy Policy
  • Terms and Conditions

Follow us

  • Linkedin
  • Twitter
  • Reddit
  • Email
  • YouTube
 © 2025 HackNos
  • About US
  • Contact US!
  • Privacy Policy
  • Terms and Conditions