Knowledgebase

CentOS

Cent Operating System

Articles

firewall-cmd: List All Rules and Useful firewalld Examples Updated 4 November 2026 firewalld 2.4.3 (AlmaLinux 10.2) and 1.3.4 (AlmaLinux 9.8); the same commands work on Rocky Linux and RHEL 9 and 10 To list all firewall rules with firewall-cmd, run firewall-cmd --list-all. It prints every rule of the default zone, which is normally the zone of your network... ifconfig command not found on CentOS 7 Minimal installation Updated 28 September 2026 Ubuntu 24.04, Debian 12, AlmaLinux 9 and Rocky Linux 9 ifconfig belongs to the old net-tools package, which minimal installations of Ubuntu 24.04, Debian 12, AlmaLinux 9 and Rocky Linux 9 no longer include. Use the ip... ip Command Cheat Sheet for Linux: Addresses, Interfaces, Routes and ARP with Examples Updated 4 November 2026 iproute2 6.15.0 (Debian 13, where every example was run), 6.19.0 (Ubuntu 26.04), 6.1.0 (Ubuntu 24.04) and 6.17.0 (AlmaLi The ip command from iproute2 shows and changes IP addresses, network interfaces, routes and the ARP (neighbour) table. It replaces the old ifconfig, route and arp... iscsiadm Discovery Timeout with Two or More Network Interfaces Updated 28 September 2026 iscsi-initiator-utils 6.2.1 on AlmaLinux and Rocky Linux 9 and 10 and RHEL 9 and 10; open-iscsi on Ubuntu 24.04 and 26.0 On a server with two or more network interfaces, iscsiadm -m discovery can hang and then fail with a timeout, although the storage answers on one of the interfaces.... lvmetad Was Removed: What Replaced It in Current LVM Updated 28 September 2026 LVM 2.03 on AlmaLinux and Rocky Linux 9 and 10, RHEL 9 and 10, Ubuntu 24.04 and 26.04, Debian 13 On CentOS 7 and similar older systems, the lvmetad daemon cached LVM metadata, and guides often told you to disable it (use_lvmetad = 0 in lvm.conf) for clusters,... mlock failed: Cannot allocate memory, LVM lvcreate Error Explained Updated 28 September 2026 LVM 2.03 on AlmaLinux and Rocky Linux 9 and 10, RHEL 9 and 10, Ubuntu 24.04 and 26.04, Debian 13 While LVM changes device-mapper devices, it locks its own memory in RAM with the mlock() system call, so that it can never be swapped out while disk I/O is paused. The... pvcreate Fails With Error: Device mpatha Not Found (or Ignored By Filtering) pvcreate command fails while using multipath device with below error even when the device is present. # fdisk -l /dev/mapper/mpatha Disk /dev/mapper/mpatha: 51.6... pvcreate error: Cannot open sdx exclusively. Mounted filesystem? So, here is the situation, pvcreate and vgcreate command throws errors shown below. # pvcreate /dev/sdd1 Can't open /dev/sdd1 exclusively. Mounted filesystem?   #... resize2fs: Permission denied to resize filesystem, How to Fix It Updated 28 September 2026 e2fsprogs 1.46 and 1.47 (ext4) on AlmaLinux and Rocky Linux 9 and 10, RHEL 9 and 10, Ubuntu 24.04 and 26.04, Debian 13 When you grow a mounted ext4 file system, resize2fs asks the kernel to do the online resize. If the kernel refuses, resize2fs only says: resize2fs: Permission denied... rsyslog.conf: Setup a Filter to Discard or Redirect Messages Updated 11 October 2026 rsyslog 8 on AlmaLinux 9, Rocky Linux 9, Ubuntu 24.04 and Debian 12 rsyslog can drop unwanted messages or send them to a separate file, based on their content or program name. Examples Create /etc/rsyslog.d/10-filters.conf: # discard... rtkit in Linux: What RealtimeKit Does and How to Disable It Updated 12 October 2026 rtkit 0.11 on AlmaLinux 10.2, rtkit 0.13 on Debian 13 and rtkit 0.14 on Ubuntu 26.04 (tested in containers); the command rtkit (RealtimeKit, the rtkit-daemon service) is a small system service that lets normal user programs, mainly audio software such as PipeWire and PulseAudio, give... sysctl Setting Not Applied After Reboot: How to Make It Permanent Updated 22 October 2026 Ubuntu 24.04, Debian 12, AlmaLinux 9 and Rocky Linux 9 A kernel parameter set with sysctl can be lost at reboot for two reasons: it was only set at runtime, or another tool sets it again later in the boot. These steps... systemd Alternatives to the service, chkconfig and init Commands Updated 4 November 2026 systemd 252 to 259 on AlmaLinux and Rocky Linux 9 and 10, RHEL 9 and 10, Ubuntu 24.04 and 26.04, Debian 13 CentOS 6 and older systems managed services with service, chkconfig and SysV init runlevels. Since CentOS 7, and on every current distribution, systemd does this job... vsftpd FTP Server Setup on Red Hat, AlmaLinux and Rocky Linux Updated 4 November 2026 vsftpd 3.0.5 on AlmaLinux 10.2 and 9.8 (both tested); Rocky Linux and RHEL 9 and 10 use the same Red Hat package To set up an FTP server on Red Hat Enterprise Linux, AlmaLinux or Rocky Linux, install vsftpd with dnf install vsftpd, require TLS, lock each FTP user into their own... vsftpd Will Not Start: How to Find and Fix the Error Updated 28 September 2026 vsftpd 3.0 on AlmaLinux and Rocky Linux 9 and 10, RHEL 9 and 10, Ubuntu 24.04 and 26.04, Debian 13 When vsftpd does not start, systemctl only reports that the job failed. The real reason is a one-line message that starts with 500 OOPS:. This guide shows how to see... yum Logs and dnf Logs: File Locations and dnf history Output Updated 4 November 2026 dnf 4.20 on AlmaLinux 10.2 and dnf 4.14 on Rocky Linux 9.8 (same files on RHEL 8, 9 and 10), dnf5 5.4 on Fedora 44, yum On AlmaLinux, Rocky Linux and RHEL 8 to 10, the yum log is /var/log/dnf.rpm.log: yum is the same program as dnf there, and every package it installs, upgrades or... Sentora Control Panel in 2026: Project Status and Supported Alternatives Updated 4 November 2026 Sentora 2.0.2 (stable) and the Sentora 3.0 development branch Sentora is a free, open-source web hosting control panel for Linux, a community continuation of the older ZPanel. It manages websites, databases, mail, DNS and FTP for...