Skip to content

Whoami command linux usage

Question

What does the "whoami" command do in a command-line interface?

Answer

The "whoami" command displays the username of the currently logged-in user in the command-line interface, helping to identify the active user session.