UNIX / Linux: Send E-mail When sudo Runs

To send an email when the sudo command is executed on a UNIX/Linux system, you can set up an email notification using the sudoers configuration file. Here are the steps to do it: Edit the sudoers configuration file by running the following command: sudo visudo This will open the sudoers file in the system’s default … Read more

CentOS / RHEL: Install MySQL PHP Extension

To install the MySQL PHP extension on CentOS or RHEL, you can follow these steps: Install the MySQL community repository by downloading and installing the RPM package from the official MySQL website. You can download the RPM package by running the following command: wget https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm Install the downloaded RPM package using the following command: sudo … Read more

HowTo: Find Out MySQL Server Version Number

To find out the version of a MySQL server running on your system, you can use the following command in the MySQL command-line client: SELECT VERSION(); Running this command in the MySQL command-line client will display the version number of the MySQL server that you are currently connected to. For example, running this command might … Read more

Linux Command: Show Linux Version

To show the version of the Linux distribution that you are currently running, you can use the following command: lsb_release -a Running this command in a terminal will display the version of the Linux distribution, as well as other information such as the release codename, description, and more. For example, running this command on an … Read more

How To Find Linux Kernel Version Command

To find the version of the Linux kernel that is currently running on your system, you can use the following command: uname -r Running this command in a terminal will display the kernel version number, for example: 5.13.0-28-generic The output of this command shows the major version number (5 in the example), the minor version … Read more

HowTo: Update Linux Kernel With ksplice

Ksplice is a technology that allows you to apply updates to the Linux kernel without having to reboot the system. This can be very useful in situations where you need to keep your system running continuously without any downtime. Here’s how you can update the Linux kernel with Ksplice: Check whether your system is compatible … Read more

Ubuntu Uninstall deb Package

To uninstall a .deb package in Ubuntu, you can use the dpkg command. Here are the steps to uninstall a .deb package: Open the terminal by pressing Ctrl + Alt + T. Type the following command and press Enter: sudo dpkg -r package_name Replace package_name with the name of the package you want to uninstall. … Read more