interactive shell

A shell reading commands from you at a terminal, as opposed to a non-interactive shell running a script.

In more detail

Some features only switch on interactively: aliases, history expansion with the exclamation mark, job control and the prompt. That is why an alias that works at the prompt does nothing inside a script. Startup files differ too: an interactive shell reads your .bashrc and a script does not.

Related terms

Taught in

References