Skip to content

Information Security News

  • Home
  • Cyber Security
  • Cybercriminals
  • Data Leak
  • Google
    • Android
  • Information Security
  • Linux
  • Malware
  • Microsoft
    • Windows
  • Open Source Tool
  • Vulnerability
  • Technology

Information Security News

  • Home
  • Cyber Security
  • Cybercriminals
  • Data Leak
  • Google
    • Android
  • Information Security
  • Linux
  • Malware
  • Microsoft
    • Windows
  • Open Source Tool
  • Vulnerability
  • Technology
  • Linux

Linux command to view user login information

by Nam Phong · December 22, 2019

On Linux, To display the currently logged-in user session, you can use the command:

w

20:22:13 up 1:29, 1 user, load average: 0.00, 0.01, 0.00: the current system time and system running time, the current number of logged-in users, and the system’s average load information.

  1. USER: username
  2. TTY: Login terminal type
  3. FROM: Remote terminal address
  4. LOGIN@: Login time
  5. IDLE: Idle time; this is a timer that will be reset as soon as the user performs any action
  6. JCPU: The time is taken by all processes connected to the terminal, including the currently running background job
  7. PCPU: Time is taken by the current process
  8. WHAT: Tasks currently being performed

Show currently logged in a user session with who command

Show all login names and number of logged-in users

user login information Linux

Show the currently logged in user with whoami command

user login information Linux

Related coverage

  • The 500ms Slumber: How a One-Line Patch Unleashed 10x Throughput in QEMU
  • FreeBSD 15.1-RELEASE Launches with Network and Kernel Upgrades
  • Intel Architects High-Velocity Point-to-Point Interconnect Paradigm for Linux
  • Shuttering the Script: Canonical Announces End of Ubuntu Pastebin
  • Linus Torvalds Slams AI Bug Hunters for Clogging Linux Security Pipelines

Support Our Threat Intelligence

If you find our technology report and cybersecurity news helpful, consider supporting our work.

Buy Me a Coffee Logo Buy Me a Coffee PayPal
Crypto QR Code
USDT (TRC20):
TN8BdV8cp4T1Cd28gK9qTAnZknzzuwyUtm
USDT (ERC20):
0x3725e1a7d3bc5765499fa6aaafe307fabcd75bce

Tags: Linuxuser login informationwwhoami

Follow:

  • Next story How to create SWAP partition in CentOS
  • Previous story How to View System Disk Usage in Linux

  • Recent Posts
  • Popular Posts
  • Tags
  • Diagram explaining the CVE-2026-20230 vulnerability and SSRF attacks on Cisco Unified servers

    Vulnerability

    Cisco Unified Servers Face Active CVE-2026-20230 Exploitation

    June 25, 2026

  • Diagram demonstrating the parallel threat activity of Storm-2603 and a second hacker group within a single corporate network

    Cybercriminals

    Uncovering Parallel Threat Activity: A Dual Intrusion

    June 25, 2026

  • Mastra npm supply chain attack injecting the easy-day-js typosquat with a malicious postinstall hook into AI packages

    Malware

    Mastra npm Supply Chain Attack Poisons 140+ AI Packages

    June 25, 2026

  • Windows 11 KB5095093 Point-in-Time Restore feature rolling back the OS apps settings and files from a VSS snapshot Windows 11 KB5089573 update

    Windows

    Windows 11 KB5095093 Adds Point-in-Time Restore for Full Rollback

    June 25, 2026

  • Diagram illustrating the Klue supply chain breach and compromised Salesforce OAuth tokens

    Data Leak

    Klue Supply Chain Breach Compromises LastPass Data

    June 25, 2026

  • Splunk Enterprise vulnerability CVE-2026-20253 in the PostgreSQL sidecar service exploited in active attacks

    Vulnerability

    Splunk Enterprise Vulnerability Exploited in Active Attacks

    June 22, 2026

  • OpenSUSE Leap 15.4 Beta releases, Linux distributions

    Linux

    OpenSUSE Leap 15.4 Beta releases, Linux distributions

    May 30, 2020

  • Ubuntu 16.04.6 LTS released: fix security vulnerabilities

    Linux

    Ubuntu 16.04.6 LTS released: fix security vulnerabilities

    March 1, 2019

  • GhostBSD 23.10.1 released, FreeBSD distribution

    Linux

    GhostBSD 23.10.1 released, FreeBSD distribution

    May 1, 2020

  • Solus 4.4 Fortitude releases, Linux distribution

    Linux

    Solus 4.4 Fortitude releases, Linux distribution

    January 26, 2020

  • AI AI security Android Apple APT BOTNET China CISA cloud security cryptocurrency cyberattack cybercrime Cyber Espionage cybersecurity Cybersecurity 2026 data breach Github google hacking Infosec InfoSec 2026 Infostealer Linux Linux Kernel malware Microsoft network security open source Penetration Testing phishing privacy privilege escalation Prompt Injection ransomware RCE remote code execution security Social Engineering supply chain attack Tech News 2026 threat intelligence vulnerability windows Windows 11 zero-day
  • Home
  • About Us
  • Contact Us
  • DMCA NOTICE
  • Privacy Policy

Information Security News © 2026. All Rights Reserved.

Powered by  - Designed with Hueman Pro