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
Advanced sed Techniques for Text File Processing
sed Command Reference
Displaying Specific Lines
To print the 10th line of /etc/passwd:
sed -n '10p' /etc/passwd
To print lines 8 through 15 of /etc/passwd:
sed -n '8,15p' /etc/passwd
To print line 8 and the next 5 lines of /etc/passwd:
sed -n '8,+5p' /etc/passwd
Pattern Matching
To print lines starting with 'nginx' in /etc/passwd:
sed ...
Posted on Mon, 29 Jun 2026 16:09:36 +0000 by mescal
Diagnosing and Resolving Java Application Faults with JVM Tools
Essential Linux Commands for System Inspection
A collection of frequently used commands for system monitoring and maintenance.
System Shutdown, Reboot, and Session Control
Command
Purpose
shutdown -h now
Power off immediately
shutdown -h +10
Schedule shutdown after 10 minutes
shutdown -h 11:00
Shutdown at 11:00
shutdown -c
Cancel a ...
Posted on Fri, 05 Jun 2026 17:20:46 +0000 by morphius