Tag

shell scripting

0 views collected around this technical thread.

Raymond Ops
Raymond Ops
Jun 11, 2025 · Operations

Mastering gawk: Powerful Text Processing on Unix/Linux

This article introduces gawk, the GNU version of awk, explaining its programming capabilities, command syntax, field handling, script execution methods, and how to use BEGIN and END blocks for pre‑ and post‑processing of data streams on Unix/Linux systems.

Unixawkgawk
0 likes · 8 min read
Mastering gawk: Powerful Text Processing on Unix/Linux
IT Xianyu
IT Xianyu
Jun 5, 2025 · Operations

Diagnose MySQL Slow Queries on AlmaLinux: One‑Click Shell Monitoring Scripts

Learn how to quickly pinpoint MySQL performance bottlenecks on AlmaLinux by using built‑in tools like top, iotop, ss, and netstat, and automate snapshot collection with a simple Bash script that records system and container metrics for later analysis.

AlmaLinuxDockerMySQL
0 likes · 20 min read
Diagnose MySQL Slow Queries on AlmaLinux: One‑Click Shell Monitoring Scripts
DevOps Operations Practice
DevOps Operations Practice
Jun 3, 2025 · Operations

7 Practical Shell Scripts for Linux Automation

This article presents seven practical Bash shell scripts for Linux system administration, covering automatic file backup, disk usage alerts, old log cleanup, server reachability checks, DNS resolution monitoring, HTTP service health checks, and random password generation, each with explanations and code examples.

Disk usage alertLinux automationLog cleanup
0 likes · 6 min read
7 Practical Shell Scripts for Linux Automation
Raymond Ops
Raymond Ops
May 30, 2025 · Operations

Mastering sed and expect: Powerful One‑Liner Tricks for Linux Automation

This guide introduces the Linux stream editor sed and the automation tool expect, covering essential options, line‑based editing, pattern matching, backup strategies, substitution techniques, grouping, practical exercises, non‑interactive input methods, and expect scripting fundamentals for automating interactive shell sessions.

Linux automationexpectsed
0 likes · 7 min read
Mastering sed and expect: Powerful One‑Liner Tricks for Linux Automation
IT Xianyu
IT Xianyu
May 26, 2025 · Fundamentals

A Step‑by‑Step Tutorial for Writing Basic Shell Scripts on Linux

This article walks beginners through creating, editing, granting permissions to, and executing simple Bash scripts such as hello.sh and name_check.sh, while also covering common pitfalls, directory organization, and essential command‑line tools for effective shell scripting.

LinuxPermissionsTutorial
0 likes · 7 min read
A Step‑by‑Step Tutorial for Writing Basic Shell Scripts on Linux
Deepin Linux
Deepin Linux
May 19, 2025 · Operations

Linux System Performance Bottleneck Analysis and Optimization Guide

This comprehensive guide explains how to monitor, diagnose, and resolve Linux server performance bottlenecks by covering essential command‑line tools, logging, automated scripts, and optimization techniques for CPU, memory, disk I/O, and network, with practical case studies and code examples.

LinuxPerformance MonitoringSystem Administration
0 likes · 40 min read
Linux System Performance Bottleneck Analysis and Optimization Guide
Efficient Ops
Efficient Ops
Nov 17, 2024 · Operations

Master Linux Find: 8 Powerful Ways to Locate and Manage Files

This article explains eight practical uses of the Linux find command—including searching by name, type, timestamps, size, permissions, ownership, executing actions on matches, and directory name patterns—providing clear examples and code snippets to help administrators efficiently locate and manage files.

Linuxawkfile-search
0 likes · 8 min read
Master Linux Find: 8 Powerful Ways to Locate and Manage Files
Practical DevOps Architecture
Practical DevOps Architecture
Oct 24, 2024 · Operations

Shell Scripts for MySQL Database Backup and Nginx Daily Log Rotation

This article presents two Bash scripts that automate MySQL multi‑database backups with per‑table dumps and rotate Nginx access logs daily by moving them into month‑based directories and signaling Nginx to reopen its logs.

AutomationMySQLbackup
0 likes · 3 min read
Shell Scripts for MySQL Database Backup and Nginx Daily Log Rotation
Efficient Ops
Efficient Ops
Sep 29, 2024 · Operations

Essential Linux Ops Tools Every Sysadmin Must Master

This guide outlines the ten core tool categories—from Linux basics and networking services to scripting, firewalls, monitoring, clustering, and backup—that a Linux operations engineer should master to become an effective sysadmin.

LinuxMonitoringdatabase
0 likes · 6 min read
Essential Linux Ops Tools Every Sysadmin Must Master
Code Ape Tech Column
Code Ape Tech Column
Jul 26, 2024 · Operations

Bash Scripts for File Consistency Checks, Log Monitoring, and System Automation

This article presents a comprehensive collection of Bash scripts that perform tasks such as verifying file consistency across servers, scheduled log cleaning, network traffic monitoring, numeric analysis in files, automated FTP downloads, interactive number games, Nginx 502 detection, variable assignments, bulk file renaming, IP address validation, and various system administration operations.

AutomationMonitoringSystem Administration
0 likes · 24 min read
Bash Scripts for File Consistency Checks, Log Monitoring, and System Automation
DevOps Operations Practice
DevOps Operations Practice
Nov 11, 2023 · Operations

