Skip to main content

Bash Shell

Cheat Sheet

Disk Usage utility

df - File System Disk Usage The command df reports the total disk usage on the mounted file syst...

Difference between single (' ') quote vs double (" ") quote

Single Quote Using single quote in bash script will preserve the literal value of each character...

Backslash Escapes

See link for valid information. This page is outdated. When you are working with special charact...

find glob expansion

When using regular expression in find, you have to quote the name parameter to prevent glob expan...

Echo Clear Previous Line

The escape string \033[0K will clear the entire line, this string are cross-platform so it will w...

Diff Command Line Tool

https://www.computerhope.com/unix/udiff.htm#How%20diff%20Works

grep, awk, sed family tool

Grep Global Regular Expression Pattern With grep you can do simple text-based or regular expres...

Command substitution vs Process substitution

https://unix.stackexchange.com/a/393352

tr and cut command

tr The tr command is used to translate or delete characters that comes from the standard input. ...

Quoting and Not Quoting Arguments

Word splitting Bash shell and zsh shell will scan results of Parameter expansion: $PATH Comm...

How does Program Execute in Linux

The shell forks itself then exec to replace the child with the program that we would like to run....