Tag

bash

0 views collected around this technical thread.

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.

LinuxPermissionsbash
0 likes · 7 min read
A Step‑by‑Step Tutorial for Writing Basic Shell Scripts on Linux
IT Xianyu
IT Xianyu
May 21, 2025 · Operations

Learn Shell Scripting: From Hello World to Practical Tools

This tutorial walks beginners through creating and executing Bash scripts on Linux, covering basics like the shebang, variables, conditionals, loops, functions, and debugging, and provides practical examples such as file checks, service monitoring, and user interaction to build useful automation tools.

AutomationLinuxbash
0 likes · 7 min read
Learn Shell Scripting: From Hello World to Practical Tools
Raymond Ops
Raymond Ops
May 14, 2025 · Operations

Master Bash Test Commands: Conditional Expressions, Comparisons, and File Checks

This article explains Bash's test command and related conditional operators, demonstrates various if/then syntaxes, arithmetic and string comparisons, and shows how to test file attributes with practical code examples for Linux shell scripting.

Linuxbashconditional
0 likes · 6 min read
Master Bash Test Commands: Conditional Expressions, Comparisons, and File Checks
Cognitive Technology Team
Cognitive Technology Team
May 13, 2025 · Operations

Essential Linux Log Files to Monitor and How to Access Them

Monitoring key Linux log files—such as syslog, auth.log, kern.log, and others—is crucial for system health, security, and troubleshooting, and this guide explains the purpose of each log, practical commands for viewing them, and automation techniques using scripts, cron, and tools like journalctl and Sematext.

LinuxSecuritybash
0 likes · 20 min read
Essential Linux Log Files to Monitor and How to Access Them
Efficient Ops
Efficient Ops
Jan 5, 2025 · Operations

Master Linux Sysadmin: 20 Essential Commands & Solutions Explained

This guide presents 20 practical Linux, security, networking, and Python questions with step‑by‑step command examples, covering bulk image download, file sorting, port monitoring, header retrieval, user account facts, RAID misconceptions, load‑balancer tools, time measurement, rewrite flags, cookie vs session, HTTP versions, common web vulnerabilities, DoS attacks, incident response, TCP handshake, TIME_WAIT optimization, Python range differences, set intersections, and parallel remote execution.

LinuxPythonSecurity
0 likes · 15 min read
Master Linux Sysadmin: 20 Essential Commands & Solutions Explained
Practical DevOps Architecture
Practical DevOps Architecture
Nov 27, 2024 · Operations

Bash Script for Key‑Based Multi‑Host SSH Access

This Bash script automates key‑based SSH authentication across multiple hosts by scanning a subnet, generating a key pair, installing sshpass, copying the public key and known_hosts file to each reachable machine, and ensuring password‑less login for subsequent connections.

AutomationOperationsbash
0 likes · 3 min read
Bash Script for Key‑Based Multi‑Host SSH Access
Efficient Ops
Efficient Ops
Nov 27, 2024 · Operations

Essential Bash Scripts for Linux Engineers: 35 Handy Utilities

This article compiles 35 practical Bash scripts ranging from a number‑guessing game and network monitoring to automated MySQL backups and Tomcat management, providing Linux engineers with ready‑to‑use code snippets that boost productivity and simplify routine system‑administration tasks.

AutomationLinuxOperations
0 likes · 16 min read
Essential Bash Scripts for Linux Engineers: 35 Handy Utilities
Practical DevOps Architecture
Practical DevOps Architecture
Nov 26, 2024 · Databases

Bash Script for Installing MongoDB on Linux

This article provides a complete Bash script that automates downloading, extracting, configuring, and starting MongoDB on Linux systems, handling OS detection, prerequisite installation, file preparation, and color‑coded status messages for success, failure, and warnings.

InstallationLinuxMongoDB
0 likes · 4 min read
Bash Script for Installing MongoDB on Linux
DevOps Cloud Academy
DevOps Cloud Academy
Nov 22, 2024 · Operations

12 Essential Bash Scripts for DevOps Automation

This article presents twelve practical Bash scripts that automate common DevOps tasks such as system updates, disk monitoring, backups, log rotation, SSH key setup, MySQL dumping, Docker cleanup, Kubernetes pod checks, SSL certificate monitoring, Git pulling, user management, and service health verification.

