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!
== Examples == Examples of environment variables include: * <code>[[PATH (variable)|PATH]]</code>: a list of directory paths. When the [[User (computing)|user]] types a command without providing the full path, this list is checked to see whether it contains a path that leads to the command. * <code>HOME</code> ([[Unix-like]]) and <code>USERPROFILE</code> (Microsoft Windows): indicate where a user's [[home directory]] is located in the [[file system]]. * <code>HOME/{.AppName}</code> ([[Unix-like]]) and <code>APPDATA\{DeveloperName\AppName}</code> (Microsoft Windows): for storing application settings. Many applications incorrectly use <code>USERPROFILE</code> for application settings in Windows: <code>USERPROFILE</code> should only be used in dialogs that allow user to choose between paths like <code>Documents/Pictures/Downloads/Music</code>; for programmatic purposes, <code>APPDATA</code> (for roaming application settings shared across multiple devices), <code>LOCALAPPDATA</code> (for local application settings) or <code>PROGRAMDATA</code> (for application settings shared between multiple OS users) should be used.<ref name="appdata"/> * <code>TERM</code> ([[Unix-like]]): specifies the type of [[computer terminal]] or [[terminal emulator]] being used (e.g., <code>[[vt100]]</code> or <code>[[dumb terminal|dumb]]</code>). * <code>PS1</code> ([[Unix-like]]): specifies how the prompt is displayed in the [[Bourne shell]] and variants. * <code>MAIL</code> ([[Unix-like]]): used to indicate where a user's mail is to be found. * <code>TEMP</code>: location where processes can store temporary files.
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)