$Username

$Username

gives the login name of the user who invoked the Wolfram Language kernel, as recorded by the operating system.

Details

  • On Unix and similar operating systems, $Username is derived from the UID associated with the Wolfram Language kernel process.
  • On operating systems where no login name can be found, $Username is None.
  • For compatibility with code written prior to Version 12 of the Wolfram Language, the value of $Username is also stored in the variable $UserName.

Examples

Basic Examples  (1)

Wolfram Research (1996), $Username, Wolfram Language function, https://reference.wolfram.com/language/ref/$Username.html (updated 2019).

Text

Wolfram Research (1996), $Username, Wolfram Language function, https://reference.wolfram.com/language/ref/$Username.html (updated 2019).

CMS

Wolfram Language. 1996. "$Username." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2019. https://reference.wolfram.com/language/ref/$Username.html.

APA

Wolfram Language. (1996). $Username. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/$Username.html

BibTeX

@misc{reference.wolfram_2024_$username, author="Wolfram Research", title="{$Username}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/$Username.html}", note=[Accessed: 21-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_$username, organization={Wolfram Research}, title={$Username}, year={2019}, url={https://reference.wolfram.com/language/ref/$Username.html}, note=[Accessed: 21-December-2024 ]}