Skip to content
TecAdmin
  • Shell Scripting
  • Docker
  • Git
  • Linux
  • MongoDB
  • MySQL

Linux

⌘K
  • About Linux
    • What is Linux
    • Linux Architecture
    • Linux Kernel
  • Linux Files
    • Linux – Files
    • Linux – ls command
    • Linux – touch
    • Linux – mkdir
    • Linux – systemctl command
    • Linux – cd
  • Linux File Permissions
    • Linux – chown
    • Linux – chgrp
    • Linux – chattr
  • Linux Filters
    • Linux – cut
    • Linux – tee
    • Linux – grep
    • Linux – wc
  • Linux User and Group
    • Linux – adduser
    • Linux – usermod
    • Linux – userdel
    • Linux – addgroup
    • Linux – who
    • Linux – whoami
    • Linux – chage
  • Linux Processes
    • Linux – kill
  1. Home
  2. Linux
  3. Linux User and Group
  4. Linux – whoami

Linux – whoami

Linux whoami command

Linux whoami command is used to get current logged in username. This command is most helpful with Shell scripting to find if the current user is root or not.

Example:

$ whoami

Output:

rahul

Doc navigation

← Linux - whoLinux - chage →
Was this article helpful to you? No Yes 1

Copyright © 2013-2019 TecAdmin.net. All Rights Reserved.
This site uses cookies. By using this website you agree with our term and services

Proudly powered by WordPress | Theme: SuperMag by Acme Themes