Outils pour utilisateurs

Outils du site


issue209:critique_lit

Ceci est une ancienne révision du document !


Website: https://www.oreilly.com/library/view/efficient-linux-at/9781098113391/ Price: $35 USD Efficient Linux at the Command Line by Daniel J. Barrett Released February 2022 Publisher(s): O'Reilly Media, Inc. ISBN: 9781098113407 Blurb: “Take your Linux skills to the next level! Whether you're a system administrator, software developer, site reliability engineer, or enthusiastic hobbyist, this practical, hands-on book will help you work faster, smarter, and more efficiently. You'll learn how to create and run complex commands that solve real business problems, process and retrieve information, and automate manual tasks. You'll also truly understand what happens behind the shell prompt, so no matter which commands you run, you can be more successful in everyday Linux use and more competitive on the job market.“ We usually cover stuff in FCM that relates to newbies and help them get started with Ubuntu in general. Today, I’m making a slight detour. If you are a newbie, I suggest moving to the next article. This book is squarely aimed at intermediate Linux users. (This does not mean that as a newbie, you should disregard it, simply, get more salted before putting your back to this one.) I had a look at the preview copy of this book last year and I had not realised it had a final release.

I snagged the epub and opened it in MuPDF, I donned my blue light glasses and started reading. It is really times like these I wish I could afford paper books, but alas…. The book assumes you have bash. So if you have zsh, or fish, or whatever, you need to do your own translations. Though the book does say that it is *not an introduction, it does start out with core concepts, but not basic concepts. It is followed by a basic introduction to the shell, variables, environment variables, and so on. The examples are simple and easy to follow on a standard Ubuntu install. We then stop off at the command history and how to interact with it. To be honest, the only time I use it other than the exclamation marks (bang bang) or up arrow, is to look at what someone else had done in the past. How do you use history? Let us know on: misc@fullcirclemagazine.org There is a bit on ‘command line editing’, then we are off to ‘cruising the file system’. There is an overview, and we build on what we learned in the previous chapters, where we use the way we checked for duplicates in another way. I really like this way of learning as it enforces what is fresh in your mind. There is even a nice (for once) explanation of pushd and popd.

Part II in the book is labelled, “next level skills”. It starts off simple, with things like word count, that we use almost every day, and moves into brace expansion. I immediately learned something I did not know. “Square brackets are a pattern matching operator for file names. Curly brace expansion, on the other hand, does not depend on file names in any way. It just evaluates to a list of strings. You can use brace expansion to print file names, but no pattern matching occurs.” Speaking of pattern matching, we get a ‘grep’ deep dive immediately afterwards – more commands when working with text. Again, nothing you did not know, but stuff you do not use every day (things that you usually look up before attempting). Chapter six takes us into, “Parents, children and environments”. I had a good chuckle with the HALshell example. “I’m sorry Dave, I’m afraid I can’t do that.” This whole chapter takes place within your shell and shell environment. Everything you learn or refresh your memory with here, gets build on again in the next chapter, “More ways to run a command”. This is quite an interesting chapter, where you learn, “all commands are strings, but some are more stringy than others”. Commands as xargs, commands via ssh, all these types of running commands are explained clearly and concisely with ample examples for you. There are more ways to run commands here, than you can count on your fingers.

Chapter eight is that awesome build a bear, erm I mean bash one liner, chapter. It sort-of outro’s with generating test files, which I thought was pretty awesome. We leverage some text files in chapter nine, and it is not just parsing log files, you create simple databases and even a simple password manager. Chapter ten is “Efficiency at the keyboard”. It is just what you expect it to be, yet it still manages to build on the previous chapters. Chapter eleven is labelled “Time savers”. I learned how to use ‘make’ for non-programming tasks! The final part of the book is basically a Linux command refresher, with references conveniently linked. This is a really awesome book, as usually books covering intermediate subjects are rare. Beginner books and advanced or deep-dive books are plentiful. If you have the means to buy this, I would recommend that you add it to your bookshelf. Otherwise I recommend finding it at your local library and giving it a once over.

issue209/critique_lit.1727848023.txt.gz · Dernière modification : 2024/10/02 07:47 de d52fr