© Philip Kirkbride 2020
P. KirkbrideBasic Linux Terminal Tips and Trickshttps://doi.org/10.1007/978-1-4842-6035-7_4

4. Scripts and Pipes

Philip Kirkbride1 
(1)
Montreal, QC, Canada
 

Creating Scripts

Once you get familiar with working with files and using various commands, you’ll soon find you want to combine several commands, sometimes creating long sequences that can be somewhat time consuming. We’ll go more in detail later on, but for now it’s good to know this is possible. Creating a list of commands to run one after the other is as easy as writing a grocery list of things you need to buy (once you know the basic steps).

You simply open a text file using any editor (nano was mentioned earlier, but you can even use a desktop text editor if that’s easier ...

Get Basic Linux Terminal Tips and Tricks: Learn to Work Quickly on the Command Line now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.