Bash Scripting


Updated May 15th, 2022

Network Chuck dude

This is a good article here about automating anything you’ve done 5 times

what is bash? A legitimate interface to your computer, and it’s not just for server admins and programmers. It can be your desktop, your word processor, your graphics. Unix shell and command language written by Brian Fox for the GNU Project as a free software replacement for the Bourne shell. First released in 1989, it has been used as the default login shell for most Linux distributions. A version is also available for Windows 10 via the Windows Subsystem for Linux. IMPORTANT : In most Linux systems, the default shell is bash but we can change that to any other shell-like zsh, fish, sh, and any other.

After installing lubuntu the default shell was in fact bash 5.0.17


bash is also a programming language that allows us to write scripts, (automate commands).



VIM is a powerful text editor. Vim is an alternative to EMACS. From the web, “I do everything on vim: take notes, write user stories, my shopping list… i’m so used to it that sometimes i get myself pressing “esc” on other editors when i stop writing.”


Why use a keyboard-based text editor? When you wrtie code all day long your fingers should be glued to the keyboard at all times. Every time you touch the mouse your productivity declines.


Someone once told me “If you did it (or plan to do it) more than 5 times, automate it!”.
I took it very seriously and the more comfortable i felt using vim and bash scripts, the more things i was automating.

Switch between programs in windows: press and hold alt key and then hit tab.

Swith tabs in chrome: On Windows, use Ctrl-Tab to move to the next tab to the right and Ctrl-Shift-Tab to move to the next tab to the left.,next%20tab%20to%20the%20left.

close chrome tab: ctrl + w

Why is BalenaEtcher needed?

Etcher is used for writing image files such as . img, . iso, and zipped folders creating USB flash drives that are bootable. Before its existence, users experienced a hassle in writing images on detachable devices such as SD cards.

What is curl?

Make requests in the terminal. Alternative to postman (which has a gui). Most linux distros will have pre-installed.

does it come with git-bash?

curl –help

works in my windows cmd