Fading Coder

One Final Commit for the Last Sprint

Process Management in Linux

Process Overview A process represents a running program instance. Beyond the executable code segment, a process includes open files, pending signals, kernel data structures, processor state, virtual memory mappings, threads, and global variables' data segment. Threads are scheduling units managed by...

Configuring Nginx for Automatic Restart on Linux Systems

Ensuring Nginx Service Reliability in Production Environments In production environments, maintaining service availability is crucial. This guide demonstrates how to configure Nginx to automatically restart on system boot and after unexpected failures on Linux systems. Verifying Current Nginx Status...

Exposing a Local Redis Instance to the Public Internet via TCP Tunneling

1. Compile and Install Redis from Source Navigate to the target directory and retrieve the source archive. This example uses /opt for third-party sofwtare management. cd /opt sudo curl -L https://github.com/redis/redis/archive/refs/tags/7.2.5.tar.gz -o redis-src.tar.gz sudo tar -xzf redis-src.tar.gz...

Linux User and Group Account Management

User and Group Accounts Overview Linux controls resource access through user identities. Accounts are categorized in to user accounts and group accounts. User Account Roles Superuser (root): UID 0 with full system privileges Regular Users: UID 1000+ (CentOS7) with restricted permissions System Users...

Memory Monitoring in Linux Systems

In operating systems, virtual memory is organized into pages, each sized at 4KB on x86 architectures. The Linux kernel performs read and write operations on virtual memory in page-sized units. When transferring memory to or from swap space, these operations occur page by page. Managing virtual memor...

Advanced Linux Disk Space Management and Troubleshooting

Analyzing Disk Usage When diagnosing storage issues, it is essential to identify which directories are consuming the most space. The following command sorts directories within /var by their human-readable size: du -sh /var/* | sort -h Output example: 0 /var/preserve 0 /var/run 0 /var/tmp 8.0K /var/d...

Understanding Linux Environment Variables and Process Context

Process Execution and Context In a typical single-core CPU system, multiple processes do not run simultaneously but are executed concurrrently through rapid time-slicing. Each process is allocated a time slice; if it doesn't finish within that interval, the operating system saves its state and switc...

Linux System Configuration: Firewalls, SELinux, and Locale Management

Network Security: Managing Firewall Services In certain deployment scenarios, local firewall services are intentionally deactivated to rely on external perimeter defenses or specific network architectures. The procedures to manipulate these services differ between legacy and modern CentOS releases....

Linux Cron Job Scheduling and Management

Cron Service Fundamentals Cron is a time-based job scheduler in Unix-like operating systems. The crond daemon runs in the background and executes scheduled commands at specified intervals. # Check if cron service is running ps aux | grep cron | grep -v 'grep' # Verify cron service status across runl...

Installing and Configuring Maven on Linux Systems

Maven and JDK Version Compatibility Reference the Apache archive for downloading: https://archive.apache.org/dist/maven/ Maven versions have specific Java version requirements: Maven 2.0.11 and earlier support JDK 1.3 and JDK 1.4 Maven 2.0.11 and later support JDK 1.5 and above Maven 3.0+ requires J...