Basics

Reduce CPU and Disk load of backup scripts with nice and ionice

Running a nightly backup script on a server system, such as a web hosting server, can result in a heavy load and longer latency for other processes, for example, HTML or .php pages load slowly during the backup because the backup script requires too many I/O or CPU resources. On Linux systems, two shell utilities …

Reduce CPU and Disk load of backup scripts with nice and ionice Read More »

How to convert RPM software packages to Debian (.deb)

Maybe you have had this problem: you are using Debian or Ubuntu Linux and a software package you would like to install is only available in RPM format. The solution is the handy tool called alien, which converts .rpm files to .deb files. Install alien: apt-get install alien Converting an rpm package to Debian format: …

How to convert RPM software packages to Debian (.deb) Read More »

Check and Repair All MySQL Databases on Ubuntu 1

Check and Repair All MySQL Databases on Ubuntu

The following command can be used to check and repair all MySQL databases on a Ubuntu or Debian Linux System. I’ve tested the commands on Ubuntu 20.04 and Debian 10. Repair MySQL databases on Ubuntu Linux sudo mysqlcheck –defaults-file=/etc/mysql/debian.cnf –auto-repair –optimize –all-databases MySQL database repair on Debian mysqlcheck –defaults-file=/etc/mysql/debian.cnf –auto-repair –optimize –all-databases The benefit of …

Check and Repair All MySQL Databases on Ubuntu Read More »

Optimize MySQL Performance with Mysqltuner

This short tutorial describes the steps to optimize the performance of a MySQL database with the mysqltuner script. This tool can be used for MySQL and MariaDB. Install mysqltuner The mysqltuner High-Performance MySQL Tuning Script is available as a package on Debian 10 and Ubuntu 20.04, install it with at: sudo apt install mysqltuner For …

Optimize MySQL Performance with Mysqltuner Read More »

How to list installed packages on Debian 2

How to list installed packages on Debian

This short guide shows you how to get a list of all installed Packages on Debian Linux. Packages on Debian get installed with the apt package installer. We will use the dpkg command, which is part of the apt toolset, to query the installed packages database. Get all installed Debian packages dpkg –get-selections As you …

How to list installed packages on Debian Read More »

How to clear Bash history on Linux

The bash history is a log file that contains all commands that the user executed on the Linux shell. When you use the “arrow up” key on our keyboard, then Bash will look up the previous command from that file and display it on the screen, ready to be executed again. Bash history file location The …

How to clear Bash history on Linux Read More »

How to enable auto updates in Ubuntu 20.04 3

How to enable auto updates in Ubuntu 20.04

It is important to keep your Linux server up to date with security updates. Linux distributions like Ubuntu and Debian release updates on a daily basis, so keeping the system up-to-date can become a tedious task. Fortunately, there is an option to install security updates automatically. Here are the steps to enable automatic security updates …

How to enable auto updates in Ubuntu 20.04 Read More »

How to convert filenames or text to lowercase on the Linux command line

There is no simple ‘tolower’ command on the bash, but you can convert uppercase characters to lowercase with a little shell script. The script uses the tr command internally for converting the chars. Create a shell script with the name ‘tolower’ that converts all text that is given as a command-line argument to lower case: …

How to convert filenames or text to lowercase on the Linux command line Read More »

Get detailed information about server hardware and partitions on Ubuntu

This short tutorial shows you 5 commands to get details about the system hardware of your PC, Notebook, or Server on Ubuntu and Debian. CPU details on Linux To get detailed information on the CPU, use this command: cat /proc/cpuinfo The output will look similar to this: cat /proc/cpuinfo processor       : 0 vendor_id       : AuthenticAMD …

Get detailed information about server hardware and partitions on Ubuntu Read More »