whoami(1)

whoami1

Display effective user id

Usage

whoami

Overview

The whoami utility has been obsoleted by the id(1) utility, and is equivalent to id -un. The command id -p is suggested for normal interactive use.

The whoami utility displays your effective user ID as a name.

Exit status

The whoami utility exits 0 on success, and >0 if an error occurs.

Releases

61 releases since OpenBSD 2.1; the text changed 11 times.

  1. 2.1
  2. 2.2–2.3
  3. 2.4–2.5
  4. 2.6
  5. 2.7–2.8
  6. 2.9
  7. 3.0–3.3
  8. 3.4–4.1
  9. 4.2–4.4
  10. 4.5–4.8
  11. 4.9–5.0
  12. 5.1–8.0

History

The whoami utility first appeared in 2BSD.

From man 8.0-current-20261101 in OpenBSD 8.0-current (2026-11-01). Parsed by carta from the page's mdoc source.