Answer is:
$ whoami
Explanation:
In Linux, the command that is used to reveal the current logged-in user is the whoami command.
The whoami command prints the username associated with the current userid. This command is often used to check the current user's username, or as a simple way to display the effective user ID when scripting.
You can run the command in the terminal to see the current logged-in user name: