How to install whois on RHEL 8 / CentOS 8

To install the whois command on RHEL 8 / CentOS 8, you can use the package manager dnf: sudo dnf install whois This will install the whois package, which provides the whois command-line tool for querying domain name registration information. Once installed, you can use the whois command to look up information about a domain … Read more

How To Protect SSH With Fail2Ban on CentOS 8

To protect SSH with Fail2Ban on CentOS 8, you can follow these steps: Install Fail2Ban by running the command sudo yum install fail2ban. Create a new Fail2Ban configuration file for SSH by running the command sudo nano /etc/fail2ban/jail.d/sshd.local. In the file, add the following configuration: [sshd] enabled = true port = ssh filter = sshd … Read more

How To Enable and Install EPEL Repo on CentOS 8

Here’s how to enable and install the EPEL (Extra Packages for Enterprise Linux) repository on CentOS 8: Download the EPEL repository package by running the following command: sudo yum install epel-release Verify that the EPEL repository has been added by running the following command: yum repolist The EPEL repository should be listed among the enabled … Read more

CentOS 8 Change Hostname (computer name) command

To change the hostname on a CentOS 8 system using the command line, you can use the hostnamectl command. To set a new hostname, use the following command: sudo hostnamectl set-hostname newhostname Replace newhostname with the desired hostname for your system. To verify the hostname change, use the command: hostnamectl It will show the current … Read more