Skip to content
← All writing

Field note / 記録

The terminal is a thinking tool

Why small composable commands are useful for more than moving quickly or looking mysterious.

September 10, 2026

3 min read

Linux / Tooling / Learning

The terminal is often described as a faster way to operate a computer. Speed is useful, but it is not the part I find most interesting.

A command makes an intention explicit. Its input is visible, its output can be inspected, and the useful part can usually be composed with another command. That makes the shell a surprisingly good place to think.

Turn a vague task into a pipeline

“Find the largest files changed this week” sounds like one problem. At the command line it becomes several smaller questions: which files changed, how large are they, and how should the results be sorted?

Each stage can be tested independently. When the result is wrong, there is somewhere specific to look. The same decomposition is useful when designing a function, an API, or a background job.

Prefer observable steps

A long command is not automatically clever. If it cannot be explained or safely rerun, it has merely compressed the confusion.

I prefer pipelines where intermediate output can be inspected and dangerous operations are separated from discovery. First list the targets. Then verify them. Only then change anything.

That rhythm of observing, narrowing, verifying, and acting is also a good security habit.

Save the useful questions

Shell history records commands, but notes should record intent. When a command teaches me something, I save the question it answered, the assumptions it made, and one example of its output.

The goal is not to memorise every flag. It is to build a vocabulary for interrogating a system.

Used this way, the terminal is less a collection of shortcuts and more a small laboratory: one where ideas can be made concrete, inspected, combined, and discarded cheaply.