
table of contents
table of contents
table of contents
table of contents
| Options: (extentry) | X != "" | (*) X == "" |
|---|---|---|
| Bash 1.4.14 | export PROMPT_COMMANDS=X | unset PROMPT_COMMANDS |
| Bash 2.0 | export PROMPT_COMMANDS=X | unset PROMPT_COMMANDS |
| (*) is default |
table of contents
| Options: (checkbox) | off | on |
|---|---|---|
| Bash 1.4.14 | n/a | n/a |
| Bash 2.0 | shopt -u promptvars | shopt -s promptvars |
table of contents
| Options: (fillout) | |
|---|---|
| Bash 1.4.14 | export PS1=X |
| Bash 2.0 | export PS1=X |
table of contents
| Options: (fillout) | |
|---|---|
| Bash 1.4.14 | export PS2=X |
| Bash 2.0 | export PS2=X |
table of contents
| Options: (fillout) | |
|---|---|
| Bash 1.4.14 | export PS3=X |
| Bash 2.0 | export PS3=X |
table of contents
| Options: (fillout) | |
|---|---|
| Bash 1.4.14 | export PS4=X |
| Bash 2.0 | export PS4=X |
table of contents
| Options: (extentry) | |
|---|---|
| Bash 1.4.14 | alias name=command(s) |
| Bash 2.0 | alias name=command(s) |
table of contents
| Options: (filedirbrowser) | X != "~/.bash_history" | (*) X == "~/.bash_history" |
|---|---|---|
| Bash 1.4.14 | export HISTFILE=X | |
| Bash 2.0 | export HISTFILE=X | |
| (*) is default | ||
table of contents
| Options: (checkbox) | off | on |
|---|---|---|
| Bash 1.4.14 | n/a | n/a |
| Bash 2.0 | shopt -u histappend | shopt -s histappend |
table of contents
| Options: (menu) | (*) none | prepending spaces | duplicate of previous | both |
|---|---|---|---|---|
| Bash 1.14.4 | unset HC | export HC=ignorespace | export HC=ignoredups | export HC=ignoreboth |
| Bash 2.0 | unset HC | export HC=ignorespace | export HC=ignoredups | export HC=ignoreboth |
| (*) is default HC=HISTCONTROL |
table of contents
| Options: (integer entry) | X != 500 | (*) X == 500 |
|---|---|---|
| Bash 1.14.4 | export HISTSIZE=X | |
| Bash 2.0 | export HISTSIZE=X | |
| (*) is default | ||
table of contents
| Options: (integer entry) | X != 500 | (*) X == 500 |
|---|---|---|
| Bash 1.4.14 | export HISTFILESIZE=X | |
| Bash 2.0 | export HISTFILESIZE=X | |
| (*) is default | ||
table of contents
| Options: (radio) | (*) Use default editor | Use different editor |
|---|---|---|
| Bash 1.14.4 | unset FCEDIT | export FCEDIT=X |
| Bash 2.0 | unset FCEDIT | export FCEDIT=X |
| (*) is default | (X is defined below) | |
table of contents
| Options: (entry) | |
|---|---|
| Bash 1.14.4 | X=/path/editor |
| Bash 2.0 | X=/path/editor |
| (X is used above) | |
table of contents
| Options: (checkbox) | (*) off | on |
|---|---|---|
| Bash 1.14.4 | unset command_oriented_history | export command_oriented_history=on |
| Bash 2.0 | shopt -u cmdhist | shopt -s cmdhist |
| (*) is default | ||
table of contents
| Options: (radio) | (*) semicolon | newline |
|---|---|---|
| Bash 1.14.4 | n/a | n/a |
| Bash 2.0 | shopt -u lithist | shopt -s lithist |
| (*) is default | ||
table of contents
| Options: (checkbox) | (*) off | on |
|---|---|---|
| Bash 1.14.4 | set mark-modified-lines off | set mark-modified-lines on |
| Bash 2.0 | set mark-modified-lines off | set mark-modified-lines on |
| (*) is default. | (written to inputrc file) | (written to inputrc file) |
table of contents
| Options: (checkbox) | (*) off | on |
|---|---|---|
| Bash 1.14.4 | n/a | n/a |
| Bash 2.0 | shopt -u histeedit | shopt -s histeedit |
| (*) is default | ||
table of contents
| ! | Start a history substitution, except when followed by a blank, newline, = or ( |
| !! | Refer to the previous command. This is a synonym for '!-1' |
| !n | Refer to command line n |
| !-n | Refer to the current command line minus n |
| !# | The entire command line typed so far |
| Options: (entry) | X != "!" |
|---|---|
| Bash 1.14.4 | export histchars=Xyz |
| Bash 2.0 | export histchars=Xyz |
| (y and z are defined below) | |
table of contents
| Options: (entry) | X != "^" |
|---|---|
| Bash 1.14.4 | export histchars=xYz |
| Bash 2.0 | export histchars=xYz |
| (x is defined above, z below) | |
table of contents
| Options: (entry) | X != "" |
|---|---|
| Bash 1.14.4 | export histchars=xyZ |
| Bash 2.0 | export histchars=xyZ |
| (x and y are defined above) | |
table of contents
| Options: (radio) | (*) emacs | vi |
|---|---|---|
| Bash 1.14.4 | set -o emacs set editing-mode emacs | set -o vi set editing-mode vi |
| Bash 2.0 | set -o emacs set editing-mode emacs | set -o vi set editing-mode vi |
| (*) is default | (last option saved to inputrc) | (last option saved to inputrc) |
table of contents
| Emacs command | vi command | Meaning |
|---|---|---|
| CTRL-A | 0 | Move to beginning of line |
| CTRL-B | h | Move backward one character |
| CTRL-D | dl or x | Delete one character forward |
| CTRL-E | $ | Move to end of line |
| CTRL-F | l | Move forward one character |
| CTRL-G | Abort the current editing command and ring the terminal bell | |
| CTRL-J | Same as RETURN | |
| CTRL-K | d$ or D | Delete (kill) forward to end of line |
| CTRL-L | CTRL-L | Clear screen and redisplay the line |
| CTRL-M | Same as RETURN | |
| CTRL-N | Next line in command history | |
| CTRL-O | Same as RETURN, then display next line in history file | |
| CTRL-P | Previous line in command history | |
| CTRL-R | N | Search backward |
| CTRL-S | n | Search forward |
| CTRL-T | Transpose two characters | |
| CTRL-U | d0 | Kill backward from point to the beginning of line |
| CTRL-V | Make the next character typed verbatim | |
| CTRL-V TAB | Insert a TAB | |
| CTRL-W | Kill the word behind the cursor, using whitespace as the boundary | |
| CTRL-X / | List the possible filename completions of the current word | |
| CTRL-X ~ | List the possible username completions of the current word | |
| CTRL-X $ | List the possible shell variable completions of the current word | |
| CTRL-X @ | List the possible hostname completions of the current word | |
| CTRL-X ! | List the possible command name completions of the current word | |
| CTRL-X ( | Begin saving characters into the current keyboard macro | |
| CTRL-X ) | Stop saving characters into the current keyboard macro | |
| CTRL-X e | Re-execute the last keyboard macro defined | |
| CTRL-X CTRL-R | Read in the contents of the Readline initialization file | |
| CTRL-X CTRL-V | Display version information on the instance of Bash | |
| CTRL-Y | Retrieve (yank) last item killed | |
| DEL | dh or X | Delete one character backward |
| CTRL-[ | Same as ESC (most keyboards) | |
| ESC b | b | Move one word backward |
| ESC c | Change word after point to all capital letters | |
| ESC d | dw | Delete one word forward |
| ESC f | w | Move one word forward |
| ESC l | ~ | Change word after point to all lowercase letters |
| ESC n | Non-incremental forward search | |
| ESC p | Non-incremental reverse search | |
| ESC r | Undo all the changes made to this line | |
| ESC t | Transpose two words | |
| ESC u | ~ | Change word after point to all uppercase letters |
| ESC CTRL-E | Perform shell alias, history, and word expansion on the line | |
| ESC CTRL-H | db | Delete one word backward |
| ESC CTRL-Y | Insert the first argument to the previous command (usually the second word) at point | |
| ESC DEL | db | Delete one word backward |
| ESC ^ | Perform history expansion on the line | |
| ESC < | Move to first line of history file | |
| ESC > | Move to last line of history file | |
| ESC . | Insert last word in previous command line after point | |
| ESC _ | Same as above | |
| TAB | Attempt filename completion on current word | |
| ESC ? | List the possible completions of the text before point | |
| ESC / | \ | Attempt filename completion on current word |
| ESC ~ | Attempt username completion on current word | |
| ESC $ | Attempt variable completion on current word | |
| ESC @ | Attempt hostname completion on current word | |
| ESC ! | Attempt command name completion on current word | |
| ESC TAB | Attempt completion from text in the command history | |
| ESC ~ | Attempt tilde expansion on the current word | |
| ESC { | Attempt filename completion and return the list to the shell enclosed within braces | |
| W | Move to beginning of next non-blank word | |
| B | Move to beginning of preceding non-blank word | |
| e | Move to end of current word | |
| E | Move to end of current non-blank word | |
| ^ | Move to first non-blank character in line | |
| i | Insert text before current character | |
| a | Insert text after current character | |
| I | Insert text at beginning of line | |
| A | Insert text at end of line | |
| R | Overwrite existing text | |
| dB | Delete one non-blank word backwards | |
| dW | Delete one non-blank word forwards | |
| dd | Equivalent to 0d$ (delete entire line) | |
| C | Equivalent to c$ (delete to end of line, enter input mode) | |
| cc | Equivalent to 0c$ (delete entire line, enter input mode) | |
| k or - | Move backward one line | |
| j or + | Move forward one line | |
| G | Move to line given by repeat count | |
| /string | Search forward for string | |
| ?string | Search backward for string | |
| fx | Move right to next occurrence of x | |
| Fx | Move left to previous occurrence of x | |
| tx | Move right to next occurrence of x, then back one space | |
| Tx | Move left to previous occurrence of x, then forward one space | |
| ; | Redo last character finding command | |
| , | Redo last character firnding command in opposite direction | |
| * | Do wildcard expansion (onto command line) | |
| \= | Do wildcard expansion (as printed list) | |
| \_ | Append last word of previous command, enter input mode | |
| # | Prepend # (comment character) to the line and send it | |
| Options: (menu) | (*) emacs | emacs-stnd. | emacs-meta | emacs-ctlx | vi | vi-move | vi-com. | vi-insert |
|---|---|---|---|---|---|---|---|---|
| Bash 1.14.4 | set keymap emacs | set keymap emacs-standard | set keymap emacs-meta | set keymap emacs-ctlx | set keymap vi | set keymap vi-move | set keymap vi-command | set keymap vi-insert |
| Bash 2.0 | set keymap emacs | set keymap emacs-standard | set keymap emacs-meta | set keymap emacs-ctlx | set keymap vi | set keymap vi-move | set keymap vi-command | set keymap vi-insert |
| (*) is default | saved in inputrc | saved in inputrc | saved in inputrc | saved in inputrc | saved in inputrc | saved in inputrc | saved in inputrc | saved in inputrc |
table of contents
| Options: (checkbox) | (*) off (non-Posix mode) | on (Posix mode) |
|---|---|---|
| bash 1.14.4 | set +o posix | set -o posix |
| bash 2.0 | set +o posix | set -o posix |
| (*) is default | ||
table of contents
| Options: (checkbox) | off (Disallow comments) | (*) on (Allow comments) |
|---|---|---|
| bash 1.14.4 | n/a | n/a |
| bash 2.0 | shopt -u interactive_comments | shopt -s interactive_comments |
| (*) is default | ||
table of contents
| Options: (checkbox) | (*) off (silent) | on (verbose) |
|---|---|---|
| bash 1.14.4 | set +o verbose | set -o verbose |
| bash 2.0 | set +o verbose | set -o verbose |
| (*) is default | ||
table of contents
| Options: (checkbox) | (*) off (no trace) | on (trace) |
|---|---|---|
| bash 1.14.4 | set +o xtrace | set -o xtrace |
| bash 2.0 | set +o xtrace | set -o xtrace |
| (*) is default | ||
table of contents
| Options: (checkbox) | off (no hash table check) | on (check hash table first) |
|---|---|---|
| bash 1.14.4 | n/a | n/a |
| bash 2.0 | shopt -u checkhash | shopt -s checkhash |
table of contents
| Options: (integer entry) | (*) X == 10 | X != 10 |
|---|---|---|
| bash 1.4.14 | set -o ignoreeof | export IGNOREEOF=X |
| bash 2.0 | set -o ignoreeof | export IGNOREEOF=X |
| (*) is default | X is the number of CTRL-d keystrokes to equivalence an "exit" command. | |
table of contents
| Options: (integer entry) | (*) X == 0 | X > 0 |
|---|---|---|
| bash 1.14.4 | unset TMOUT | export TMOUT=X |
| bash 2.0 | unset TMOUT | export TMOUT=X |
| (*) is default | ||
table of contents
| Options: (filedirbrowser) | X != "" |
|---|---|
| Bash 1.14.4 | export EDITOR=X |
| Bash 2.0 | export EDITOR=X |
table of contents
table of contents
| Options: (radio) | (*) ring the bell | list all completions |
|---|---|---|
| Bash 1.14.4 | set show-all-if-ambigous off | set show-all-if-ambigous on |
| Bash 2.0 | set show-all-if-ambigous off | set show-all-if-ambigous on |
| (*) is default | (written to inputrc) | (written to inputrc) |
table of contents
| Options: (integer entry) | X != 100 |
|---|---|
| Bash 1.14.4 | set completions-query-items X |
| Bash 2.0 | set completion-query-items X |
| (100 is default) | (written to inputrc) |
table of contents
| Options: (checkbox) | (*) off | on |
|---|---|---|
| Bash 1.14.4 | set expand-tilde off | set expand-tilde on |
| Bash 2.0 | set expand-tilde off | set expand-tilde on |
| (*) is default | (written to inputrc) | (written to inputrc) |
table of contents
| Options: (entry) | X != "/etc/hosts" | X == "" |
|---|---|---|
| Bash 1.14.4 | export HOSTFILE=X | unset HOSTFILE |
| Bash 2.0 | export HOSTFILE=X | unset HOSTFILE |
| ("/etc/hosts" is default) | ||
table of contents
| Options: (extentry) | |
|---|---|
| Bash 1.14.4 | export FIGNORE=X |
| Bash 2.0 | export FIGNORE=X |
| (X is a colon seperated list) | |
table of contents
| Options: (checkbox) | off (no glob) | (*) on (glob) |
|---|---|---|
| Bash 1.14.4 | set -o noglob | set +o noglob |
| Bash 2.0 | set -o noglob | set +o noglob |
| (*) is default | ||
table of contents
| Options: (checkbox) | (*) off | on |
|---|---|---|
| Bash 1.14.4 | unset allow_null_glob_expansion | export allow_null_glob_expansion=on |
| Bash 2.0 | shopt -u nullglob | shop -s nullglob |
| (*) is default | ||
table of contents
| Options: (checkbox) | (*) off | on |
|---|---|---|
| Bash 1.14.4 | unset glob_dot_filenames | export glob_dot_filenames=on |
| Bash 2.0 | shopt -u dotglob | shopt -s dotglob |
| (*) is default | ||
table of contents
table of contents
| Options: (checkbox) | off | (*) on |
|---|---|---|
| Bash 1.14.4 | set +o monitor | set -o monitor |
| Bash 2.0 | set +o monitor | set -o monitor |
| (*) is default | ||
table of contents
| Options: (menu) | (*) disabled | substring | prefix | exact |
|---|---|---|---|---|
| Bash 1.14.4 | unset a_r | export a_r=substring | export a_r=prefix | export a_r=exact |
| Bash 2.0 | unset a_r | export a_r=substring | export a_r=prefix | export a_r=exact |
| (*) is default (a_r=auto_resume) | (prefix is considered as an arbitrary value) | |||
table of contents
| Options: (radio) | (*) before primary prompt | notify immediately |
|---|---|---|
| Bash 1.14.4 | set +b | set -b |
| Bash 2.0 | set +b | set -b |
| (*) is default | ||
table of contents
table of contents
table of contents
table of contents
table of contents
table of contents
| Options: (integer entry) | X != 60 | X == 0 |
|---|---|---|
| Bash 1.14.4 | export MAILCHECK=X | unset MAILCHECK |
| Bash 2.0 | export MAILCHECK=X | unset MAILCHECK |
| (60 sec. is default) | (Disable mailcheck) | |
table of contents
| Options: (checkbox) | (*) off | on |
|---|---|---|
| Bash 1.14.4 | unset MAIL_WARNING | export MAIL_WARNING=on |
| Bash 2.0 | unset MAIL_WARNING | export MAIL_WARNING=on |
| (*) is default | ||
table of contents
| Options: (extentry) | |
|---|---|
| Bash 1.14.4 | export MAILPATH=X |
| Bash 2.0 | export MAILPATH=X |
| (X is a colon seperated list of /path/file or /path/file?message) | |
table of contents
table of contents
| Options: (integer entry) | X != 80 |
|---|---|
| Bash 1.14.4 | export COLUMNS=X |
| Bash 2.0 | export COLUMNS=X |
| (80 is default) | |
table of contents
| Options: (integer entry) | X != 24 |
|---|---|
| Bash 1.14.4 | export LINES=X |
| Bash 2.0 | export LINES=X |
| (24 is default) | |
table of contents
| Options: (radio) | (*) wrap onto new line | scroll horizontally |
|---|---|---|
| Bash 1.14.4 | set horizontal-scroll-mode off | set horizontal-scroll-mode on |
| Bash 2.0 | set horizontal-scroll-mode off | set horizontal-scroll-mode on |
| (*) is default | (written to inputrc) | (written to inputrc) |
table of contents
| Options: (radio) | none (disabled) | (*) audible | visible |
|---|---|---|---|
| Bash 1.14.4 | set bell-style none | set bell-style audible | set bell-style visible |
| Bash 2.0 | set bell-style none | set bell-style audible | set bell-style visible |
| (*) is default | (written to inputrc) | (written to inputrc) | (written to inputrc) |
table of contents
| Options: (checkbox) | (*) off | on |
|---|---|---|
| Bash 1.14.4 | set meta-flag off | set meta-flag on |
| Bash 2.0 | set meta-flag off | set meta-flag on |
| (*) is default | (written to inputrc) | (written to inputrc) |
table of contents
| Options: (checkbox) | off | (*) on |
|---|---|---|
| Bash 1.14.4 | set convert-meta off | set convert-meta on |
| Bash 2.0 | set convert-meta off | set convert-meta on |
| (*) is default | (written to inputrc) | (written to inputrc) |
table of contents
| Options: (checkbox) | (*) off | on |
|---|---|---|
| Bash 1.14.4 | set output-meta off | set output-meta on |
| Bash 2.0 | set output-meta off | set output-meta on |
| (*) is default | (written to inputrc) | (written to inputrc) |
table of contents
table of contents
table of contents
| Options: (checkbox) | (*) off | on |
|---|---|---|
| Bash 1.14.4 | set +o nounset | set -o nounset |
| Bash 2.0 | set +o nounset | set -o nounset |
| (*) is default | ||
table of contents
| Options: (checkbox) | off | (*) on |
|---|---|---|
| Bash 1.14.4 | unset no_exit_on_failed_exec | export no_exit_on_failed_exec=on |
| Bash 2.0 | shopt -u execfail | shopt -s execfail |
| (*) is default | ||
table of contents
| Options: (checkbox) | (*) off | on |
|---|---|---|
| Bash 1.14.4 | set +o errexit | set -o errexit |
| Bash 2.0 | set +o errexit | set -o errexit |
| (*) is default | ||
table of contents
| Options: (checkbox) | off | on |
|---|---|---|
| Bash 1.14.4 | n/a | n/a |
| Bash 2.0 | shopt -u shift_verbose | shopt -s shift_verbose |
table of contents
table of contents
| Options: (checkbox) | off | on |
|---|---|---|
| Bash 1.14.4 | set +o noclobber | set -o noclobber |
| Bash 2.0 | set +o noclobber | set -o noclobber |
table of contents
| Read | Write | Execute | |
|---|---|---|---|
| User | Read/Read | (over-)Write/Create files | Execute/"cd" to |
| Group | Read/Read | not allowed | Execute/"cd" to |
| Other | Read/Read | not allowed | Execute/"cd" to |
| (file/dir) | (file/dir) | (file/dir) | |
table of contents
| Options: (radio) | (*) logically | physically |
|---|---|---|
| Bash 1.14.4 | set +o physical | set -o physical |
| Bash 2.0 | set +o physical | set -o physical |
| (*) is default | ||
table of contents
| Options: (checkbox) | (*) off | on |
|---|---|---|
| Bash 1.14.4 | unset cdable_vars | export cdable_vars=on |
| Bash 2.0 | shopt -u cdable_vars | shopt -s cdable_vars |
| (*) is default |
table of contents
table of contents
| Options: (extentry) | |
|---|---|
| Bash 1.14.4 | PATH=X; export PATH |
| Bash 2.0 | PATH=X; export PATH |
| (X is a colon seperated list) | |
table of contents
| Options: (extentry) | |
|---|---|
| Bash 1.14.4 | CDPATH=X; export CDPATH |
| Bash 2.0 | CDPATH=X; export CDPATH |
| (X is a colon seperated list) | |
table of contents
| Options: (extentry) | |
|---|---|
| Bash 1.14.4 | MANPATH=X; export MANPATH |
| Bash 2.0 | MANPATH=X; export MANPATH |
| (X is a colon seperated list) | |
table of contents
table of contents
| Options: (entry) | Data segment | Stack segment |
|---|---|---|
| Bash 1.14.4 | ulimit -d X | ulimit -s X |
| Bash 2.0 | ulimit -d X | ulimit -s X |
| (X is either a value or "unlimited") | ||
table of contents
| Options: (entry) | Main memory | Virtual memory |
|---|---|---|
| Bash 1.14.4 | ulimit -m X | ulimit -v X |
| Bash 2.0 | ulimit -m X | ulimit -v X |
| (X is either a value or "unlimited") | ||
table of contents
| Options: (entry) | |
|---|---|
| Bash 1.14.4 | ulimit -f X |
| Bash 2.0 | ulimit -f X |
| (X is either a value or "unlimited") | |
table of contents
| Options: (entry) | |
|---|---|
| Bash 1.14.4 | ulimit -c X |
| Bash 2.0 | ulimit -c X |
| (X is either a value or "unlimited") | |
| Options: (entry) | |
|---|---|
| Bash 1.14.4 | ulimit -n X |
| Bash 2.0 | ulimit -n X |
| (X is either a value or "unlimited") | |
table of contents
| Options: (entry) | |
|---|---|
| Bash 1.14.4 | ulimit -p X |
| Bash 2.0 | ulimit -p X |
| (X is either a value or "unlimited") | |
table of contents
| Options: (entry) | |
|---|---|
| Bash 1.14.4 | ulimit -t X |
| Bash 2.0 | ulimit -t X |
| (X is either a value or "unlimited") | |
table of contents
| Options: (entry) | |
|---|---|
| Bash 1.14.4 | ulimit -u X |
| Bash 2.0 | ulimit -u X |
| (X is either a value or "unlimited") | |
table of contents
table of contents