Linux Whoami Command Tutorial To Find Current User

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/linux-whoami-command-tutorial-find-current-user/
PINTEREST
PINTEREST
INSTAGRAM

Linux provides different tools to identify current and related users. whoami is one of the command that is used to  display information about the current user.

Print Current User

We can print current user with whoami command like below.

Print Current User 
Print Current User 

Print Currently Logged In Users

We can also print currently logged in users into a Linux system with w command.

Print Currently Logged In Users
Print Currently Logged In Users

Omit The Header

While printing currently logged in users we can remove the header part ot the user list. We will use -h option.

Omit The Header 
Omit The Header 
RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/linux-whoami-command-tutorial-find-current-user/
PINTEREST
PINTEREST
INSTAGRAM

LEARN MORE  Linux User Management

Leave a Reply

Your email address will not be published.