Run a command string in a login shell.
Section: Invocation and Help
Run one command and exit
bash
bash
bash -lc 'echo "$SHELL" && pwd'Explanation
Common in CI, Docker, and automation where you need Bash semantics for one command.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Invocation and Help