CentOS
Cent Operating System
Articles
How to su to Another User in Linux (and Without a Password)
To switch to another user in Linux, run su - username and type that user's password; type exit to return to your own account. Root can su to any user without a...
How to uninstall Cloudlinux and covert back to Centos cPanel server?
CloudLinux OS is a Linux distribution marketed to shared hosting providers. It uses the OpenVZ kernel and the rpm package manager based on the CentOS operating system....
How to use Magic SysRq tool in CentOS / RHEL?
SysRq utility
In case your kernel freezes or/and hangs, you can use ‘magic’ SysRq tool. The ‘magic’ SysRq key allows instant access to several essential kernel...
How to use btrfs device command to add or delete device to or from btrfs filesystem?
Btrfs is an open-source, general-purpose file system for Linux. The name derives from the use of B-trees to store internal file system structures. Different names are...
How to use btrfs scrub command to manage scrubbing on Btrfs file systems?
You can initiate a check of the entire file system by triggering a file system scrub job. The scrub job runs in the background by default and scans the entire file...
How to use rndc command (command-line administration tool for named)?
The rndc utility is a command-line tool to administer the named service, both locally and from a remote machine. To prevent unauthorized access to the service, rndc...
How to use xfs_admin command to change parameters of an XFS filesystem?
Use the xfs_admin command to change the parameters of an XFS file system. You can also use the xfs_admin command to view the file system label and UUID:
# xfs_admin...
How to work with multiple java versions under Linux?
When i installed a new version of the Java Runtime Environment but the "java -version" command does not show the new version.
# java -version
java version "1.7.0_65"...
I/O Errors on an XFS File System: Causes and Fixes
"Input/output error" when reading or writing files on XFS means either the disk underneath is failing, or XFS found damaged metadata and shut the file system down to...
Installation of Curl on CentOS 8 and How to Use It?
CentOS 8 is end of life. curl transfers data to and from servers (HTTP, HTTPS, FTP, SFTP and more). It is installed by default on Ubuntu 24.04, Debian 12, AlmaLinux 9...
Linux ACLs: Set Access Control Lists with setfacl and getfacl
A Linux ACL (access control list) gives extra users and groups their own permissions on a file or folder, on top of the normal owner, group and others. Add one with...
Linux Device Mapper Explained: How to Map dm-N and mapper Devices to the Underlying sdX Disk
The device mapper is the part of the Linux kernel that builds virtual block devices on top of real disks. LVM logical volumes, LUKS encrypted volumes (dm-crypt) and...
Linux Network Bonding Modes Explained: All 7 Modes and How to Configure a Bond with nmcli, netplan and Debian
Network bonding joins two or more network ports into one logical interface (usually bond0) for redundancy and, in some modes, more total bandwidth. Linux has seven...
Linux OS Service vncserver
Linux OS Service ‘vncserver’ executes a VNC server daemon, which is used to start a VNC desktop and simplifies the process of starting an Xvnc server. It runs Xvnc...
Linux TCP Wrappers: How to Use hosts.allow and hosts.deny to Control Access
TCP Wrappers is a host-based access control system for network services on Linux. It uses two files, /etc/hosts.allow and /etc/hosts.deny, to permit or block client...
List of SELinux Utilities
This post lists some of the more commonly used command-line utilities for managing and operating SELinux.
utilities provided by policycoreutils package
The...
Loop Devices on Current Linux Kernels: No Fixed Limit, and How to Pre-create More
A loop device makes a file, such as a disk image or an ISO, usable as a block device. Older guides for CentOS 5 and 6 explain how to raise a fixed limit of 8 loop...
Maintaining Linux filesystems using fsck and tune2fs
The best tool for maintaining file systems is fsck, which checks and repairs Linux file systems. By default, fsck runs after 20 system reboots but should be run...
Migrate from single-partition boot device to LVM in CentOS7
CentOS 7 is end of life. Converting a running system from a single root partition to LVM in place means copying the whole system and rebuilding the boot configuration,...
MySQL or MariaDB Fails to Start with systemctl: How to Find and Fix the Cause
When systemctl start mariadb (or mysqld, or mysql) fails, systemd only says the job failed. The real reason is in the database's own log. This guide shows where to...
Network Teaming on RHEL, AlmaLinux and Rocky Linux: Migrate to Bonding
Network teaming (the teamd service) combined several network ports into one, like bonding. On CentOS 7 it was a popular choice. It is now on its way out: RHEL 9 and...
OpenLDAP Server and Client Utilities list
Lightweight Directory Access Protocol (LDAP) is used to access centrally stored information over a network. LDAP servers store information in a database called a...
Oracle ASMLib (oracleasm) Packages for Oracle Linux and RHEL
ASMLib is Oracle's support library for Automatic Storage Management (ASM), the volume manager of Oracle Database. It marks disks for ASM and protects them from being...
Running repairs on XFS Filesystems
The XFS File system is a high-performance journaling file system. XFS supports a maximum file system size of 500 TB and a maximum file size of 16 TB. You can create an...
SFTP Logs in Linux: Where They Are and How to Log Transfers
There is no separate SFTP log file by default. SFTP logins are logged together with SSH logins: in /var/log/auth.log on Ubuntu, in /var/log/secure on AlmaLinux, Rocky...