A platform combines multiple tutorials, projects, documentations, questions and answers for developers
  • Home (current)
  • Documentations
  • About
  • Login
  1. Home
  2. Documentations
  3. Bash
  4. Interactive Shells

Interactive Shells

What is an Interactive Shell? What determines whether a shell is Interactive.
Is this Shell Interactive? How to tell if a shell is interactive.
Interactive Shell Behavior What changes in a interactive shell?

Copyright © 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
Licensed under the GNU Free Documentation License.
https://www.gnu.org/software/bash/manual/html_node/Interactive-Shells.html

Functions
abort (C-g)
accept-line (Newline or Return)
alias-expand-line ()
backward-char (C-b)
backward-delete-char (Rubout)
backward-kill-line (C-x Rubout)
backward-kill-word (M-DEL)
backward-word (M-b)
beginning-of-history (M-<)
beginning-of-line (C-a)
bracketed-paste-begin ()
call-last-kbd-macro (C-x e)
capitalize-word (M-c)
character-search (C-])
character-search-backward (M-C-])
clear-display (M-C-l)
clear-screen (C-l)
complete (TAB)
complete-command (M-!)
complete-filename (M-/)
complete-hostname (M-@)
complete-into-braces (M-{)
complete-username (M-~)
complete-variable (M-$)
copy-backward-word ()
copy-forward-word ()
copy-region-as-kill ()
dabbrev-expand ()
delete-char (C-d)
delete-char-or-list ()
delete-horizontal-space ()
digit-argument (M-0, M-1, … M--)
display-shell-version (C-x C-v)
do-lowercase-version (M-A, M-B, M-x, …)
downcase-word (M-l)
dump-functions ()
dump-macros ()
dump-variables ()
dynamic-complete-history (M-TAB)
edit-and-execute-command (C-x C-e)
end-kbd-macro (C-x ))
end-of-file (usually C-d)
end-of-history (M->)
end-of-line (C-e)
exchange-point-and-mark (C-x C-x)
forward-backward-delete-char ()
forward-char (C-f)
forward-search-history (C-s)
forward-word (M-f)
glob-complete-word (M-g)
glob-expand-word (C-x *)
glob-list-expansions (C-x g)
history-and-alias-expand-line ()
history-expand-line (M-^)
history-search-backward ()
history-search-forward ()
history-substring-search-backward ()
history-substring-search-forward ()
insert-comment (M-#)
insert-completions (M-*)
insert-last-argument (M-. or M-_)
kill-line (C-k)
kill-region ()
kill-whole-line ()
kill-word (M-d)
magic-space ()
menu-complete ()
menu-complete-backward ()
next-history (C-n)
next-screen-line ()
non-incremental-forward-search-history (M-n)
non-incremental-reverse-search-history (M-p)
operate-and-get-next (C-o)
overwrite-mode ()
possible-command-completions (C-x !)
possible-completions (M-?)
possible-filename-completions (C-x /)
possible-hostname-completions (C-x @)
possible-username-completions (C-x ~)
possible-variable-completions (C-x $)
prefix-meta (ESC)
previous-history (C-p)
previous-screen-line ()
print-last-kbd-macro ()
quoted-insert (C-q or C-v)
re-read-init-file (C-x C-r)
redraw-current-line ()
reverse-search-history (C-r)
revert-line (M-r)
self-insert (a, b, A, 1, !, …)
set-mark (C-@)
shell-backward-kill-word ()
shell-backward-word (M-C-b)
shell-expand-line (M-C-e)
shell-forward-word (M-C-f)
shell-kill-word (M-C-d)
shell-transpose-words (M-C-t)
skip-csi-sequence ()
start-kbd-macro (C-x ()
tilde-expand (M-&)
transpose-chars (C-t)
transpose-words (M-t)
undo (C-_ or C-x C-u)
universal-argument ()
unix-filename-rubout ()
unix-line-discard (C-u)
unix-word-rubout (C-w)
upcase-word (M-u)
yank (C-y)
yank-last-arg (M-. or M-_)
yank-nth-arg (M-C-y)
yank-pop (M-y)
Manual
A Programmable Completion Example
ANSI-C Quoting
Aliases
Arithmetic Expansion
Arrays
Bash Builtin Commands
Bash Conditional Expressions
Bash Features
Bash History Builtins
Bash History Facilities
Bash POSIX Mode
Bash Startup Files
Bash Variables
Basic Installation
Basic Shell Features
Bindable Readline Commands
Bourne Shell Builtins
Bourne Shell Variables
Brace Expansion
Command Execution Environment
Command Line Editing
Command Search and Execution
Command Substitution
Commands For Changing Text
Commands For Manipulating The History
Commands For Moving
Comments
Compilers and Options
Compiling For Multiple Architectures
Compound Commands
Conditional Constructs
Conditional Init Constructs
Controlling the Prompt
Coprocesses
Definitions
Directory Stack Builtins
Double Quotes
Environment
Escape Character
Event Designators
Executing Commands
Exit Status
Filename Expansion
GNU Parallel
Grouping Commands
History Expansion
Installation Names
Installing Bash
Interactive Shell Behavior
Interactive Shells
Introduction
Introduction to Line Editing
Invoking Bash
Is this Shell Interactive?
Job Control
Job Control Basics
Job Control Builtins
Job Control Variables
Keyboard Macros
Killing And Yanking
Letting Readline Type For You
Lists of Commands
Locale-Specific Translation
Looping Constructs
Modifiers
Modifying Shell Behavior
Operation Controls
Optional Features
Pattern Matching
Pipelines
Positional Parameters
Process Substitution
Programmable Completion
Programmable Completion Builtins
Quote Removal
Quoting
Readline Arguments
Readline Bare Essentials
Readline Init File
Readline Init File Syntax
Readline Interaction
Readline Killing Commands
Readline Movement Commands
Readline vi Mode
Redirections
Reserved Words
Sample Init File
Searching for Commands in the History
Sharing Defaults
Shell Arithmetic
Shell Builtin Commands
Shell Commands
Shell Compatibility Mode
Shell Expansions
Shell Functions
Shell Operation
Shell Parameter Expansion
Shell Parameters
Shell Scripts
Shell Syntax
Shell Variables
Signals
Simple Command Expansion
Simple Commands
Single Quotes
Some Miscellaneous Commands
Special Builtins
Special Parameters
Specifying Numeric Arguments
Specifying the System Type
The Directory Stack
The Restricted Shell
The Set Builtin
The Shopt Builtin
Tilde Expansion
Using History Interactively
What is Bash?
What is a shell?
What is an Interactive Shell?
Word Designators
Word Splitting
Manual: Appendices
Appendix A Reporting Bugs
Appendix B Major Differences From The Bourne Shell
Appendix C GNU Free Documentation License
Appendix D Indexes
Manual: Indexes
Concept Index
Function Index
Index of Shell Builtin Commands
Index of Shell Reserved Words
Parameter and Variable Index
Reserved Words
!
Parameters and Variables
0
$0
$_
BASH
BASHOPTS
BASHPID
BASH_ALIASES
BASH_ARGC
BASH_ARGV
BASH_ARGV0
BASH_CMDS
BASH_COMMAND
BASH_COMPAT
BASH_ENV
BASH_EXECUTION_STRING
BASH_LINENO
BASH_LOADABLES_PATH
BASH_REMATCH
BASH_SOURCE
BASH_SUBSHELL
BASH_VERSINFO
BASH_VERSION
BASH_XTRACEFD
CDPATH
CHILD_MAX
COLUMNS
COMPREPLY
COMP_CWORD
COMP_KEY
COMP_LINE
COMP_POINT
COMP_TYPE
COMP_WORDBREAKS
COMP_WORDS
COPROC
DIRSTACK
EMACS
ENV
EPOCHREALTIME
EPOCHSECONDS
EUID
EXECIGNORE
FCEDIT
FIGNORE
FUNCNAME
FUNCNEST
GLOBIGNORE
GROUPS
HISTCMD
HISTCONTROL
HISTFILE
HISTFILESIZE
HISTIGNORE
HISTSIZE
HISTTIMEFORMAT
HOME
HOSTFILE
HOSTNAME
HOSTTYPE
IFS
IGNOREEOF
INPUTRC
INSIDE_EMACS
LANG
LC_ALL
LC_COLLATE
LC_CTYPE
LC_MESSAGES
LC_MESSAGES
LC_NUMERIC
LC_TIME
LINENO
LINES
MACHTYPE
MAIL
MAILCHECK
MAILPATH
MAPFILE
OLDPWD
OPTARG
OPTERR
OPTIND
OSTYPE
PATH
PIPESTATUS
POSIXLY_CORRECT
PPID
PROMPT_COMMAND
PROMPT_DIRTRIM
PS0
PS1
PS2
PS3
PS4
PWD
RANDOM
READLINE_LINE
READLINE_MARK
READLINE_POINT
REPLY
SECONDS
SHELL
SHELLOPTS
SHLVL
SRANDOM
TEXTDOMAIN
TEXTDOMAINDIR
TIMEFORMAT
TMOUT
TMPDIR
UID
_
auto_resume
bell-style
bind-tty-special-chars
blink-matching-paren
colored-completion-prefix
colored-stats
comment-begin
completion-display-width
completion-ignore-case
completion-map-case
completion-prefix-display-length
completion-query-items
convert-meta
disable-completion
echo-control-characters
editing-mode
emacs-mode-string
enable-bracketed-paste
enable-keypad
expand-tilde
histchars
history-preserve-point
history-size
horizontal-scroll-mode
input-meta
isearch-terminators
keymap
mark-modified-lines
mark-symlinked-directories
match-hidden-files
menu-complete-display-prefix
meta-flag
output-meta
page-completions
revert-all-at-newline
show-all-if-ambiguous
show-all-if-unmodified
show-mode-in-prompt
skip-completed-text
vi-cmd-mode-string
vi-ins-mode-string
visible-stats
!
#
$
$!
$#
$$
$*
$-
$?
$@
*
-
?
@
Builtin Commands
alias
bg
bind
break
builtin
caller
cd
command
compgen
complete
compopt
continue
declare
dirs
disown
echo
enable
eval
exec
exit
export
fc
fg
getopts
hash
help
history
jobs
kill
let
local
logout
mapfile
popd
printf
pushd
pwd
read
readarray
readonly
return
set
shift
shopt
source
suspend
test
times
trap
type
typeset
ulimit
umask
unalias
unset
wait
.
:
[
case
do
done
elif
else
esac
fi
for
function
if
in
select
then
time
until
while
[[
]]
{
}
Copyright ©2025 TypeError Powered By AnyPost, page cost 86ms.
Privacy Policy