Variable
|
Mod
|
Description
|
Type
|
Origin
|
Firmw
|
---|
ACTION
|
2
|
The action to perform for mdev.
|
Text
|
busybox
|
5.05 - 5.24
|
auto_resume
|
2
|
Controls how the shell interacts with the user and job control.
|
Text
|
bash
|
7.22 - 7.23
|
BASH
|
2
|
The full pathname used to execute the current instance of Bash.
|
Text
|
bash
|
7.22 - 7.23
|
BASHOPTS
|
2
|
Colon-separated list of enabled shell options maintained by shopt.
|
Text
|
bash
|
7.22 - 7.23
|
BASHPID
|
2
|
Expands to the process ID of the current Bash process.
|
Text
|
bash
|
7.22 - 7.23
|
BASH_ALIASES
|
2
|
An associative array of aliases as maintained by alias.
|
Text
|
bash
|
7.22 - 7.23
|
BASH_ARGC
|
2
|
An array of the number of parameters in each frame of the bash stack.
|
Text
|
bash
|
7.22 - 7.23
|
BASH_ARGV
|
2
|
An array of the parameters in each frame of the bash stack.
|
Text
|
bash
|
7.22 - 7.23
|
BASH_CMDS
|
2
|
An array of the builtin Bash-Commands.
|
Text
|
bash
|
7.22 - 7.23
|
BASH_COMMAND
|
2
|
The command currently being executed.
|
Text
|
bash
|
7.22 - 7.23
|
BASH_COMPAT
|
2
|
The value to set the shell's compatibility level.
|
Text
|
bash
|
7.22 - 7.23
|
BASH_ENV
|
2
|
The path where Bash startup scripts are located.
|
Text
|
bash
|
7.22 - 7.23
|
BASH_EXECUTION_STRING
|
2
|
The command argument to the 'bash -c' invocation option.
|
Text
|
bash
|
7.22 - 7.23
|
BASH_LINENO
|
2
|
An array of line numbers in source files.
|
Text
|
bash
|
7.22 - 7.23
|
BASH_LOADABLES_PATH
|
2
|
Array of directories to search for loadable builtins maintained by enable.
|
Text
|
bash
|
7.22 - 7.23
|
BASH_REMATCH
|
2
|
An array assigned by the '=~' binary operator to the '[[' conditional command.
|
Text
|
bash
|
7.22 - 7.23
|
BASH_SOURCE
|
2
|
An array of source filenames of functions named in FUNCNAME.
|
Text
|
bash
|
7.22 - 7.23
|
BASH_SUBSHELL
|
2
|
Bash nesting depth. 0 = not a subshell.
|
Text
|
bash
|
7.22 - 7.23
|
BASH_VERSINFO
|
2
|
Readonly array of version informations for this instance of Bash.
|
Text
|
bash
|
7.22 - 7.23
|
BASH_VERSION
|
2
|
The version number of the current instance of Bash.
|
Text
|
bash
|
7.22 - 7.23
|
BASH_XTRACEFD
|
30
|
File descriptor number for trace output.
|
Text
|
busybox, bash
|
7.19 - 7.24
|
CDPATH
|
143
|
The search path for the cd command.
|
Text
|
busybox, bash
|
3.62 - 7.24
|
CHILD_MAX
|
2
|
Set the number of exited child status values for the shell.
|
Text
|
bash
|
7.22 - 7.23
|
COLUMNS
|
141
|
The number of characters per line on the console window.
|
Text
|
busybox, bash
|
3.62 - 7.24
|
COMPREPLY
|
2
|
An array of possible completions generated by the programmable completion facility.
|
Text
|
bash
|
7.22 - 7.23
|
COMP_CWORD
|
2
|
An index into COMP_WORDS of the word containing the current cursor position.
|
Text
|
bash
|
7.22 - 7.23
|
COMP_KEY
|
2
|
The key used to invoke the current completion function.
|
Text
|
bash
|
7.22 - 7.23
|
COMP_LINE
|
2
|
The current command line.
|
Text
|
bash
|
7.22 - 7.23
|
COMP_POINT
|
2
|
The index of the cursor position relative to the beginning of the current command.
|
Text
|
bash
|
7.22 - 7.23
|
COMP_TYPE
|
2
|
Set to an integer value corresponding to the type of completion attempt.
|
Text
|
bash
|
7.22 - 7.23
|
COMP_WORDBREAKS
|
2
|
Characters that Readline treats as word separators when performing word completion.
|
Text
|
bash
|
7.22 - 7.23
|
COMP_WORDS
|
2
|
An array of the individual words in the current command line.
|
Text
|
bash
|
7.22 - 7.23
|
CONSOLE
|
143
|
The console tty used by this Shell.
|
Text
|
busybox
|
3.62 - 7.24
|
console (linenv)
|
117
|
The console tty used by this Shell.
|
Text
|
busybox
|
3.62 - 7.24
|
COPROC
|
2
|
An array of file descriptors for I/O of an unnamed coprocess.
|
Text
|
bash
|
7.22 - 7.23
|
DEVPATH
|
2
|
The sysfs device path for mdev.
|
Text
|
busybox
|
5.05 - 5.24
|
DIRSTACK
|
2
|
An array of the current contents of the directory stack.
|
Text
|
bash
|
7.22 - 7.23
|
EMACS
|
|
Set if bash is running in an Emacs shell buffer to disable line editing.
|
|
|
|
ENV
|
143
|
Path to a profile script for ash.
|
Text
|
busybox
|
3.62 - 7.24
|
EUID
|
2
|
The numeric effective user id of the current user.
|
Text
|
bash
|
7.22 - 7.23
|
EXECIGNORE
|
2
|
Patterns of filenames to be ignored by command search using PATH.
|
Text
|
bash
|
7.22 - 7.23
|
EXINIT
|
112
|
Variable to customize vi.
|
Text
|
busybox
|
4.68 - 7.24
|
FIGNORE
|
2
|
Suffixes to ignore when performing filename completion.
|
Text
|
bash
|
7.22 - 7.23
|
FILENAME
|
86
|
Delivery filename for busybox popmaildir connect helper program.
|
Text
|
busybox
|
5.52 - 7.24
|
FIRMWARE
|
2
|
The firmware to load for mdev.
|
Text
|
busybox
|
5.05 - 5.24
|
FUNCNAME
|
2
|
Array of names of all shell functions currently in the execution call stack.
|
Text
|
bash
|
7.22 - 7.23
|
FUNCNEST
|
2
|
The maximum function nesting level. 0 = no limit.
|
Text
|
bash
|
7.22 - 7.23
|
GETCONF_DIR
|
2
|
Optional directory where getconf is located to query system variables.
|
Text
|
glibc
|
7.22 - 7.23
|
GETOPT_COMPATIBLE
|
88
|
Compatiblity tweak for getopt.
|
Text
|
busybox
|
5.05 - 7.24
|
GID
|
86
|
The group id of the user who owns this Shell.
|
Text
|
busybox
|
5.52 - 7.24
|
GLOBIGNORE
|
2
|
Patterns defining the set of filenames to be ignored by filename expansion.
|
Text
|
bash
|
7.22 - 7.23
|
GROUPS
|
2
|
An array of groups of which the current user is a member.
|
Text
|
bash
|
7.22 - 7.23
|
histchars
|
2
|
Up to 3 chars which control history expansion, quick substitution, and tokenization.
|
Text
|
bash
|
7.22 - 7.23
|
HISTCMD
|
2
|
The history number, or index in the history list, of the current command.
|
Text
|
bash
|
7.22 - 7.23
|
HISTCONTROL
|
2
|
List of values controlling how commands are saved on the history list.
|
Text
|
bash
|
7.22 - 7.23
|
HISTFILE
|
2
|
The name of the file to which the command history is saved.
|
Text
|
bash
|
7.22 - 7.23
|
HISTFILESIZE
|
2
|
The maximum number of lines contained in the history file.
|
Text
|
bash
|
7.22 - 7.23
|
HISTIGNORE
|
2
|
List of patterns masking command lines which should be saved on the history list.
|
Text
|
bash
|
7.22 - 7.23
|
HISTSIZE
|
2
|
The maximum number of commands to remember on the history list.
|
Text
|
bash
|
7.22 - 7.23
|
HISTTIMEFORMAT
|
2
|
Optional format string for the time displayed by the history builtin.
|
Text
|
bash
|
7.22 - 7.23
|
HOME (linenv)
|
143
|
The home directory of this Shell.
|
Text
|
busybox, uClibc, bash, glibc
|
3.62 - 7.24
|
HOSTFILE
|
2
|
A file in the same format as '/etc/hosts' for hostname completion.
|
Text
|
bash
|
7.22 - 7.23
|
HOSTNAME
|
56
|
The hostname of this machine.
|
Text
|
busybox, bash
|
7.00 - 7.24
|
hostname_completion_file
|
2
|
Old name of the HOSTFILE variable.
|
Text
|
bash
|
7.22 - 7.23
|
HOSTTYPE
|
2
|
A string describing the machine Bash is running on.
|
Text
|
bash
|
7.22 - 7.23
|
IFS
|
143
|
The character used as the internal field separator.
|
Text
|
busybox, bash, glibc
|
3.62 - 7.24
|
IGNOREEOF
|
2
|
Controls the action of the shell on receipt of an 'EOF' character.
|
Text
|
bash
|
7.22 - 7.23
|
ignoreeof
|
2
|
Controls the action of the shell on receipt of an 'EOF' character.
|
Text
|
bash
|
7.22 - 7.23
|
INSIDE_EMACS
|
2
|
Emacs 'version,comint' if bash is running inside an Emacs subshell.
|
Text
|
bash
|
7.22 - 7.23
|
LANG
|
112
|
The language of this Shell to select the Locale.
|
Text
|
uClibc, busybox, musl, bash, glibc
|
4.68 - 7.24
|
LC_ALL
|
112
|
Forced Locale of this Shell for applications.
|
Text
|
uClibc, busybox, musl, bash, glibc
|
4.68 - 7.24
|
LC_COLLATE
|
2
|
The collation order used when sorting the results of filename expansion.
|
Text
|
bash
|
7.22 - 7.23
|
LC_CTYPE
|
27
|
The character set used to display and input text.
|
Text
|
busybox, musl, bash, glibc
|
6.50 - 7.24
|
LC_MESSAGES
|
2
|
The Locale used to translate double-quoted strings preceded by a '$'.
|
Text
|
bash
|
7.22 - 7.23
|
LC_NUMERIC
|
2
|
The Locale used for number formatting.
|
Text
|
bash
|
7.22 - 7.23
|
LC_TIME
|
2
|
The Locale used for date and time formatting.
|
Text
|
bash
|
7.22 - 7.23
|
LD_BIND_NOW
|
15
|
Causes the dynamic linker to resolve all symbols at program startup.
|
Text
|
uClibc
|
7.19 - 7.24
|
LD_LIBRARY_PATH
|
9
|
List of directories to search for Shared-Libraries before the standard locations.
|
Text
|
musl
|
7.19 - 7.24
|
LD_PRELOAD
|
9
|
List of objects which should be preloaded by the dynamic linker.
|
Text
|
musl
|
7.19 - 7.24
|
LINES
|
112
|
The number of text lines on the console window.
|
Text
|
busybox, bash
|
4.68 - 7.24
|
LOGNAME
|
143
|
Similar to USER, some programs prefer to read this variable.
|
Text
|
busybox, uClibc, musl
|
3.62 - 7.24
|
MACHTYPE
|
2
|
Describes the system type on which Bash is executing, in the standard GNU format.
|
Text
|
bash
|
7.22 - 7.23
|
MAIL
|
2
|
Optional filename or directory name to poll for mail.
|
Text
|
bash
|
7.22 - 7.23
|
MAILCHECK
|
2
|
How often (in seconds) that the shell should check for mail.
|
Text
|
bash
|
7.22 - 7.23
|
MAILPATH
|
2
|
A list of filenames which the shell periodically checks for new mail.
|
Text
|
bash
|
7.22 - 7.23
|
MAPFILE
|
2
|
An array to hold the text read by the mapfile builtin.
|
Text
|
bash
|
7.22 - 7.23
|
offset
|
42
|
Offset of a busybox ntpd sync.
|
Text
|
busybox
|
6.50 - 7.14
|
OLDPWD (linenv)
|
143
|
The previous working directory of this Shell.
|
Text
|
busybox, bash
|
3.62 - 7.24
|
OPTARG
|
88
|
The value of the last option argument processed by the getopts builtin.
|
Text
|
busybox, bash
|
5.05 - 7.24
|
OPTERR
|
30
|
1= Display error messages generated by builtin getopts.
|
Text
|
busybox, bash
|
7.19 - 7.24
|
OPTIND
|
88
|
The index of the last option argument processed by the getopts builtin.
|
Text
|
busybox, bash
|
5.05 - 7.24
|
OSTYPE
|
2
|
A string describing the operating system Bash is running on.
|
Text
|
bash
|
7.22 - 7.23
|
PATH (linenv)
|
140
|
The path to search for commands of this Shell.
|
Text
|
busybox, uClibc, glibc
|
3.62 - 7.24
|
PIPESTATUS
|
2
|
An array of exit status values from most recent foreground pipeline.
|
Text
|
bash
|
7.22 - 7.23
|
POSIXLY_CORRECT
|
143
|
If present: Try to behave according to the POSIX standard.
|
Text
|
uClibc, busybox, bash, glibc
|
3.62 - 7.24
|
POSIX_PEDANTIC
|
2
|
If present: Try to behave according to the POSIX standard.
|
Text
|
bash
|
7.22 - 7.23
|
PPID
|
119
|
The process ID of the shell's parent process.
|
Text
|
busybox, bash
|
3.62 - 7.24
|
PROMPT_COMMAND
|
2
|
Optional command to execute before the printing of each primary prompt (PS1).
|
Text
|
bash
|
7.22 - 7.23
|
PROMPT_DIRTRIM
|
2
|
Optional number of directory components when expanding the 'w' and 'W' prompt string escapes
|
Text
|
bash
|
7.22 - 7.23
|
PS0
|
2
|
Prompt for interactive shells printed between reading and executing a command.
|
Text
|
bash
|
7.22 - 7.23
|
PS1
|
2
|
The primary prompt string.
|
Text
|
bash
|
7.22 - 7.23
|
PS2
|
2
|
The secondary prompt string.
|
Text
|
bash
|
7.22 - 7.23
|
PS3
|
2
|
Optional prompt for the select command.
|
Text
|
bash
|
7.22 - 7.23
|
PS4
|
2
|
The prompt printed before the command line is echoed when the '-x' option is set.
|
Text
|
bash
|
7.22 - 7.23
|
PWD (linenv)
|
143
|
The current working directory of this Shell.
|
Text
|
busybox, uClibc, musl, glibc
|
3.62 - 7.24
|
RANDOM
|
2
|
Generates a random integer (0 - 32767) each time this parameter is referenced.
|
Text
|
bash
|
7.22 - 7.23
|
READLINE_LINE
|
2
|
The contents of the Readline line buffer, for use with 'bind -x'.
|
Text
|
bash
|
7.22 - 7.23
|
READLINE_POINT
|
2
|
The position of the insertion point in the Readline line buffer, for use with 'bind -x'.
|
Text
|
bash
|
7.22 - 7.23
|
REPLY
|
88
|
The default variable for the read builtin.
|
Text
|
busybox
|
5.05 - 7.24
|
RUNLEVEL
|
112
|
The current system runlevel.
|
Text
|
busybox
|
4.68 - 7.24
|
SECONDS
|
2
|
The number of seconds since the shell was started.
|
Text
|
bash
|
7.22 - 7.23
|
SEQNUM
|
2
|
The sequence number for mdev.
|
Text
|
busybox
|
5.05 - 5.24
|
SHELL (linenv)
|
141
|
The absolute path of this Shell.
|
Text
|
busybox
|
3.62 - 7.24
|
SHELLOPTS
|
2
|
A colon-separated list of enabled shell options maintained by the set builtin.
|
Text
|
bash
|
7.22 - 7.23
|
SHLVL (linenv)
|
62
|
The number of shell levels running above this Shell.
|
Text
|
busybox, bash
|
6.50 - 7.24
|
SUBSYSTEM
|
2
|
The sybsystem to use for mdev.
|
Text
|
busybox
|
5.05 - 5.24
|
SVDIR
|
|
Overrides the services directory /var/service (for sv/runsv).
|
|
|
|
SVWAIT
|
|
Overrides the 7s to wait for a command to run (for sv/runsv).
|
|
|
|
TERM (linenv)
|
143
|
The terminal emulation used by this Shell.
|
Text
|
busybox
|
3.62 - 7.24
|
TERMCAP
|
2
|
Termcap description, set by a terminal emulator to provide the terminal's characteristics.
|
Text
|
bash
|
7.22 - 7.23
|
TEXTDOMAIN
|
2
|
The name of the current Locale.
|
Text
|
bash
|
7.22 - 7.23
|
TEXTDOMAINDIR
|
2
|
The absolute pathname of the directory storing Locales.
|
Text
|
bash
|
7.22 - 7.23
|
TIME
|
30
|
Optional default format for busybox time (-v,-p,-f override this).
|
Text
|
busybox
|
7.19 - 7.24
|
TMOUT
|
2
|
Optional default timeout for the read builtin. 0 = no timeout.
|
Text
|
bash
|
7.22 - 7.23
|
TMPDIR
|
7
|
Optional path where temporary files for the Shell are created.
|
Text
|
busybox, bash, glibc
|
7.01 - 7.23
|
TZ (linenv)
|
32
|
The time zone used by this Shell.
|
Text
|
busybox, bash
|
4.33 - 7.24
|
UID
|
86
|
The unique id of the user who owns this Shell.
|
Text
|
busybox
|
5.52 - 7.24
|
USER (linenv)
|
141
|
The user who owns this Shell.
|
Text
|
busybox
|
3.62 - 7.24
|
128 Linux variables
|
---|