bash

i3 – show mapped hotkeys

2019/12/02

Here is a simple script that can show you the hotkeys bound in ~/.config/i3/config :  #!/bin/bash - #=============================================================================== # # FILE: …

scan your network with bash IP scan script

2019/10/10

Here is the youtbe video that will walk you through bash script.  

Add files to dropbox with single curl command

2019/07/08

I have been thinking of posting this for sometime now. This is very useful, when you are working on a different Linux box and want to upload a file to dropbox.  So, before you run this command, you …

cool sed/grep magic to convert output to csv format

2019/03/11

I generallly keep doing this a lot, so thought will share with you. Lets assume we are capturing free ouput every min/hour/or whatever. The output looks like this: […] Time: Mon Jan 21 23:59:10 …

bash function for rpm whatprovides

2018/12/31

Sometimes some simple one-liner function can save you a lot of time, like-

Directories with maximum number of files

2018/12/10

Lot of times, I want to find the directories with maximum number of files and so I wrote this quick function to do exactly the same  

mv command with progress

2018/03/19

When moving large files/directories, I would like to see the progress. Idea for this is to use rsync with progress and remove source files. But that option does not remove the empty directories left …

Highest disk usage of directory in subdirectories

2018/03/12

I find myself doing this lot of times so thought will share this with you all. Basically, once I want to clear out the directory, I first want to find out the sub-directory using the maximum disk …

Linux Best Practices and Tips

2017/03/06

Linux is powerful, flexible, and can be adapted to a broad range of uses. While best practices for administrating Linux servers are not hard to find due the popularity of the operating system, there …

Trello – backup to your linux machine

2017/01/02

Just in case, you are looking for backing up your trello account boards, you can use the following bash script to do so:  #!/bin/bash - …

change the output format for time command

2016/08/16

If you are doing some scripting and using ‘time’ command, then you know sometimes it becomes difficult to capture the output as the output would be something like this: : amit ; time ls real 0m0.002s …

Generate random string for various use case

2016/08/08

Some times I need random string, for example to use as email seperator or to use in some API. One way is to use tools like /dev/[u]random or od and other such. But they seem cubersome after I figured …


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