© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
D. BothUsing and Administering Linux: Volume 2https://doi.org/10.1007/978-1-4842-9615-8_28

28. Command-Line Programming

David Both1  
(1)
Raleigh, NC, USA
 

Objectives

In this chapter you will learn
  • A definition for command-line programs

  • To create Bash command-line programs

  • To use logical comparisons to alter the execution path of command-line programs

  • To use “for” loops to iterate over a code segment of a specified list of items

  • To use “while” and “until” to loop over a portion of code a specified number of times

Introduction

We have already used command-line programs in earlier chapters of this course. Those were all fairly simple and straightforward ...

Get Using and Administering Linux: Volume 2: Zero to SysAdmin: Advanced Topics 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.