0

February 17, 2015 AT 1:59 pm

An Illustrated Guide to Shell Magic: Standard I/O & Redirection

machines_connected

We’ve been spending some time on Raspberry Pi meta-topics lately, so to speak, building kernels and packaging software for Raspbian Machines, projects which will hopefully make other projects easier. I got a bit distracted from the project of writing guides introducing the Pi’s environment. Here’s the latest, on some basic shell magic:

Now that we’ve covered some basic shell commands, let’s shift focus a little and talk about some of the features that bind those commands together into a useful working environment. In this guide, we’ll cover:

  • standard input and output
  • combining commands with pipes
  • redirecting output to and from files
  • standard error and exit codes

While these may sound like dry topics, it’s here that the command line begins to come into its own as a tool and environment for solving problems. Pull up a terminal and read on!

As ever, feedback on these would be much appreciated.


Check out all the Circuit Playground Episodes! Our new kid’s show and subscribe!

Have an amazing project to share? Join the SHOW-AND-TELL every Wednesday night at 7:30pm ET on Google+ Hangouts.

Join us every Wednesday night at 8pm ET for Ask an Engineer!

Learn resistor values with Mho’s Resistance or get the best electronics calculator for engineers “Circuit Playground”Adafruit’s Apps!


Maker Business — Undercover in an iPhone Factory (video)

Wearables — Go with silicone

Electronics — Shift away from basic arithmetic

Biohacking — Recording and Biohacking a 100 Mile Run

Get the only spam-free daily newsletter about wearables, running a "maker business", electronic tips and more! Subscribe at AdafruitDaily.com !



No Comments

No comments yet.

Sorry, the comment form is closed at this time.