Skip to content

Posts

Linux Basics: Replacing Text with sed

sed can change text as it reads a file and write the result to the terminal. Start by previewing a replacement, then save it to a different file when the result looks right. Use …

Read more →

October 8, 2026

Linux Basics: Quoting Text and Matching Filenames

Quotes control what Bash treats as one argument. Filename patterns let the shell select several files at once. Knowing the difference helps avoid surprises when names contain …

Read more →

October 8, 2026

Linux Basics: Filtering and Totaling Fields with awk

awk is useful when you want to select records by a field value or calculate a total. It reads one record at a time, usually one line, and splits that record into fields. Use Bash …

Read more →

October 8, 2026

Linux Basics: Using Bash Exit Status

A command reports an exit status separately from the text it prints. In Bash on Debian and Ubuntu, zero normally means success and a nonzero value signals another outcome. Checking …

Read more →

October 6, 2026

Linux Basics: Sorting and Counting Text Lines

A list becomes easier to inspect when repeated entries are grouped and counted. Debian and Ubuntu include sort, uniq, and wc for this work. They read ordinary text files without …

Read more →

October 6, 2026

Linux Basics: Selecting Text Fields with cut

When each line contains fields separated by the same character, cut can extract just the columns you need. It is useful for simple lists and tab-separated data on Debian and …

Read more →

October 6, 2026

Linux Basics: Inspecting Network Addresses and Ports

Inspect the network configuration before changing settings. Debian and Ubuntu provide ip and ss through the iproute2 package. These read-only commands normally work without sudo. …

Read more →

October 6, 2026

Linux Basics: Checking File Integrity with SHA-256

A checksum is a value calculated from a file’s bytes. On Debian and Ubuntu, sha256sum can record that value and check whether the file still matches it later. This is useful after …

Read more →

October 6, 2026

Linux Basics: Reusing Bash Command History

Bash can remember commands entered in an interactive terminal. History helps you reuse an earlier command. These examples assume Bash on Debian or Ubuntu with history enabled. List …

Read more →

October 6, 2026

Linux Basics: Getting Help for Commands

You do not need to memorize every Linux command option. Debian and Ubuntu include several ways to ask a program or the shell for help. These examples assume you are using Bash. …

Read more →

October 6, 2026