AutomationDevOpsLinux
0 likes · 11 min read
12 Essential Bash Scripts for DevOps Automation
Practical DevOps Architecture
Practical DevOps Architecture
Nov 3, 2024 · Operations

Shell Scripts for Batch Renaming .sh Files and Monitoring Port 80 Requests

This article provides two Bash scripts: one that recursively renames all ".sh" files to ".shell" and deletes their second line, and another that repeatedly checks the top‑20 IPs on port 80, reports activity when the smallest request count exceeds 500, or retries after 600 seconds.

LinuxOperationsbash
0 likes · 3 min read
Shell Scripts for Batch Renaming .sh Files and Monitoring Port 80 Requests
Practical DevOps Architecture
Practical DevOps Architecture
Oct 30, 2024 · Operations

Bash Scripts for Real‑Time Network Traffic and Disk Usage Monitoring

This article provides two Bash scripts: one that continuously displays inbound and outbound traffic of a specified network interface, and another that remotely checks disk usage on up to 100 servers, issuing warnings when partitions exceed a defined threshold.

LinuxNetworkOperations
0 likes · 3 min read
Bash Scripts for Real‑Time Network Traffic and Disk Usage Monitoring
Practical DevOps Architecture
Practical DevOps Architecture
Oct 22, 2024 · Operations

Bash Scripts for Automatic DOS Attack Blocking and MySQL Database Backup

This article provides two Bash scripts: one that automatically detects and blocks IP addresses generating excessive requests to an Nginx server using iptables, and another that backs up all non‑system MySQL databases with timestamped filenames, both designed for easy server operation and maintenance.

AutomationOperationsbash
0 likes · 3 min read
Bash Scripts for Automatic DOS Attack Blocking and MySQL Database Backup
Efficient Ops
Efficient Ops
Oct 8, 2024 · Operations

Master Linux Process & User Queries with Powerful Bash Scripts

This guide provides Bash scripts that let you retrieve detailed information about Linux processes by PID or name, query user account details, and apply a series of system hardening tweaks such as password policies, login restrictions, and file attribute protections.

LinuxProcess Managementbash
0 likes · 12 min read
Master Linux Process & User Queries with Powerful Bash Scripts
Efficient Ops
Efficient Ops
Sep 4, 2024 · Operations

Essential Bash Scripts for Linux Operations: Sync, Monitoring, and Automation

A comprehensive collection of Bash scripts demonstrates how to verify file consistency across servers, automate log rotation, monitor network traffic, manage users and passwords, detect service failures, and enforce security policies, providing practical solutions for everyday Linux system administration tasks.

AutomationLinuxScripts
0 likes · 25 min read
Essential Bash Scripts for Linux Operations: Sync, Monitoring, and Automation
Efficient Ops
Efficient Ops
Aug 18, 2024 · Operations

Essential Bash Scripts for Linux Ops: Monitoring, Deployment & Automation

A curated collection of ready‑to‑use Bash scripts that help you monitor MySQL replication, track directory changes, batch‑create users, detect website issues, execute remote commands, deploy LNMP stacks, check server resource usage, identify high‑load processes, and automate Java or PHP project releases.

AutomationDevOpsLinux
0 likes · 12 min read
Essential Bash Scripts for Linux Ops: Monitoring, Deployment & Automation
IT Services Circle
IT Services Circle
Aug 2, 2024 · Operations

Shell Script for Collecting Linux CPU, Memory, and Disk I/O Metrics

This article presents a Bash script that gathers comprehensive Linux system metrics—including CPU core count, utilization percentages, context switches, interrupts, load averages, memory and swap usage, and disk I/O statistics—explaining each command and its purpose for effective server monitoring.

LinuxSystemMetricsbash
0 likes · 13 min read
Shell Script for Collecting Linux CPU, Memory, and Disk I/O Metrics
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.

Automationbashexpect
0 likes · 24 min read
Bash Scripts for File Consistency Checks, Log Monitoring, and System Automation
Efficient Ops
Efficient Ops
Jul 3, 2024 · Fundamentals

Master Essential Linux Shell Text Tools: Find, Grep, Awk, Sed & More

This guide introduces the most frequently used Linux shell utilities for text processing—including find, grep, xargs, sort, uniq, tr, cut, paste, wc, sed, and awk—explaining their core options, practical examples, and how to combine them for powerful command‑line workflows.

Linuxbashcommand line
0 likes · 17 min read
Master Essential Linux Shell Text Tools: Find, Grep, Awk, Sed & More