Search notes:
Environment variables
Accessing/reading environment variables
Java
Python
import os
print(os.environ['VAR'])
Perl
print $ENV{VAR};
PS> echo $env:userprofile
R
Sys.getenv(varname)
getenv('xyz');
msgBox environ("TEMP")
process.env.ENVVAR
APPDATA
CD
Windows: the current working directory.
EDITOR
Specifies the prefered
editor.
HOME
Typically, the value starts with /home/
(Unix, that is).
LANG
The default
locale for categories where neither
LC_ALL nor the specific variable for that category is set.
LC_ALL
Localization of programs. It makes their message follow the conventions of a specified country.
The values POSIX
and C
are equivalent.
LC_MESSAGES
Determines the
locale to be used for internationalised messages.
LC_MONETARY
locale for formatting monetary values
LC_TIME
locale for formatting date/time values
LOGNAME
The name with which a
user
NLSPATH
Determines the location where catopen
looks for internationalisation message catalogues.
PATH
A series of directories used to search executable files. The directories are separated with :
in Unix and with ;
in Windows.
PS1
Configure the prompt for a
shell.
POSIXLY_CORRECT
If set, blocks are units of 512 bytes, otherwise of 1024 bytes.
PROMPT_DIRTRIM
SECONDS
A
bash (only bash?) variable.
t0=$SECONDS
do_stuff
echo $(($SECONDS - $t0)) seconds used for stuff
SHELL
The default shell that
useradd assumes when not invoked with the
-s
flag.
TZ
Time zone in
POSIX systems.
In POSIX.1 systems the value of the TZ variable can be in one of three formats:
- std offset (for example EST+5)
- std offset dst [offset],start[/time],end[/time]
- *:characters* (The GNU C Library interprets *:characters* as the name of a file which describes the time zone.
USERPROFILE
Seems to be the Windows equivalent of
HOME.