Category: Bash

0

Chapter 25: Bash View Start (head)

What does head actually do? (super simple first) head = shows the first part (the “head”) of a file or input. By default: Shows the first 10 lines of a file Very fast –...

0

Chapter 24: Bash View End (tail)

What does tail actually do? (super simple first) tail = shows the last part of a file (or from pipe/input). By default: Shows the last 10 lines of a file Very fast – doesn’t...

0

Chapter 23: Bash Sort Lines (sort)

What does sort actually do? (super simple first) sort reads lines of text (from file or from pipe), sorts them alphabetically/numerically, and prints the sorted result. By default: Sorts lines (whole line) Alphabetical order...

0

Chapter 22: Bash Remove Section (cut)

What does cut actually do? (super simple first) cut = remove sections from each line of files (That’s literally what the man page says!) It cuts out (extracts) only the parts you want from...

0

Chapter 21: Bash Stream Editor (sed)

What is sed? (super simple first) sed = stream editor It’s a tool that reads text line-by-line (from a file or from pipe), makes changes automatically, and prints the result (usually to screen or...

0

Chapter 20: Bash Pattern Scan (awk)

What is awk? (super simple first) awk = named after its creators (Aho, Weinberger, Kernighan) It’s a text processing language built into Linux/Bash for scanning patterns and doing actions on structured text (like CSV,...

0

Chapter 19: Bash Search Text (grep)

What does grep actually do? (super simple first) grep = global regular expression print It searches for text patterns inside files (or from input) and prints the matching lines. Think of it as Ctrl+F...

0

Chapter 18: Text Processing

What is Text Processing? (super simple first) Text processing means doing smart things with written words using a computer. Instead of just reading text like a human, the computer changes, cleans, cuts, counts, understands,...

0

Chapter 17: Bash Alias

What is a Bash alias? (super simple first) An alias is a shortcut name you give to a longer command (or chain of commands). Instead of typing something long and complicated every time, you...

0

Chapter 16: Bash Manual (man)

What is man? (super simple first) man = manual It opens the official built-in documentation (called “man page”) for almost any command, function, file format, or system call in Linux. Think of it as...