CentOS/RHEL 7

How to Recover from a Corrupted or empty /etc/mtab file in CentOS/RHEL 7
Sometimes you may get an error while running the df command saying that tat the /etc/mtab file is either corrupt or empty(removed). It may be a case t...
How to Set CPU Affinity for SYSTEMD Process in CentOS/RHEL 7
CPUAffinity is one of the directives to control the CPU affinity of the systemd executed processes. from the man page of systemd.exec: # man systemd....
How to verify if NX/XD is Enabled or Disabled in CentOS/RHEL 7 and 8
NX stands for No eXecute and XD stand for eXecute Disable is a technology used in processors to prevent the execution of certain types of code. NX/XD ...
How to Set Environment Variables for a systemd Service in CentOS/RHEL 7
Question: How to do set environment variables for use with a systemd service of MySQL Server? There are a number of different methods that can be used...
How to Set Resource Limits for a Process with Systemd in CentOS/RHEL 7 and 8
Some specific applications or processes may need higher resource values than the default systemd assigned values. It's possible to override the defaul...
How to add a Custom Script to systemd in CentOS/RHEL 7
The systemd facility replaces the older System-V initialization scripts from earlier releases. The systemd is an event-driven facility which allows no...
How to Configure GNOME Console Login Banner in CentOS/RHEL 7 and 8
Question: How to set the banner shown as part of a console in CentOS/RHEL 8? GNOME console banner is a screen with a certain message that is shown bef...
How to Rebuild GRUB on MSDOS Partition Type in CentOS/RHEL/OEL 7
Question: How to Rebuild Grub on Linux servers with MSDOS Partition type. (proc) (hd0) (hd0,msdos5) (hd0,msdos3) (hd0,msdos2) (hd0,msdos1) 1. Execut...
Unable to login with GUI on CentOS/RHEL 7
The Problem can't login to the system via GUI On CentOS/RHEL 7. Also, gdm segfault with below error after which unable to login to GUI. kernel: gdm-s...