|Bash-Oneliner and GameShell Teach Unix Command Line|
|Written by Nikos Vaggalis|
|Friday, 10 June 2022|
Two great resources, one for beginners and one for intermediate users, for learning the Unix, well, Linux shell.
Many wanted the command line bashed (pun intended), deprecated or replaced by something else. Still it has never gone away and never will, especially now that it has infiltrated even Windows through WSL.
In "The PaSh Project - Advancing the Unix Philosophy One Step Further" I found that:
I remember the time when the saying was "Learn Perl so you don't have to learn the Shell and its hundreds of utilities".
This is due of course to the timeless Unix philosophy; taking simple, high quality, components and combining them together in smart ways to obtain a complex result. Of course, the Linux cli is not easy to master therefore any helpis very welcome. On that matter, last month I presented Dash Dash, a new website that aims to prettify the ugly that is the Man Pages making the exploration of the cli a much healthier proposition.
This month two new items are added to this category of helpful resources. Lets' start with the more straightforward one aimed at total beginners, Gameshell, a "game" to teach the Unix shell.
GameShell was devised as a tool to help students at the Université Savoie Mont Blanc to engage with a real shell in a way that encourages learning while also having fun. It is like an old text adventure RPG where instead of commands like 'get', 'talk', 'fight' you have 'cd', 'ls' or 'pwd' ! Of course, as you progress, you get more deep into the commands.
The oxymoron is that Gameshell requires writing shell commands in order to install it. Fear not though as it is as simple as loading
and then the game itself:
finally running it with:
The next resource is the Bash-Oneliner, "a collection of handy Bash One-Liners and terminal tricks for data processing and Linux system maintenance". The idea of running such a collection was conceived while the author was working in the field of bioinformatics, and, in agreement with the Unix philosophy aspect that we've detailed in the Pash article, found that she was:
amazed by those single-word bash commands which are much faster than my dull scripts, time saved through learning command-line shortcuts and scripting.
so much that she's put an effort to collect them into one huge cheat-sheet. Of course it ended up getting split into sections:
There's really something for everyone in there.
For instance, in the Terminal tricks section we find how to use the Ctrl keys combination in order to move around:
Under the Variable heading, we learn how variable substitution works:
Of course, Grep hints are very useful :
followed by Sed, Awk, Xargs and so on.
This cheat-sheet however is addressed at intermediate users who need an at-a-glancequick reference. If you are a beginner then it is strongly recommended to start with Gameshell. Bash-Oneliner can wait...
or email your comment to: firstname.lastname@example.org
|Last Updated ( Friday, 10 June 2022 )|