Bash
Link
https://www.gnu.org/software/bash/
- An sh-compatible [shell](…/UNIX shells/) that incorporates useful features from the Korn shell (ksh) and the C shell (csh)
Resources
- Bash Shell: Take Control of PS1, PS2, PS3, PS4 and PROMPT_COMMAND
Your interaction with Linux Bash shell will become very pleasant, if you use PS1, PS2, PS3, PS4, and PROMPT_COMMAND effectively. PS stands for prompt statement. This article will give you a jumpstart on the Linux command prompt environment variables using simple examples.
Shortcuts
Shortcut | Function |
---|---|
Ctrl +L | Clear screen |
Ctrl +R | Start or continue a search through |
Scripting
![[How To Automate Your Dev Setup#^e00c9b]]
if ! command >/dev/null 2>&1; then ... fi
:- If
command
(run without output) returns an exit code greater than 0, then …
- If
if
statements
![[Bash Scripting for Beginners - Complete Guide to Getting Started - If Statements (Part 5)#Notes]]