Skip to content

Posts

Git Basics: Unstaging Edits and Reverting a Commit

Before undoing a change, check where it lives: the working file, the staging area, or an existing commit. This exercise preserves your edit when unstaging, then reverses a …

Read more →

October 9, 2026

Git Basics: Staging Files and Making a Commit

Git records project snapshots as commits. The staging area lets you choose what the next snapshot will contain. Start with one file so you can see each step. Run these commands in …

Read more →

October 9, 2026

Git Basics: Reviewing Staged and Unstaged Changes

A file can contain both staged and unstaged edits. Git’s diff commands answer different questions depending on which two versions they compare. Run these commands in Bash with Git …

Read more →

October 9, 2026

Git Basics: Finding Changes in Commit History

Git history helps answer what changed and why. A short commit list gives you an overview; a patch shows the actual edit behind a message. Run these commands in Bash with Git 2.28 …

Read more →

October 9, 2026

Git Basics: Creating a Branch and Merging It

A branch is a movable name for a commit. It lets you develop a change separately, then bring that work into another branch when it is ready. Run these commands in Bash with Git …

Read more →

October 9, 2026

Linux Basics: Writing a Small Bash Script

A shell script saves a sequence of commands in a text file so you can run it again. This example accepts names as arguments and prints one greeting for each name. Use Bash on …

Read more →

October 8, 2026

Linux Basics: Understanding File Permission Bits

Linux files have permission bits for their owner, their group, and everyone else. Practice with a file you create yourself before changing permissions on anything important. Use …

Read more →

October 8, 2026

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