How to Check File Existence in Bash Using test, [ ], [[ ]], and stat Commands

This tutorial explains several Bash techniques—including the test command, single‑bracket and double‑bracket syntaxes, and the stat utility—to reliably determine whether a file exists on a Linux system, complete with example code snippets and a reference table of test flags.

Linuxbashfile existence
0 likes · 5 min read
How to Check File Existence in Bash Using test, [ ], [[ ]], and stat Commands
Architecture Digest
Architecture Digest
Feb 2, 2023 · Cloud Native

Implementing a Minimal Docker with Shell: Namespaces, Cgroups, and OverlayFS

This tutorial demonstrates how to build a lightweight Docker‑like container runtime using Bash by exploring Linux namespaces, cgroups, and overlayfs, providing step‑by‑step commands, code examples, and a full script that mimics core Docker functionalities for deeper operational understanding.

ContainerizationDockerNamespaces
0 likes · 29 min read
Implementing a Minimal Docker with Shell: Namespaces, Cgroups, and OverlayFS
vivo Internet Technology
vivo Internet Technology
Feb 1, 2023 · Cloud Native

Implementing a Simple Docker with Shell: Namespaces, Cgroups, and OverlayFS

The article walks readers through building a minimal Docker‑like container runtime entirely in shell, explaining and demoing Linux namespaces, cgroups, and OverlayFS for isolation, resource control, and layered filesystems, and culminates in a concise Bocker script that implements core Docker commands.

BockerContainerizationDocker
0 likes · 31 min read
Implementing a Simple Docker with Shell: Namespaces, Cgroups, and OverlayFS
Laravel Tech Community
Laravel Tech Community
Jul 18, 2022 · Operations

Common Linux Commands for Analyzing Web Server Logs and Network Connections

This article presents a collection of practical Linux shell commands—primarily using awk, grep, sort, uniq, netstat, and tcpdump—to count unique IPs, identify most‑visited pages, filter logs by time or URL, monitor connection states, and calculate traffic statistics for Apache or other web servers.

awklog analysisnetwork monitoring
0 likes · 10 min read
Common Linux Commands for Analyzing Web Server Logs and Network Connections
Efficient Ops
Efficient Ops
Jul 4, 2022 · Operations

Master Essential Linux Commands: Find, Sed, Disk Monitoring, and More

This guide presents a collection of practical Linux command‑line techniques—including file searching, batch extraction, text manipulation with sed, directory checks, disk usage monitoring, log analysis, firewall rules, and SNMP queries—to help system administrators automate routine tasks efficiently.

AutomationLinuxSystem Administration
0 likes · 9 min read
Master Essential Linux Commands: Find, Sed, Disk Monitoring, and More
Laravel Tech Community
Laravel Tech Community
Jun 28, 2022 · Operations

Comprehensive Collection of Linux Bash Scripts for System Administration Tasks

This article provides a extensive set of Bash scripts covering common Linux system administration tasks such as user management, service deployment, monitoring, backup, networking, and automation, offering ready-to-use code snippets and explanations for each operation.

AutomationLinuxSystem Administration
0 likes · 48 min read
Comprehensive Collection of Linux Bash Scripts for System Administration Tasks
Python Programming Learning Circle
Python Programming Learning Circle
May 29, 2022 · Fundamentals

Using Python to Enhance Unix Shell Command Pipelines

This article explains how Python can replace or augment traditional Unix shell scripts for tasks like counting unique users, demonstrating the advantages of Python's readability, modularity, and extensive libraries while showing how to integrate Python scripts seamlessly into command‑line pipelines with tools such as sort, head, and tail.

AutomationUnixcommand-line
0 likes · 8 min read
Using Python to Enhance Unix Shell Command Pipelines
Efficient Ops
Efficient Ops
Apr 14, 2022 · Operations

30 Essential Bash Scripts Every Linux Engineer Should Master

This article compiles a comprehensive collection of practical Bash scripts—from a number‑guessing game and remote IP counting to system monitoring, user management, and one‑click LNMP deployment—providing Linux engineers with ready‑to‑use tools that boost productivity and automate routine tasks.

AutomationLinuxScripts
0 likes · 21 min read
30 Essential Bash Scripts Every Linux Engineer Should Master
Laravel Tech Community
Laravel Tech Community
Feb 7, 2022 · Operations

Linux Basic Operations and Command Reference

This article provides a comprehensive reference of essential Linux commands and procedures, covering system shutdown and reboot, hardware and environment inspection, file and directory management, user and permission handling, networking utilities, performance monitoring tools, and common text processing techniques for administrators and developers.

LinuxPerformance MonitoringSystem Administration
0 likes · 18 min read
Linux Basic Operations and Command Reference
IT Services Circle
IT Services Circle
Feb 2, 2022 · Backend Development

An Introduction to zx: Simplifying Script Writing with Node

The article introduces the zx tool—a Node‑based scripting utility that streamlines command‑line automation by wrapping child_process, compares it with Bash and plain Node scripts, and demonstrates its advantages through practical code examples for tasks like batch media compression.

AutomationNode.jscommand-line
0 likes · 8 min read
An Introduction to zx: Simplifying Script Writing with Node