invocation-option

bash -i

Force interactive mode. Run only in a fresh private terminal; actual terminal interaction not tested.

Formal Syntax & Structure

bash syntaxbash
bash --noprofile --norc -i

Return Value

context-dependent

Force interactive mode. Run only in a fresh private terminal; actual terminal interaction not tested.

Working Example

Example Snippetbash
env -i PATH=/usr/bin:/bin HOME="$PWD" HISTFILE=/dev/null INPUTRC=/dev/null TERM=dumb /bin/bash --noprofile --norc -i
Bash Reference