add some common environment variables

This commit is contained in:
Bonnie I-Man Ng 2019-06-11 14:22:34 +08:00 committed by GitHub
parent 8f7169db16
commit 931dc30a41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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