Skip to content

HACkNOS Blog

  • Home
  • E Hacking Tutorials
    • Ethical Hacking
    • Penetration Testing
    • Privilege Escalation
    • Hacker Cheat Sheets
    • Metasploit Tutorials
  • Installation Tutorials
    • CMS Iinstallation
    • Linux Installation
    • Windows Installation
  • Web Tools
    • Base64 Encoder
    • Base64 Decoder
    • URL Encoder
    • URL Decoder
    • ROT13 Encode Decode
    • MD5 Hash Generator
    • Website IP Find
    • Domain Alexa Rank Check
    • Check DNS Record
  • More
    • Top 5 & Top 10
    • HacKing Tools
    • Linux & Windows
      • Linux
      • Windows
    • Read More Platforms
      • Google Services
      • WordPress Services
      • Games
  • HackNos.Com
    • Walkthrough
      • Vulnhub Walkthrough
  • Contact US
    • Privacy Policy
    • About
  • Home
  • E Hacking Tutorials
    • Ethical Hacking
    • Penetration Testing
    • Privilege Escalation
    • Hacker Cheat Sheets
    • Metasploit Tutorials
  • Installation Tutorials
    • CMS Iinstallation
    • Linux Installation
    • Windows Installation
  • Web Tools
    • Base64 Encoder
    • Base64 Decoder
    • URL Encoder
    • URL Decoder
    • ROT13 Encode Decode
    • MD5 Hash Generator
    • Website IP Find
    • Domain Alexa Rank Check
    • Check DNS Record
  • More
    • Top 5 & Top 10
    • HacKing Tools
    • Linux & Windows
      • Linux
      • Windows
    • Read More Platforms
      • Google Services
      • WordPress Services
      • Games
  • HackNos.Com
    • Walkthrough
      • Vulnhub Walkthrough
  • Contact US
    • Privacy Policy
    • About

Remove Last Login History in Linux

December 2, 2021September 13, 2020
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
Nvidia Drivers on Linux

Recent Posts

  • ffic Redeem Code 2022 – Free Fire Redeem Code Today
  • Create Backup In CyberPanel 2022
  • Backup Vultr Cloud Hosting 2022
  • Phoneinfoga Phone Number tracker 2022
  • Windows 10 Password Hack
  • Redirect Non-www to www In CyberPanel
  • CyberPanel PHP Version Change
  • Uninstall Apps On Windows 10

Follow us

  • twitter
  • linkedin
  • wordpress
  • youtube
  • mail
  • Contact US
  • About
  • Privacy Policy
close button
© 2021 HACkNOS Blog
Go to mobile version