Learn Bash with this book of puzzles

'Bash it out' covers basic, medium, and advanced Bash scripting using 16 puzzles.
136 readers like this.
Puzzle pieces coming together to form a computer screen

Opensource.com

Computers are both my hobby and my profession. I have about 10 of them scattered around my apartment, all running Linux (including my Macs). Since I enjoy upgrading my computers and my computer skills, when I came across Bash it out by Sylvain Leroux, I jumped on the chance to buy it. I use the command line a lot on Debian Linux, and it seemed like a great opportunity to expand my Bash knowledge. I smiled when the author explained in the preface that he uses Debian Linux, which is one of my two favorite distributions.

Bash lets you automate tasks, so it's a labor-saving, interesting, and useful tool. Before reading the book, I already had a fair amount of experience with Bash on Unix and Linux. I'm not an expert, in part because the scripting language is so extensive and powerful. I first became intrigued with Bash when I saw it on the welcome screen of EndeavourOS, an Arch-based Linux distribution.

The following screenshots show some options from EndeavourOS. Beleieve it or not, these panels just point to Bash scripts, each of which accomplish some relatively complex tasks. And because it's all open source, I can modify any of these scripts if I want.

EndeavourOS after install

EndeavourOS install apps

Always something to learn

My impressions of this book are very favorable. It's not long, but it is well-thought-out. The author has very extensive knowledge of Bash and an uncanny ability to explain how to use it. The book covers basic, medium, and advanced Bash scripting using 16 puzzles, which he calls "challenges." This taught me to see Bash scripting as a programming puzzle to solve, which makes it more interesting to play with.

An exciting aspect of Bash is that it's deeply integrated with the Linux system. While part of its power lies in its syntax, it's also powerful because it has access to so much. You can script repetitive tasks, or tasks that are easy but you're just tired of performing manually. Nothing is too great or too small, and Bash it out helps you understand both what you can do, and how to achieve it.

This review would not be complete if I didn't mention David Both's free resource A sysadmin's guide to Bash scripting on Opensource.com. This 17-page PDF guide is different from Bash it out, but together they make a winning combination for anyone who wants to learn about it.

I am not a computer programmer, but Bash it out has increased my desire to get into more advanced levels of Bash scripting—I might inadvertently end up as a computer programmer without planning to.

One reason I love Linux is because of how powerful and versatile the operating system is. However much I know about Linux, there is always something new to learn that makes me appreciate Linux even more.

In a competitive and ever-changing job market, it behooves all of us to continuously update our skills. This book helped me learn Bash in a very hands-on way. It almost felt as if the author was in the same room with me, patiently guiding me in my learning.

The author, Leroux, has an uncanny ability to engage readers. This is a rare gift that I think is even more valuable than his technical expertise. In fact, I am writing this book review to thank the author for anticipating my own learning needs; although we have never met, I have benefited in real ways from his gifts.

What to read next
Tags
User profile image.
I have 31+ experience in personal computers, both hardware and software. My first computer was a Commodore 64 from Commodore Business Machines. Then during High School I worked with a Tandy TRS-1080 system. Learned Lotus 1-2-3 in my senior year.

6 Comments

Hey, I am relatively new to Linux (done some Raspberry Pi projects in Raspbian but not much else). I got this article recommended on my phone and read about it. I researched the book and saw it was published in 2017. Would you say this is still relevant today or has Bash been updated and it is no longer the best book to pick up for learning it?

This book is more of a puzzle solver, it is with on-hands approach, to challenge your knowledge, this is why is different from others. So you can learn, as you solver the challenges.

In reply to by Ivo Simeonov (not verified)

Can you tell us where we can actually find this Endeavour setup script ? It could give us some insight to how create those dialog boxes under BASH. I can imagine some very useful applications of such functionailty.

Hi, my first command line experience to solve a real problem was with powershell in windows and since then I always had interest for command line. It gives you some cool hidden abilities to the average user. I just didn't like the powershell syntax...
Later on I made a silly mistake which gave me a lot of experience, I installed a server version on a raspberry pi like device. At the beginning it was really hard not knowing exactly what tools to use but the payoff was amazing!
Ever since I've been eager to learn new bash skills and this article has helped me find the direction I was looking for to continue my journey. Thank you for that!!
PS: About the many computers, without realizing, I already have 4 of them running linux so I can see where I'm going with this. xD

We both have that in common. I love interfacing with the command line as well. And when I was first introduced to Linux back in 1995, I made a lot of mistakes during and post install but this is where we I have gained the experience. You very welcome. To me Linux is a learning and enjoyable "experience" and it never gets boring! Linux on!

In reply to by Tiago Avila

Creative Commons LicenseThis work is licensed under a Creative Commons Attribution-Share Alike 4.0 International License.