scripting – performance improvement with file open


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 …

rofi menu with icons


Here is a quick command to show menu (applications) in simplistic windows managers with icons.  

check hard disk rpm or rotation speed


Lot of times you want to check the disk rpm, especially on the servers to check if it is 7.2K or 10K or 15K rpm disk. How do you do this from linux terminal. Here it is :  sginfo -g …

ssh trick – ssh to remote host with bastion host


Lot of times, you have to ssh to a server with bastion host. If you dont know what is bastion host then see this:  Now, in such cases, either you add an entry in “~/.ssh/config” to route the ssh … for URxvt


Sometime back I posted about – make your teminal sexy. I personally use URxvt terminal and hence need the xrdb files to apply the theme. It’s pain to go to the website everytime I want …

Color schemes for your terminal


Color Scheme for Gnome Terminal and Pantheon Terminal – here is the github page

Check your session type – wayland or X11


With both wayland and X11 in mainstream, its pretty easy to forget if you are running in Wayland or in X11. To check this here are the commands:

Split pcap to multiple files based on number of packets


Here is a script that can use tshark to split a large pcap to multiple small pcaps  inpcap="test.pcap" max=$(tshark -r $inpcap -n -T fields -e frame.number|tail -1) # This is the number of packets in …

libvirt- Create virtual machine with text console only interface


virt-install is an amazing tool to create VMs. If you have created a config file (Kickstart file – ks.cfg), then its only one line un-attended install. If you are using this on remote host with ssh …

GREP_COLORS – change the colors in the GREP output.


Today we will look at the variable GREP_COLORS. This variable determines the colour that is used with the grep command. You can look at the man page of the grep command to see what the various options …

copy /proc folder


Other day, I was trying to copy the proc folder with following command: tar cvzf /tmp/proc.tgz /proc and I found out that all the files in tar were empty. Strange it may seem but lot of people are …

wallpaper manager


So, I have been looking for a wallpaper manager with some features like: […] automatically change wallpaper from my directory list […] Get wallpapers from internet […] Possibly …

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