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!
=== Unix === In most Unix and Unix-like [[command-line shell]]s, an environment variable's value is retrieved by placing a <code>$</code> sign before the variable's name. If necessary, the name can also be surrounded by braces. To display the user home directory, the user may type: <syntaxhighlight lang="bash"> echo $HOME </syntaxhighlight> In Unix and Unix-like systems, the names of environment variables are case-sensitive. The command '''<code>[[env (shell)|env]]</code>''' displays all environment variables and their values. The command '''<code>printenv</code>''' can also be used to print a single variable by giving that variable name as the sole argument to the command.
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)