TestingDocs.com
    Software Testing website
    • Automation
      • Selenium
      • JBehave Framework
    • Tutorials
      • MySQL Tutorials
      • Testlink
      • Maven
      • Git
    • IDEs
      • IntelliJ IDEA
      • Eclipse
    • Flowcharts
      • Flowgorithm
      • Raptor
    • About

    Linux commands

    who Linux Command

    Overview

    In this post, we will discuss Linux who command and whoami command. The first command is used to know who logged into the system. The second one is used to know who is currently working on the system respectively.

    who command

    who displays the user currently logged in to the computer screen. To display help and command line switches type

    $ who –help

    linux who command

    To know and learn all the command line options type:

    $ man who

    whoami command

    whoami Linux command displays the current effective username to the computer screen. Sometimes when we switch users to another user using the su command. This command would be useful to know the effective username.

     

    whoami linux command

    To know and learn all the command line options type:

    $ man whoami

    For example, if john logs into the system and switched to bob user account . who would display john and whoami would display bob.

    Example

    $ whoami
    testingdocs
    $ su oracle
    Password:
    $ whoami
    oracle
    $

    –

    Linux Basic Commands Tutorial page:

    https://www.testingdocs.com/linux-basic-commands-tutorial/

    More Information on Ubuntu Linux:
    https://ubuntu.com/

    Related Posts

    sudo auth log entry

    Linux commands /

    sudo Linux Command with Examples

    Common File Commands in Linux

    Linux commands /

    Common File Commands in Linux

    su linux command

    Linux commands /

    su Linux Command

    ls linux command

    Linux commands /

    ls Linux Command with Examples

    touch create file

    Linux commands /

    touch Linux Command

    ‹ echo Linux Command› nohup Linux Command with Examples

    Recent Posts

    • ChatGPT Plans Free and PlusChatGPT Subscription Plans
    • Stellar Converter for Database ToolStellar Converter for Database
    • Stellar MySQL Log AnalyzerStellar Log Analyzer for MySQL
    • Stellar Repair for MySQLStellar Repair for MySQL
    • ChatGPT IntroductionChatGPT Capabilities
    • How to secure your SQL Database: Tips and Tricks
    • ChatGPT4 Conversational AI FeaturesChatGPT4 Conversational AI Features
    • Trends in Software EngineeringShaping the Future of Development: Exploring Key Trends in Software Engineering
    • Java PerformanceImproving Java Performance with Multithreading
    • QDrant Vector DatabaseOpen-source Vector Databases
    • Difference between PHP and JavaScript?
    • Bing AI Browser Web ContentBing Conversation Styles
    • ChatGPT PreviewChatGPT Introduction
    • Open Source AI Frameworks TensorFlowOpen Source AI Frameworks
    • Artificial Intelligence Tools

    Back to Top

    Links

    • Contact
    • Privacy Policy
    • Cookie Policy

    www.TestingDocs.com