Fading Coder

One Final Commit for the Last Sprint

Setting Up BIND DNS for Forward and Reverse Name Resolution

Installing the BIND DNS Server On a Red Hat‑based system, use the package manager to install BIND. # Install BIND sudo dnf install bind bind-utils -y If the server’s network configuration must be static, adjust it with nmcli or by editing the interface file. Below is an example that sets a static IP...

Diagnosing and Resolving Disk Space Not Freed After File Deletion in Linux

Disk Space Mismatch Between df and du Commands A disk usage check reveals low available space. # df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 50G 48G 1.2G 98% / Inspecting directory sizes with du shows a discrepancy, indicating space not accounted for in the filesystem hierarcyh. # du...

Deploying MySQL 5.7 Using Official Yum Repositories on CentOS

Default repositories in CentOS 7 prioritize MariaDB over MySQL. Executing standard installation commands will result in MariaDB being deployed instead. To utilize the official MySQL packages via the package manager, the specific repository configuration must be added mnaually. Configure the Official...

Essential Comparison Operators in Shell Scripting

Shell scripts rely on comparison operators to evaluate conditions. These operators are primarily used with the [ ] test construct or the test command. They are categorized based on the data they evaluate: files, strings, and integers. File Test Operators These operators check the properties of a fil...

Diagnosing and Fixing Disk Space Mismatch Between df and du on CentOS 6.5

Filesystem capacity reports from df -h and du -sh can diverge, often because of deleted files that remain locked by running processes. On a CentOS 6.5 host, the root partition /dev/mapper/VolGroup-lv_root showed 44 GB used out of 50 GB, while the sum of du -sh / (excluding subvolume mounts) added up...

CPU Usage Calculation: ps vs top

Understanding CPU Usage Computation CPU usage essentially measures the time a processor spends executing a process. In Linux systems, this execution time is tracked in units called jiffies. By calculating jiffies * HZ, we can determine the CPU time consumed by a process. Dividing this value by the t...

Running Redis with Sentinel for High Availability on Linux

Launching Redis with Sentinel on Linux Redis is a popular in‑memory data store used for caching and improving application performance. To maintain uptime and automatically handle failures, the Sentinel system provides monitoring, notification, and automatic failover for Redis instances. This article...

Comprehensive Device Initialization and Configuration Guide

Windows 10 System ConfigurationSystem ConfigurationDisable Windows Update and Microsoft Store automatic updatesTemporarily disable Windows Defender real-time protection and SmartScreenConfigure Group Policy Editor (gpedit.msc): disable automatic updates, prevent driver auto-updates, configure Window...

Setting Up RocketMQ on Linux Using Docker and Accessing the Management Interface

1. Create the /opt/rocketmq/docker-compose.yml and /opt/rocketmq/broker.conf configuration files 2. Configure docker-compose.yml with the management interface port set to 8090 version: '3.5' services: rmqnamesrv: image: foxiswho/rocketmq:server container_name: rmqnamesrv ports: - 9876:9876 networks:...

Creating Soft and Hard Links with ln in Linux

In Linux, every file is associated with an inode—an index node storing metadata such as size, timestamps, ownership, and a pointer to the actual data blocks. The inode serves as the true identifier for a file; filenames are merely references. File contents reside in data blocks referenced via their...