Get to your ebooks quickly
To begin with, here is screenshot of how it would look like finally:
Monitor progress of coreutils commad like mv, cp etc
You can use command called “progress”. Other option is “pv” but that is little complicated so here is simpler option.
Progress – A Tiny Tool to Monitor Progress for (cp, mv, dd, tar, etc.) Commands in Linux
To install, you can do the following:
dnf install progress
Whenever a system/server is re-installed or the host key changed for any reason, you would have seen the “host key verification failed”. And as usual you would have to go to known_hosts file and delete the offending key. I will show you 2 simple ways to do this here.
The output that you get in such scenario is:
Offending ECDSA key in ~/.ssh/known_hosts:4
First, you can use sed to directly delete the offending key with a command like this :
Continue readingHere is link to a very nice and definitive guide to DNS. Very detailed and useful. There is a pdf version as well to download 🙂
https://webhostinggeeks.com/guides/dns/
Thanks to Andrijana Nikolic for providing a valuable resource to share with you all.
Some very nice articles and tutorials on Linux, find here. Pretty nice collection.
Recently I encountered a problem where I had to create couple of arrays in bash and these were quite dynamic in nature. This script was supposed to be used by couple of guys whom I did not trust too much in opening the script and modifyikng the array. So, the solution was to put these in different files and then put them in array using bash script itself. This is when I went through the bash man page again and found an interesting new inbuilt mapfile
Continue readingSometimes, some small things that we don’t actually think can be useful are such useful. I faced this couple of days back when I was working on something and the amount of logs getting generated and the files getting rotated was too fast. If I had to use this for sometime, I needed some script, application or something to make sure that the logs are zipped every few seconds. Finding an application for this would take time and what good is bash if we need to find applications for this. So, a simple bash command did the trick. Most of us would know this but applying it and using it at the right time, was what saved my life. Thanks to bash. Here is the command:
Continue reading