Skip to content

Welcome to Tech by Example

Menu
  • Home
  • Posts
  • System Design Questions
Menu

Know the current user on Linux

Posted on August 9, 2023August 9, 2023 by admin

Overview

Linux command ‘whoami’ can be used to know the currently logged-in user.

Let’s see this command in action. Go to the terminal and type in the command

whoami

It will print the current user. Let’s say the current user is john then running the above command will simply print john

Output

whoami
john

Note: Check out our system design tutorial series System Design Questions

©2025 Welcome to Tech by Example | Design: Newspaperly WordPress Theme