How do I disable or enable the IPv6 protocol in Red Hat Enterprise Linux / CentOS

Disabling IPv6 support in Red Hat Enterprise Linux 8 Disable ipv6 built-in kernel module. Edit /etc/default/grub and append ipv6.disable=1 to GRUB_CMDLINE_LINUX like the following sample: GRUB_CMDLINE_LINUX=”rd.lvm.lv=rhel/swap crashkernel=auto rd.lvm.lv=rhel/root ipv6.disable=1″ Run the grub2-mkconfig command to regenerate the grub.cfg file: # grub2-mkconfig Read More …

Vim Editor Basics

This tutorial is going to speak about vim basic use and covers also the editor vi. Vim is a powerful text editor used in CLI (command line interface). Linux uses a lot of configuration files, you’ll often need to edit Read More …

How to Install Grafana on Linux Servers

Grafana is an open source data visualization and monitoring suite. It offers support for Graphite, Elasticsearch, Included, Prometheus, and many more databases. The tool provides a beautiful dashboard and metric analytics, with ability to manage and create your own dashboard Read More …

Echo Command in Linux with Examples

The echo command is one of the most basic and frequently used commands in Linux. The arguments passed to echo are printed to the standard output. echo is commonly used in shell scripts to display a message or output the Read More …

Bash: Append to File

In Bash, there are multiple ways to append text to a file. This article explains some of them. To append text to a file, you need to have write permissions to it. Otherwise, you will receive a permission denied error. Read More …

Cat Command in Linux

The cat command is one of the most widely used commands in Linux. The name of the cat command comes from its functionality to concatenate files. It can read and concatenate files, writing their contents to the standard output. If Read More …

Df Command in Linux (Check Disk Space)

How much space do I have left on my hard drive? Is there enough free disk space to download a large file or install a new application? On Linux and Unix operating systems, you can use the df command to Read More …

How to check if a file or directory exists in Bash

Many times when writing Shell scripts, you may find yourself in a situation where you need to perform an action based on whether a file exists or not. In Bash, you can use the test command to check whether a Read More …

Pwd command in Linux (Current working directory)

What is the Current Working Directory The current working directory is the directory in which the user is currently working in. Each time you interact with your command prompt, you are working within a directory. By default, when you log Read More …

Linux File Permissions

In Linux, access to the files is managed through the file permissions, attributes, and ownership. This ensures that only authorized users and processes can access files and directories. This tutorial covers how to use the chmod command to change the Read More …