Bash

Bash is a Unix shell.

Bash Command Shortcuts

CommandUseExample
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

OperatorUseExample
;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)

Markdown: Detect Broken links

Markdown: Detect Broken links

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

Git Bash

Git Bash

A Bash emulator and terminal for Windows

Broader Topics Related to Bourne Again Shell (Bash)

Shells

Shells

Shells process text based commands

Terminals

Terminals

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

Bourne Again Shell (Bash) Knowledge Graph