Linux

Short url to full url

2024/06/19

Most of the Social sites will shorten the links. There are a lot of ways to check the url before you go to the url and get phished :) For example, for bitly you can just add a ‘+’ at the …

Bash script performance issue and remediation

2024/06/17

I was looking at writing some output to files. The output did not vary much but the number of lines was huge. It was long time back so I dont remember the context of the requirement but I needed to …

Run X11 applications on docker or podman

2024/03/29

Found x11docker project in github. This is a very nice project if you are trying to run GUI applications in dockers. It takes the hassle out and helps you run the GUI applications very easily in …

Show Local IP

2023/12/23

You can see the local IP of the machine with the command - ip a. However if you have to use the address in some variable in a scrit. It becomes little tricky, something like […] and the command …

Openvpn files to nmcli connection

2022/11/12

Many times you get openvpn file and when you want to connect to the VPN server, you have to start the vpn client from the cli. How you wish that this was added to NetworkManager so that you could …

GREP_COLORS – change the colors in the GREP output.

2019/04/22

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

2019/03/18

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 …

xev – Check the X keyboard events

2018/11/19

xev man page […] xev – print contents of X events […] So other day I was checking why my play key was not working and wanted to check if it maps to one of the X default mappings for the …

Get to your ebooks quickly

2018/11/12

We are using “rofi” here to show the menu. So, lets first install that cat <<EOF >/etc/yum.repos.d/_copr_yaroslav-i3desktop.repo [yaroslav-i3desktop] name=Copr repo for i3desktop owned by …

systemctl enable and start service

2018/09/10

Most of the times when I want to enable the service, I find myself enabling it immediately or it is vice versa. So, the commands I used to use were: systemctl enable sshd.service systemctl start …

Display IP address in console login screen

2018/04/30

Here is one liner that will add the current IP address in the console login screen (if you are not running X as is case for servers): (ip -o -4 a| awk '$2 !="lo" {print "\nIP Address ::"$4}' |tr '\n' …

Linked clone with qemu-img

2018/04/09

As you would have seen in Virtualbox or vmware, there is option to create a linked clone. I wanted to use the same feature as “Snapshot” feature anyway does not look/work so great with virt-manager. …


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