Linux Whoami Command Tutorial To Find Current User
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 Currently Logged In Users
We can also print currently logged in users into a Linux system with
Omit The Header
While printing currently logged in users we can remove the header part ot the user list. We will use
$ w -h