How to get the currently logged username in Linux
There are multpiple methods to currenly logged username in Linux.
Using the command whoami,
#whoami
Uding the command id,
#id -u -n
Using the environment variable $USER,
#echo $USER
That's all…