FreeBSD pipes and redirection, via @klarainc

Software

Today’s installment of things you already know, unless you don’t comes from Klara Systems:

Redirection in #FreeBSD allows you to save the output from a command to a file or pass it on as the input for another command.

Basic forms of redirection with | for pipes and < and > for I/O of files date back to very early UNIX where the concept was first pioneered.

Pipes and redirection were one of those lightbulb moments I had with *nix, albeit on Red Hat Linux at the time. Years later I accidentally realised I could even use them on DOS, albeit in a more limited capacity.

We take a lot of tooling for granted on these systems, because their use has become second nature. It’s a testament to those forward-thinking engineers.

(I’m sure some shortsighted Linux developer is already looking to extend systemd with redirectd(1) that only accepts JSON or something).

Author bio and support

Me!

Ruben Schade is a technical writer and infrastructure architect in Sydney, Australia who refers to himself in the third person in bios. Hi!

The site is powered by Hugo, FreeBSD, and OpenZFS on OrionVM, everyone’s favourite bespoke cloud infrastructure provider.

If you found this post helpful or entertaining, you can shout me a coffee or send a comment. Thanks ☺️.