~ RMM
GNU Bash

GNU Bash

Overview

Bash is the shell, or command language interpreter, for the gnu operating system. The name is an acronym for the ‘Bourne-Again SHell’, a pun on Stephen Bourne, the author of the direct ancestor of the current Unix shell sh, which appeared in the Seventh Edition Bell Labs Research version of Unix.

All of the Bourne shell builtin commands are available in Bash, The rules for evaluation and quoting are taken from the posix specification for the ‘standard’ Unix shell.

Commands

Builtin



Coprocesses

Functions

Parameters

Shell Expansions

Variables


BASH BASHOPTS BASHPID BASH_ALIASES BASH_ARGC BASH_ARGV BASH_ARGV0 BASH_CMDS BASH_CMDS is unset, it loses its special properties, even if it is subsequently reset. BASH_COMMAND BASH_COMPAT BASH_ENV BASH_EXECUTION_STRING BASH_LINENO BASH_LOADABLES_PATH BASH_REMATCH BASH_SOURCE BASH_SUBSHELL BASH_VERSINFO BASH_VERSINFO BASH_VERSINFO BASH_VERSION BASH_XTRACEFD CHILD_MAX COLUMNS COMP_CWORD COMP_LINE COMP_POINT COMP_TYPE COMP_KEY COMP_WORDBREAKS COMP_WORDS COMPREPLY COPROC DIRSTACK EMACS ENV WORDBREAKS EPOCHREALTIME EPOCHSECONDS EUID The numeric effective user id of the current user. This variable is readonly. EXECIGNORE FCEDIT FIGNORE FUNCNAME FUNCNEST GLOBIGNORE GROUPS histchars HISTCMD HISTCONTROL HISTFILE HISTFILESIZE HISTIGNORE HISTSIZE HISTTIMEFORMAT HOSTFILE HOSTNAME HOSTTYPE IGNOREEOF INPUTRC INSIDE_EMACS LANG LC_ALL LC_COLLATE LC_CTYPE LC_MESSAGES LC_NUMERIC LC_TIME LINENO LINES MACHTYPE MAILCHECK MAPFILE OLDPWD OPTERR OSTYPE PIPESTATUS POSIXLY_CORRECT PPID The process id of the shell’s parent process. This variable is readonly. PROMPT_COMMAND PROMPT_DIRTRIM PWD The current working directory as set by the cd builtin. RANDOM Each time this parameter is referenced, it expands to a random integer between 0 and 32767. Assigning a value to this variable seeds the random number gener- ator. If RANDOM is unset, it loses its special properties, even if it is subsequently reset. READLINE_ARGUMENT READLINE_LINE READLINE_MARK READLINE_POINT REPLY SECONDS SHELL SHELLOPTS SHLVL SRANDOM TIMEFORMAT TMOUT TMPDIR If set, Bash uses its value as the name of a directory in which Bash creates temporary files for the shell’s use. UID The numeric real user id of the current user. This variable is readonly.

Redirections

Shell Arithmetic

Misc.

Resources