Linux Commands Reference - Complete Linux Command Guide

Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.

Share
Back to commands

whoami

Show current effective username

Syntax

whoami [OPTION]...

Common Options

--versionShow version
--helpShow help

Common Examples

whoami

Show current username

sudo whoami

Verify sudo privileges

echo "Current user: $(whoami)"

Use in script

Related Commands

Related Tools

More Code & Dev Tools