Bash 101

As I look around me I see the command line interface or CLI for shot, being used less than it used to. Few of my class mates (a computer science course, mind you) know how to use a command line, and even fewer use it on a regular basis.

The git course I wrote earlier, actually assumed the reader had some familiarity with the command line, but from feedback I have been receiving, this very often isn’t the case.

The command line was invented to use a computer that only has a terminal. This terminal is a device which only has a keyboard, and device to “print” output to. Back in the good old days, printers and tv screens were often used as output devices. Back then a mouse was still a rodent that should be exterminated if found indoors.

Today this terminal is emulated in the computer. Connected to these emulated terminals are shells. It is the shell that we will be investigating today. Don’t expect this tutorial to go deep into the matter. It should just get you up to speed on the workings of the CLI.

There’s a number of shells out there, but for the ease of investigation we will focus on only one, named the Bourne Again Shell (bash). Bash is default on many Linux distributions, as is it distributed with the Github app for Windows.

Table of content:

  1. Baby steps
  2. Directories
  3. Files
  4. Searching
  5. File exchange
  6. File compression