Bash Cheat Sheet/Start login shell

Start Bash as a login shell.

Section: Invocation and Help

Start login shell

bash
bash
bash -l
Explanation

Loads login startup files such as /etc/profile and ~/.bash_profile depending on system configuration.

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
Start clean interactive shell
Start Bash without profile or rc files.
OpenIn sheetbashsame section
Show Bash version
Print installed Bash version.
OpenIn sheetbashsame section
Run one command and exit
Run a command string in a login shell.
OpenIn sheetbashsame section
Check script syntax
Parse a script without executing it.
OpenIn sheetbashsame section
Run with execution trace
Print commands as they execute.
OpenIn sheetbashsame section
Print previous exit status
Show exit status of previous command.