$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.

Examples

Basic Examples  (1)

In[1]:=
Click for copyable input
Out[1]=

See Also

$HomeDirectory  Environment  $UserBaseDirectory

Tutorials

Introduced in 1996
(3.0)