Skip to primary content
Skip to secondary content

Incredigeek

Incredigeek

Main menu

  • Home
  • Linux
  • Ansible
  • Security
  • Ubiquiti
  • LibreNMS
  • Projects
    • Pangolin Whisper Web Interface
    • UBNTMOD
    • Email Tracker
    • IP Watt Meter
    • Grond : LUKS Password Cracker
  • Donate

Tag Archives: last

Check if Linux user is logged in

Posted on December 17, 2018 by admin
Reply

The following commands are helpful for seeing if a user is currently logged in, or when the last time a user was on.

Who

The “who” command give information about users that are currently logged in

[steve@localhost ~]$ who
root pts/0 2018-12-14 15:05 (192.168.1.23)
steve pts/2 2018-12-14 12:09 (192.168.1.25)
[steve@localhost ~]$

Last

The last command shows a list of the last logged in users

[steve@localhost ~]$ last
steve pts/2 192.168.1.25 Fri Dec 14 15:05 still logged in
root pts/1 192.168.1.23 Fri Dec 14 12:09 - 12:09 (00:00)
steve tty1 Thu Nov 8 10:02 - 10:15 (00:13)
reboot system boot 4.7.0.x Thu Nov 8 09:01 - 10:12 (01:01)
wtmp begins Tue Oct 11 09:01:57 2018
[steve@localhost ~]$

Posted in Command Line, Linux | Tagged last, linux, login, user, users, who | Leave a reply

If you do not want Ads, use a Adblocker.

Was the information helpful? Consider donating some Monero to keep fresh information coming!

Recent Blog Post

  • Ansible Playbook for Ubuntu UFW Firewall Rules
  • How to flash unsigned firmware on a Ubiquiti Airmax Radio
  • Ansible “PlayContext” error for RouterOS Community Collection
  • How to “Lock” docker version on RHEL / RockyLinux / AlmaLinux
  • Changing Ubiquiti Radio password from Command Line

  • 3D Printing
  • AI
  • Alienware
  • AMD
  • Android
  • Ansible
  • Apple
  • Arduino
  • Automation
  • Baicells
  • Cable
  • Cambium
  • CCNA
  • CentOS
  • Chia
  • cnPilot
  • Command Line
  • Computer Mods
  • cPanel
  • Cron
  • Crypto Currency
  • Debian
  • Dell
  • DNS
  • DNS
  • Drones
  • Email
  • Fedora
  • FreeBSD
  • Freeradius
  • GPU Crypto Hashrates
  • GrapheneOS
  • Hacking
  • Hackintosh
  • Hardening Guides
  • Information
  • Inkscape
  • Internet
  • JavaScript
  • Learning
  • Learning
  • LibreNMS
  • LineageOS
  • Linux
  • MacOS
  • Matrix
  • Mikrotik
  • Minecraft
  • Mining
  • MySQL
  • Nagios
  • Networking
  • Networking
  • Nvidia
  • Office
  • OS X
  • Playbooks
  • Plotman
  • Programming
  • PSU
  • Python
  • Random
  • Raspberry Pi
  • Recovery
  • RedHat
  • Reset Passwords
  • Scripts
  • Security
  • Slackware
  • SNMP
  • Stories
  • Tear Downs
  • Tips and Tricks
  • Ubiquiti
  • Ubiquiti Command Line
  • Ubuntu
  • Uncategorized
  • UniFi
  • UniFi Protect
  • UniFi Video
  • Unity3D
  • VIM
  • Virtualization
  • Visual Studio
  • VMware
  • Web
  • Web Browser
  • Windows
  • Windows 10
  • Windows 8
  • Wireless
  • Wireshark
  • WISP
  • WordPress
  • XenServer
  • Zenoss

android automation Backup bash centos command line cpanel crypto debian DNS docker email fedora firewall install javascript librenms linux microsoft mikrotik mining monitoring networking nms nvidia OS X password programming routeros script security snmp ssh ubiquiti ubnt ubuntu ui unifi unity unity3d upgrade whm Windows XenServer zenoss

Proudly powered by WordPress