Skip to main content

LHB Linux Digest #26.12: Demystifying diff, Process Substitution, History Trick, and More

Keep on Linux-ing :)

Β· By Abhishek Prakash Β· 4 min read

Warp Terminal

Last week, we revealed the Free Tmux course. I am also working on creating roadmaps so that members can follow a dedicated learning path with all the resources we have created in the last 8 years.

Next week, we should have the GitOps course, focusing on ArgoCD. This will build upon the foundation of the Git basics course.

Essential Linux concept: diff

All that Git talk actually rests on a very old, very simple Linux idea. You compare two versions of something, and then you act on the difference.

That's exactly what the diff command does. You give it two files, and it tells you what you'd need to change in one to make it match the other. It's the same mental model your version control uses under the hood.

The output looks cryptic the first time you meet it, with things like 2c2, 3a4 and 5d5. Once you learn to read it, it makes complete sense. We explain the output line by line in this guide.

Here's the part most of us forget: diff isn't limited to single files. With diff -r you can compare two entire directories and spot exactly how two config folders drifted apart. And if you find yourself creating temporary files just to compare two command outputs, process substitution lets you do it in one line: diff <(command1) <(command2).

πŸ’‘Quick terminal tip

Using history expansions like !$ (last argument) or !! (entire previous command) can feel like a gamble when running destructive operations. You only see what it resolved to after you have pressed the Enter key.

Bind Readline's magic-space to expand history references instantly as soon as you press the Spacebar:

Open the ~/.inputrc file and add the following line at the end.

Space: magic-space

Restart the terminal session.

When you type sudo !! or rm -rf !$ and hit Space, the shell immediately replaces the tokens with the full command string right in front of your eyes. You can review, edit, or back out before executing, eliminating both keystrokes and blind execution risk.

πŸ› οΈ Tool discovery

Let's see if you find your next favorite tool.

Monoscope: Open-Source Observability and Trace Aggregator for Distributed Microservices

Monoscope is an open-source observability engine tailored for developers needing unified log, metric, and distributed trace visibility across local containers and multi-service staging environments.

GitHub - monoscope-tech/monoscope: Monoscope lets you ingest and explore your logs, traces and metrics. We store these in S3 compatible buckets. Query in natural language via LLMs.
Monoscope lets you ingest and explore your logs, traces and metrics. We store these in S3 compatible buckets. Query in natural language via LLMs. - monoscope-tech/monoscope

Colanode: Open-Source, Local-First Collaboration Workspace

Colanode is an open-source, local-first collaboration platform designed to unify documents, structured databases, real-time chat, and file management under a self-hosted architecture.

GitHub - colanode/colanode: Open-source and local-first Slack and Notion alternative that puts you in control of your data
Open-source and local-first Slack and Notion alternative that puts you in control of your data - colanode/colanode

πŸ“£ Event alert

AGNTCon + MCPCon Europe is happening in Amsterdam on 17–18 September, and if you're building anything in the agentic AI or MCP space, this is the event to attend.

The event is full of open source maintainers, enterprise engineers, infra and tooling folks, and researchers.

You'll bump into the people building MCP itself, alongside teams from AWS, Google, Hugging Face, Microsoft, Anthropic, Solo.io, and a long list of startups exploring Agentic AI.

You can knock off your ticket prices with code ITSFOSS_50.

πŸ—“ 17–18 September
πŸ“ RAI Amsterdam

πŸ“° Linux news that matters

πŸ˜‚ Geek humor

πŸ’Œ Keep on loving Linux Handbook

GitOps course is nearly ready. It should arrive next week.

Perfect time to become a Pro member and enjoy unlimited access to our eBooks, courses and in-depth tutorials.

Missed the previous editions?Β You canΒ access the newsletter archives.

You may also contribute to Linux Handbook and share your experience and expertise with the community.

I like reading your messages, so just hit the reply button and share your thoughts πŸ˜„

About the author

Abhishek Prakash Abhishek Prakash
Updated on Sep 11, 2026