The whoami command in Unix/Linux displays the username of the currently logged-in user. It's a simple command that returns the effective user ID name. This is different from 'who' (shows all logged-in users) or 'w' (shows who is logged in and what they're doing).