mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-11-26 06:17:01 +00:00
add some common environment variables
This commit is contained in:
parent
8f7169db16
commit
931dc30a41
11
README.md
11
README.md
@ -115,6 +115,15 @@ $? :most recent foreground pipeline exit status.
|
|||||||
$- :current options set for the shell.
|
$- :current options set for the shell.
|
||||||
$$ :pid of the current shell (not subshell).
|
$$ :pid of the current shell (not subshell).
|
||||||
$! :is the PID of the most recent background command.
|
$! :is the PID of the most recent background command.
|
||||||
|
|
||||||
|
$DESKTOP_SESSION current display manager
|
||||||
|
$EDITOR preferred text editor.
|
||||||
|
$LANG current language.
|
||||||
|
$PATH list of directories to search for executable files (i.e. ready-to-run programs)
|
||||||
|
$PWD current directory
|
||||||
|
$SHELL current shell
|
||||||
|
$USER current username
|
||||||
|
$HOSTNAME current hostname
|
||||||
```
|
```
|
||||||
|
|
||||||
## Grep
|
## Grep
|
||||||
@ -1427,7 +1436,7 @@ shopt -s expand_aliases
|
|||||||
|
|
||||||
##### List environment variables (e.g. PATH)
|
##### List environment variables (e.g. PATH)
|
||||||
```bash
|
```bash
|
||||||
$echo $PATH
|
echo $PATH
|
||||||
# list of directories separated by a colon
|
# list of directories separated by a colon
|
||||||
```
|
```
|
||||||
##### List all environment variables for current user
|
##### List all environment variables for current user
|
||||||
|
Loading…
Reference in New Issue
Block a user