Working with Gzip Files in Linux: Seamless Integration with Popular Tools

2025-05-21 2 min read Gzip File Compression Productivity Bash Linux

Working with Gzip Files in Linux: Seamless Integration with Popular Tools

Gzip is a widely used compression tool in the Linux ecosystem, offering efficient file size reduction for storage and transfer. But did you know that many Linux applications can work directly with .gz files—no manual decompression required? This capability streamlines workflows and saves disk space.

Why Use Gzip?

  • Reduces file size for faster transfers and less storage.
  • Preserves file integrity during downloads and uploads.
  • Widely supported across Linux distributions and tools.

Using Gzipped Files Directly

Many popular Linux applications can open and process gzip-compressed files transparently. Here are some notable examples:

Continue reading

Anonymous AI Chat with different models

2024-12-31 1 min read Bash Linux Networking

If you ever wished that you did not have to login or could use AI chat with anonymity, then you are in luck and right place, read on.

Head over to DuckDuckGo search. Click on the Hamburger menu in the right hand top side. In the drop down, select AI Chat, you will see it somewhere in middle of the menu.

Now, you can click “Get Started” (after reading the information on the page).

Continue reading

Hackernews In Your Inbox

2024-08-25 1 min read Bash Python Scripting Learning Hacking News

If you do not want to subscribe to any newsletter but still want to get some news delivered to you inbox then this post is for you.

First you need to get a script that can pull the hacker-news articles for you and you can find my script here. You can modify this script, specially the line: for id in trending_list[:50]: to change the number of posts that you would like to see in the mail.

Continue reading

Short url to full url

2024-06-19 3 min read Bash Linux Networking

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 end of the url. For example, you can enter the following in url bar https://bit.ly/2KEOXNx+ and see the details of the where the url takes you. This is just a example url that I got from google but you get the idea.

Continue reading

Bash script performance issue and remediation

2024-06-17 5 min read Bash Performance Linux

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 write few million lines of text. The quickest way to do this was bash so I wrote a simple script that could do this. To my astonishment, I could see the script much more time than expected, so here is how I debugged the issue and fixed it.

Continue reading

mussh-run-commands-on-multiple-hosts

2022-03-06 1 min read Learning Bash Fedora SSH

mussh allows you to run command/commands on multiple hosts at the same time. If you have farm of server setup with passwordless ssh or with same password (which is generally the case), then using mussh you can either check all the servers for some output or fix something or maybe update all the packages. How cool is that :)

Here is description of this package from dnf repo

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
Name         : mussh
Version      : 1.0
Release      : 18.fc35
Architecture : noarch
Size         : 20 k
Source       : mussh-1.0-18.fc35.src.rpm
Repository   : fedora
Summary      : Multihost SSH wrapper
URL          : http://www.sourceforge.net/projects/mussh
License      : GPL+
Description  : Mussh is a shell script that allows you to execute a command or
             : script over ssh on multiple hosts with one command. When possible
             : mussh will use ssh-agent and RSA/DSA keys to minimize the need to
             : enter your password more than once.

virt-install with cloud-init

2022-02-09 2 min read Learning Bash Virtualization Qemu Libvirtd

If you have not heard about cloud-init then you should definately search for it and learn about cloud-config as well. You can find the documentation for cloud-config here. It is used for configuring VMs when running in cloud environments. Specially useful to inject the ssh keys or set the root password but you can do anything in the cloud-config as there is a section where you can run bash commands. While this is useful for cloud instances, you can make use of this feature when running your vm with qemu or libvirtd. All you need to do is either attach a iso disc with user-data and meta-data files in it or even simpler, you can use virt-install command. The command that I use is as follows

Continue reading
Older posts