0

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.


Join 5,000+ makers on Adafruit’s Discord channels and be part of the community! http://adafru.it/discord

CircuitPython in 2018 – Python on Microcontrollers is here!

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!

Follow Adafruit on Instagram for top secret new products, behinds the scenes and more https://www.instagram.com/adafruit/


Maker Business — A journey through Shenzhen, the electronics manufacturing hub of the world

Wearables — Ice, ice baby

Electronics — Current limiting!

Biohacking — Grindfest 2018

Python for Microcontrollers — CRICKITs are coming!

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.