Bash is a Unix shell

Bash Command Shortcuts

historyShow list of previous commandshistory 5 will show last five commands executed
!123Execute command 123 from historysudo !123 will execute command 123 from history with sudo
!!Execute previous commandsudo !! will execute the last command with sudo
&Run command in backgroundhugo serve & will run hugo serve in the background

Bash Command Chains

;Chain commands, despite failuremkdir a; mkdir b will call mkdir b whether mkdir a succeeds or not
&&Chain commands, if successfulmkdir a && mkdir b will call mkdir b only if mkdir a succeeds
||Chain commands, if failuremkdir a || mkdir b will call mkdir b only if mkdir a fails
|Pass command output as input to next commandps -ef | less will use less to scroll through output of pf -es

Deeper Knowledge on Bourne Again Shell (Bash)

Git Bash

A Bash emulator and terminal for Windows

Markdown: Detect Broken links

Use markdown-link-check and Bash to detect broken links

Broader Topics Related to Bourne Again Shell (Bash)


Shells process text based commands


Terminals are text-based applications read and write to a shell

Bourne Again Shell (Bash) Knowledge Graph