• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

Archives for May 2020

How to Limit/throttle rsync transfer speed in Linux

by admin

If you use the rsync utility to keep your backups synchronized between your servers or with a local machine, you might want to prevent the script from using too much bandwidth. However, rsync makes a lot of network I/O. The point of limiting bandwidth is to make sure your backup scripts don’t clog up the […]

Filed Under: Linux

How to prevent SSH connections from disconnecting due to inactivity when using MobaXterm

by admin

Question: How to prevent SSH connections from disconnecting due to inactivity when using MobaXterm client? In most production environment setups, SSH connections are configured to get disconnect after a short period of inactivity. This can sometimes be frustrating as you may have to keep on logging in frequently. Well, you can try the workaround outlined […]

Filed Under: Linux, Solaris

MySQL – How to Backup User Privileges as CREATE USER and/or GRANT Statements

by admin

Question: How to backup the users and their privileges as CREATE USER and/or GRANT statements? The method you can use depends on the version of MySQL you are using. MySQL 5.7 and Later In MySQL 5.7 and later, the recommended way to backup the users is to use mysqlpump. This has built-in support for backing […]

Filed Under: mysql, MySQL Cluster

How to Set CPU Affinity for SYSTEMD Process in CentOS/RHEL 7

by admin

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.exec CPUAffinity= Controls the CPU affinity of the executed processes. Takes a list of CPU indices or ranges separated by either whitespace or commas. CPU ranges are specified by the lower […]

Filed Under: CentOS/RHEL 7, Linux

How to verify if NX/XD is Enabled or Disabled in CentOS/RHEL 7 and 8

by admin

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 is a hardware cpu feature which is provided in almost all the hardware. Some BIOS has an advanced option of enabling or disabling it. This post will help […]

Filed Under: CentOS/RHEL 7, CentOS/RHEL 8, Linux

How to Set Environment Variables for a systemd Service in CentOS/RHEL 7

by admin

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 to set environment variables for a systemd service. The method used can vary depending on the Linux distribution and the version of the distribution. The MySQL manual states […]

Filed Under: CentOS/RHEL 7, CentOS/RHEL 8, Linux

How to Set Resource Limits for a Process with Systemd in CentOS/RHEL 7 and 8

by admin

Some specific applications or processes may need higher resource values than the default systemd assigned values. It’s possible to override the default resource limits assigned by systemd. Basically systemd sets the default limits for any process when it starts. For example: # cat /proc/1696/limits | grep “Max locked memory” Max locked memory 65536 65536 bytes […]

Filed Under: CentOS/RHEL 7, CentOS/RHEL 8, Linux

How to add a Custom Script to systemd in CentOS/RHEL 7

by admin

The systemd facility replaces the older System-V initialization scripts from earlier releases. The systemd is an event-driven facility which allows non-dependent subsystems to be started, controlled, or stopped in parallel. Here we explain how to add a custom script to the systemd facility. 1. Write And Debug The Custom Script Typically a systemd script is […]

Filed Under: CentOS/RHEL 7, Linux

How to Disable user list on GNOME login screen in CentOS/RHEL 8

by admin

Question: How to disable the user list being shown when logging into a CentOS/RHEL 8 system? There are 2 ways to disable the user list being shown on the login screen in CentOS/RHEL 8. Per user Settings Globally Settings for all users Method 1 – Per User Setting In this method, an individual user is […]

Filed Under: CentOS/RHEL 8, Linux

How to Configure GNOME Console Login Banner in CentOS/RHEL 7 and 8

by admin

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 before any user logins into the system using his/her login credentials. Login is performed by the Gnome Display Manager (GDM) tool. The steps to configure the GNOME […]

Filed Under: CentOS/RHEL 7, CentOS/RHEL 8, Linux

Next Page »

Primary Sidebar

Recent Posts

  • ncat Command Examples in Linux
  • ncat: command not found
  • nautilus Command Examples in Linux
  • namei: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright