Knowledgebase

CentOS

Cent Operating System

Articles

Understanding The /proc File System The proc file system contains a hierarchy of special files that represent the current state of the kernel. It is named after its original purpose, which is an... Understanding The sysfs File System (/sys) in Linux In addition to /proc, the kernel also exports information to another virtual file system called sysfs. sysfs is used by programs such as udev to access device and... Understanding chroot Jail As the name implies, a chroot operation changes the apparent root directory for a running process and its children. It allows you to run a program (process) with a... Understanding dm-Multipath Identifiers in Linux By default, multipath devices are identified by a World Wide Identifier (WWID), which is globally unique. As an alternative, you can set the user_friendly_names... Understanding kdump Configuration file /etc/kdump.conf The configuration file for Kdump is /etc/kdump.conf. The default target location for the vmcore is the /var/crash directory on the local file system, which is... Understanding kexec and kdump on Linux Updated 28 September 2026 kexec-tools 2.0.29 to 2.0.32 on AlmaLinux and Rocky Linux 9 and 10 and RHEL 9 and 10; kdump-tools on Ubuntu 24.04 and 26 When the Linux kernel crashes (a "kernel panic"), the server usually reboots or freezes and the cause is lost. kdump saves it: a small second kernel is kept ready in... Understanding mpathconf Utility to configure DM-Multipath Use the mpathconf utility to configure DM-Multipath. The mpathconf utility creates or modifies the /etc/multipath.conf file, using a copy of the sample multipath.conf... Understanding multipath Utility to Configure DM-Multipath The multipath utility is the device mapper target auto-configurator, which is used to detect and configure multiple paths to devices. Use the following command to... Understanding the dm-multipath Configuration file /etc/multipath.conf The main configuration file for DM-Multipath is /etc/multipath.conf. This file is not created by the initial installation of the RPM package. However, the following... Understanding the iscsiadm Utility: Discover, Log In and Manage iSCSI Disks 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 2.1 on Ubuntu 24.04 and iscsiadm is the command that connects a Linux server (the iSCSI initiator) to disks offered by a storage server (the target) over the network. It works in modes,... Understanding the nfsiostat command output (Examples Included) The nfsiostat command works as iostat command for the NFS mount points on the server. It uses the file /proc/self/mountstats as input and provides information about... Upgrade from CentOS 6 to CentOS 7 Updated 28 September 2026 CentOS 6/7, AlmaLinux 8/9 and Rocky Linux 8/9 (ELevate) CentOS 6 and CentOS 7 are both end of life and get no security updates. The old CentOS 6 → 7 upgrade tool no longer works. These are the current options. From CentOS... Useful journalctl Command Examples (Cheat Sheet) Updated 28 September 2026 systemd-journald (systemd 252 to 259) on AlmaLinux and Rocky Linux 9 and 10, RHEL 9 and 10, Ubuntu 24.04 and 26.04, Debi journalctl reads the systemd journal, where the kernel, systemd and every service write their messages. It is the fastest way to find out why a service failed or what... What Does Samba Stand For? The Name, SMB and the Samba Server Types (Standalone, Domain Member, Domain Controller) Updated 4 November 2026 Samba 4.22 (Debian 13), 4.23 (AlmaLinux 10, Rocky Linux 9, Ubuntu 26.04) and 4.19 (Ubuntu 24.04) Samba does not stand for anything. It is not an acronym: the name is the ordinary word "samba", picked because it contains the letters S, M and B in that order, from... What Is Promiscuous Mode? Enable It in Linux and VirtualBox Updated 4 November 2026 iproute2 6.15 to 6.19 and tcpdump 4.99 on Debian 13, Ubuntu 26.04 and AlmaLinux 10.2 (tested); the same commands on Rock Promiscuous mode makes a network interface pass every frame it receives to the operating system, not only the frames addressed to its own MAC address. Packet capture... What are SELinux Modes and how to set them? SELinux Modes SELinux runs in one of three modes (or states).   Enforcing This is the default state that enforces SELinux security policy. Access is denied to... What are SELinux Users and how to Map Linux Users to SELinux Users? There are SELinux users in addition to the regular Linux users. SELinux users are part of an SELinux policy. The policy is authorised for a specific set of roles and... What is HBA Queue Depth and How to check the Current Queue Depth Value and how to Change it? The queue depth indicates the number of I/O requests that are “in flight”, that have been requested but not yet been acknowledged to have been completed when... What yum clean all Does and How to Force a yum Reinstall Updated 4 November 2026 dnf 4.20 on AlmaLinux 10.2 and dnf 4.14 on AlmaLinux 9.8 (yum is a link to dnf); the same commands work on Rocky Linux a yum clean all deletes dnf's cache in /var/cache/dnf: the downloaded repository metadata, the solver files built from it and any package files kept there. It does not... Why Does the messages Log Report Martian Packets? A Martian packet as one which arrives on an interface where the interface does not use that network. For Linux, it’s any packet that arrives on an interface which is... Why Does “netstat” Output Show Many Connections in CLOSE_WAIT Status? Applications that handle a huge number of TCP connections, either as a server or as a client, will often see a large number of sockets in TIME_WAIT state. The sockets... Why Files in /tmp Get Deleted Automatically on Linux (systemd-tmpfiles) Updated 28 September 2026 systemd-tmpfiles on AlmaLinux and Rocky Linux 9 and 10, RHEL 9 and 10, Ubuntu 24.04 and 26.04, Debian 13 If files you left in /tmp or /var/tmp disappear, the system cleaned them up on purpose. These folders are for temporary files, and old ones are removed automatically... Yum Command Fails with Another app is currently holding the yum lock in CentOS and RHEL 7 While issuing any yum command, you would get an error shown below: # yum list Loaded plugins: fastestmirror, langpacks Existing lock /var/run/yum.pid: another copy... btrfs command examples to Create and Manage Btrfs File System Btrfs is a modern Linux file system with powerful features such as snapshots, compression, and built in RAID. In this post, we cover common btrfs commands with... fdisk: Unable to write sdg: Bad file descriptor, error while formatting USB disk While formatting a USB disk which was mounted in write-protected mode we are getting the below error: fdisk: Unable to write /dev/sdg: Bad file descriptor...