What is bash?

The bash shell is powerful software for Linux, Unix, and other systems. It comes as a standard part of most Linux distributions ("distros") and most Unix systems. You can even get versions that will run on MS-Windows systems (see cygwin). It is the "command line interpreter" that you get when you bring up a terminal window like Terminal or Konsole.

Who is This Book For?

Ideal for new and experienced users alike—including proficient Windows users and sysadmins—this updated second edition helps you solve a wide range of problems. You’ll learn ways to handle input/output, file manipulation, program execution, administrative tasks, and many other challenges. Each recipe includes one or more scripting examples and a discussion of why the solution works.

What's Inside

You’ll find recipes for problems including:

  • Standard output and input, and executing commands

  • Shell variables, shell logic, and arithmetic

  • Intermediate shell tools and advanced scripting

  • Searching for files with find, locate, and slocate

  • Working with dates and times

  • Creating shell scripts for various end-user tasks

  • Working with tasks that require parsing

  • Writing secure shell scripts

  • Configuring and customizing bash

For system administrators, programmers, and end users, shell commands or a carefully crafted shell script can save you time and effort, or facilitate consistency and repeatability for a variety of common tasks. This cookbook provides more than 300 practical recipes for using bash, the popular Unix shell that enables you to harness and customize the power of any Unix or Linux system.

bashcookbook.PNG

AUTHORS

Carl Albing
LinkedIn

Carl Albing is currently an Assoc. Professor of Computer Sciene at Bethel University, Shoreview, MN. He recently spent two years as a Research Professor in the Data Science and Analytics Group at the Naval Postgraduate School. Prior to that he was a Distinguished Visiting Professor in the Department of Computer Science at the U.S. Naval Academy where he taught courses on Programming Languages and Compilers, on High Performance Computing and on Advanced Shell programming. Before entering academia he was writing software for some of the biggest and fastest computers in the world as a software engineer for Cray Inc. (now a part of HP Enterprise)

jp_vossen.jpg
JP Vossen
LinkedIn

JP Vossen has been working with computers since the early 80s and has been in the IT industry since the early 90s, specializing in Information Security since the late 90s. He's been fascinated with scripting and automation since he first understood what an autoexec.bat was, and was delighted to discover the power and flexibility of bash and GNU on Linux in the mid-90s. He has previously written for Information Security Magazine and SearchSecurity.com, among others. On those few occasion when he's not in front of a computer, he is usually taking something apart, putting something together, or both.

bash Cookbook

REVIEWS

Has to be a must-purchase for anyone remotely interested in using the bash shell. Buy this and learn a lot!

Rating 10/10

4.3/5.0

Linux Format Magazine

cover_small.png

Want to dive deeper into the command line? In Cybersecurity Ops with bash you can Learn to leverage the command line to enhance your capabilities as a security practitioner or penetration tester.