Disk usage by file type
2015/11/30
Trying to find the total usage for each of the file types by extension, then here is a quick bash function for you : disk_usage_type () { find . -name '*'$1 -ls | awk ' BEGIN{ a[0]="Bytes"; a[1]="KB"; …
terminal, terminal everywhere.
2015/11/23
Tilda is a borderless terminal that can be started multiple times each with its own configuration. […] […] Its super easy to have multiple configurations. Start as many as you want. …
How to verify sha256sum for multiple file or one file.
2015/10/30
So, lets say you have downloaded the SHA256SUMS files. This file contains the sha256sum for multiple files and you want to compare the values for only one or some of them, then the simplest thing you …
Get count of lines in scripts (shell)
2015/10/15
If you have tried to get the count of lines in file, the you would know about “nl” or “wc -l”. But as you are aware these give you number of lines with other details as well and you need to post …
Text file based presentation tool – pinpoint
2015/10/05
Pinpoint description: […] Pinpoint is a presentation tool. The source file for the presentation is text file and thus very easy to manage. You can see an example with : […] …
Executing commands on multiple hosts
2015/09/21
If you have to execute the same command in multiple hosts, then you can use mussh: […] First install mussh with the following command dnf install mussh Now to run this for multiple hosts, you …
Network Manager post-up script (dispatcher script)
2015/09/07
Network manager is supposed to be much better than network, how so? it supports dnsmasq for one… Dnsmasq with netowrkmanager Local name resolution Also Network Manager supports dispatcher scripts. How …
dnsmasq local name resolution with NetworkManager
2015/08/27
Network Manager suports starting dnsmasq which helps you have a local cache for DNS thus getting faster resolution for the DNS queries. Dnsmasq with netowrkmanager So, one thing that I have been …
bash – expand shell variables ( bash bug resolved )
2015/08/17
As you would have noticed in the recent versions of bash, expansion does not work properly when expanding directory names. So, for something like this cd $varname if you press tab, then variable name …
ShellCheck – check basic POSIX shell script errors
2015/08/03
Here is description of the tool: […] To install dnf install ShellCheck And just run the tool on the script to get the common errors.
evvsubst – substitute variables in text in shell
2015/07/09
First you need to install gettext, which by the way might be already installed, however you can install with dnf install gettext Details of the package: […] Usage examples:
Easily monitor and archive your system log reports.
2015/06/29
If you want to monitor your server logs and also like them to be emailed then just Logwatch may not be sufficient. It sends you a mail but does not archive them, so head over to epylog […] To …