Skip to content
masterclass Buddy

Linux & Shell · Environment Variable

USER

USER is an environment variable commonly set for a user session. It is session data, not a reliable proof of operating-system identity.

Last updated

Syntax

USER=value

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • environ(7)
  • getenv(3)
  • setenv(3)
  • unsetenv(3)
  • su(1)
  • login(1)

Source: environ(7) - Linux manual page. Checked 2026-11-03.