Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Environment variable
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{more citations needed|date=May 2023}} {{short description|User-definable variable associated with each running process in many operating systems}} {{Use dmy dates|date=April 2019|cs1-dates=y}} {{Use list-defined references|date=January 2022}} <!-- Note to editors regarding embedded anchors: In order to distinguish between environment variables for Unix, DOS and Windows in incoming links, all anchors for Unix/OSX-variables are prefixed with $, all anchors for DOS/MDOS/GEM/NetWare-variables are framed like %variable%, all anchors for OS/2-variables are prefixed with %, and all anchors for Windows-variables are not prefixed at all. Environment variables are listed as they are stored in the environment, although some systems are case-insensitive in regard to their case. If a variable exists in several case-variants, they should be listed separately (f.e. %COMSPEC% and %ComSpec%) and independent anchors should be created for them as well. (At present there are some parsing problem with links to %BETA%, %FBP_USER%, %DAY%, %DAY_OF_WEEK%, %CD%, %DATE%.) --> An '''environment variable''' is a user-definable [[Value (computer science)|value]] that can affect the way running [[process (computing)|processes]] will behave on a computer. Environment variables are part of the environment in which a process runs. For example, a running process can query the value of the TEMP environment variable to discover a suitable location to store [[temporary file]]s, or the HOME or USERPROFILE variable to find the [[directory structure]] owned by the user running the process. They were introduced in their modern form in 1979 with [[Version 7 Unix]], so are included in all [[Unix]] [[operating system]] flavors and variants from that point onward including [[Linux]] and [[macOS]]. From [[PC DOS 2.0]] in 1982, all succeeding [[Microsoft]] operating systems, including [[Microsoft Windows]], and [[OS/2]] also have included them as a feature, although with somewhat different syntax, usage and standard variable names.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)