Arithmetic Operations and Numerical Computation Techniques in Shell Scripting
Arithmetic Operators and Common Commands
Common Arithmetic Operators
Operator
Description
+, -
Addition and subtraction
*, /, %
Multiplication, division, and modulo
**
Exponentiation
++, --
Increment and decrement
!, &&, `
<, <=, >, >=
Comparison operators
==, !=, =
Equality and inequality checks
<&l ...
Posted on Thu, 24 Sep 2026 16:06:44 +0000 by JamieinNH
Zabbix Server Administration and Database Management Operations
System Resource Monitoring
Disk Usage Evaluation
Check the available storage on the root partition:
df -Th | grep '^/dev'
Memory Consumption Analysis
Display physical and swap memory utilization:
free --human
Processor Load Inspection
Monitor real-time CPU usage and running processes:
top -b -n 1 | head -n 5
Zabbix Database Volume Assessment ...
Posted on Tue, 22 Sep 2026 16:56:58 +0000 by Rithotyn
Automated Deployment with Shell Scripts and Frameworks
Application Management and Deployment Procedures
When deploying applications, it's essential to follow a systematic shutdown and startup sequence. The general principle is to close applications in the reverse order they were opened.
Shutdown sequence: A → B
Startup sequence: B → A
After deployment, verify functionality by checking the appplicat ...
Posted on Tue, 22 Sep 2026 16:53:34 +0000 by apollo
Working with Bash Shell: Variables, Built-ins, and Data Processing
Core Features of Bash
Command History: Executed commands are stored in ~/.bash_history. This file contains records from previous sessions. Commands from the current active session are held in memory and written to the file upon successful logout.
Tab Completion:
Command completion: Press Tab after the first word of a command string.
File comp ...
Posted on Sat, 19 Sep 2026 16:04:04 +0000 by nemiux
Configuring Jexus Web Server Auto-Start on CentOS 7
Navigate to the system initialization directory to create the service script:cd /etc/init.d/Create a new file named jexus within this directory:vim jexusInput the following Bash script to manage the Jexus service lifecycle. This script handles starting, stopping, and restarting the server while ensuring root privileges are present.#!/bin/bash
# ...
Posted on Wed, 16 Sep 2026 16:33:12 +0000 by carnold
MySQL Data Export Strategies for Non-Technical Audiences
The Hidden Challenge: SQL Files Aren't End-User Friendly
Working with MySQL data exports regularly, I rarely document these tasks since they're usually stragihtforward. However, a recent scenario prompted me to record my approach due to its specific constraints:
I needed to quickly take over an unfamiliar MySQL instance, extract and organize it ...
Posted on Thu, 10 Sep 2026 16:53:19 +0000 by NCC1701
Advanced AWK Text Processing Techniques
AWK Text Processing Fundamentals
Column Extraction and Field Separation
In AWK, you can reference columns using $0 (entire line) through $NF (last column). The following examples demonstrate column extraction:
# Display entire line
awk '{print}'
# Display first column
awk '{print $1}'
# Display second column
awk '{print $2}'
# Display las ...
Posted on Sun, 26 Jul 2026 16:15:07 +0000 by stlewis
Essential Linux Command Reference
In Linux, there are several ways to execute commands that continue running even after you close your terminal session:
Background execution with &: The ampersand symbol allows a command to run in the background. However, if you close your terminal (like Xshell), the process will terminate.
nohup command: This allows a command to keep runni ...
Posted on Tue, 21 Jul 2026 16:41:07 +0000 by imstupid
Implementing While Loops in Bash Shell Scripts
While Loop FundamentalsThe while construct evaluates a condition placed after the while keyword. If the condition evaluates to true, the commands within the loop body execute. After reaching the done statement, control returns to re-evaluate the condition. This cycle continues until the condition becomes false. If the condition is initially fal ...
Posted on Sun, 19 Jul 2026 17:11:49 +0000 by snipe7kills
Bash String Manipulation Techniques
Concatenating StringsVariables can be joined by placing them adjacent to each other.prefix="sys"
suffix="_log"
combined="${prefix}${suffix}"
echo "$combined" # Output: sys_logExtracting Substrings by IndexRetrieve a portion of a string by specifying the starting position and length using the format ${variable:offset:length}.text="deployment"
s ...
Posted on Sun, 19 Jul 2026 16:51:45 +0000 by kitegirl