bash

mussh-run-commands-on-multiple-hosts

2022/03/06

mussh allows you to run command/commands on multiple hosts at the same time. If you have farm of server setup with passwordless ssh or with same password (which is generally the case), then using …

virt-install with cloud-init

2022/02/09

If you have not heard about cloud-init then you should definately search for it and learn about cloud-config as well. You can find the documentation for cloud-config here. It is used for configuring …

Stay safe from phising

2022/02/05

Generally when you get a phising mail, the biggest challenge is finding if the site is genuine or not. And URL shortening services do not make it any easy. Earlier I had posted about using curl to …

Curl to exapnd short url

2022/01/09

Many times I receive short urls in mail and other places like chats and messages. I first like to see the destination before I click on the url. I was looking for some way to do this in bash. I …

Sleep infinitely in bash

2021/12/19

I am sure that you would have got a lot of instances where you have wanted to sleep for infinity and ended up doing this […] 1 2 3 4 while [[ 1 ]] do sleep 3600 done or some other such similar …

Ignore case when completing file names in bash

2021/12/11

Sometimes you don’t want to have the bash completion work with case completion. There could be several reasons like one I dont like is the default xdg folders starting with capital letters. So, …

Warn when battery is low

2020/08/30

I am very lazy to look at battery status and want to be warned when the battery is low. This means that even if I am away from the laptop, I can be warned that laptop is about to poweroff due to …

Some good find alias.

2020/08/23

Here are some interesting alias’s that you may want to add to your bashrc file or where-ever else you add your aliase’s. Very useful if you use find commonly. There are four aliases …

Books menu with bash

2020/08/16

If you have a folder full of ebooks in various formats and not necessarily one sigle format and you want to have a quick menu to browse though your collection without requiring to open a File Manager …

scripting – performance improvement with file open

2020/04/20

Sometimes just one line of code can make all the difference. I will show you with example. Here is script with 2 functions. Both are writing some lines of text to a file. First function, “a” I have …

Get the git url of current repo in clipboard

2019/12/30

Lot of times, I just want to copy the git url to clipboard. This is so common in my flow of work that I created an alias for it. Here it is:


This website uses cookies to ensure you get the best experience on our website. Learn more Got it