Logo
Web01
Ch4os1@web01:~/commands/whoami
← View all bash commands

whoami

Display the current user.

Examples

whoami
              

Display the current user.

whoami -a
              

Display the current user along with additional information.

Notes

This command affects only the current shell session.