Linux Terminal Shortcuts

When you work in Linux Terminal, It involves using keyboard shortcuts to perform common tasks. Here are some useful shortcuts: History Shortcuts: Up Arrow / Down Arrow: Navigate through command history. Ctrl + R: Reverse search in command history. !!: Repeat the last command. !n: Repeat the nth command in history. Navigation Shortcuts: Ctrl + […]

Docker Inspect

Docker inspect command is very useful to provide detailed information about any container. It provides all information related to image, volume etc. without login into container.You can find out each details you needed. # docker inspect container (Put container’s actual name or ID of the container you want to inspect) # docker inspect ubuntu:latest (To […]

Python Script to install multiple rpm packages

To install packages in Linux using python, you need to use “subprocess” module. Below is a script to install multiple packages. import subprocess def rpm_install(package_list): for package in package_list: try: subprocess.run([‘sudo’, ‘yum’, ‘install’, ‘-y’, package], check=True) # For DNF, use the following line instead: # subprocess.run([‘sudo’, ‘dnf’, ‘install’, ‘-y’, package], check=True) print(f"Package {package} installed successfully.") […]

Introduction to YAML

YAML stands for “YAML Ain’t Markup Language” or sometimes “YAML Ain’t a Markup Language”. It is simple, text-based and human readable format. It is very easy to understand.It is a data serialization language. It is vastly used in DevOps. It also works in promgramming language like python, Go, etc. If you see DevOps tools, it […]

Docker Images

Docker is a platform for developing, shipping and running applications inside a containers. Docker images are those templates which can be used by you to run applications.You can use below link for installing docker on ubuntu system. Install Docker on Ubuntu OS Now we will go through docker commands. This page will show you about […]

Create a LVM more than 2 TB

How to create an LVM (Logical Volume Management) volume of more than 2 TB from a raw disk in Linux? Creating a larger partition you can follow below steps:Ensure that you have a raw disk with sufficient space for your LVM. You can check space using commads like lsblk or fdisk -l.We can initialize the […]

What is Sar Command?

Sar is a versatile tool that provides crucial insights into system activity and performance. It collects, reports, and archives a wide range of system statistics. Sar is particularly valuable for troubleshooting performance issues and retroactively analyzing load values for various subsystems such as CPUs, memory, disks, interrupts, and network interfaces.By default, Sar log files are […]

How to update puppet certificate on puppet client?

You can use below command to update puppet client certificate using below commands. Go to your puppet master and clean client certificate: # puppetserver ca clean <hostname> Now login to client and run below commands: # systemctl stop puppet # rm -r /var/lib/puppet/ssl # systemctl start puppet On Server go and register if needed: # […]

Git

Git is a distributed version control system (DVCS) that is widely used for tracking changes in source code during software development. Git was initially designed and developed by Linus Torvalds for Linux kernel development. It is a free software distributed under the terms of the GNU General Public License version 2. Git is distributed version-control […]