Tagged articles

shell scripting

319 articles · Page 2 of 4
Liangxu Linux
Liangxu Linux
Sep 16, 2024 · Fundamentals

Mastering Sed: Essential Commands and Real‑World Examples for Powerful Text Processing

Sed, the powerful stream editor on Linux/Unix, enables non‑interactive text manipulation such as searching, replacing, deleting, and inserting lines; this guide explains its syntax, address ranges, common commands, and provides practical examples like bulk domain replacement, comment removal, and adding copyright headers.

command linesedshell scripting
0 likes · 6 min read
Mastering Sed: Essential Commands and Real‑World Examples for Powerful Text Processing
Open Source Linux
Open Source Linux
Sep 13, 2024 · Operations

Essential Bash Scripts for Server Monitoring, Automation, and Security

This article presents a collection of practical Bash scripts that cover file consistency checks, scheduled log management, network traffic monitoring, numeric analysis, FTP downloads, user input handling, Nginx 502 detection, variable assignments, bulk file renaming, text processing, port scanning, word filtering, command menus, SSH automation with Expect, user creation, Apache monitoring, password rotation, iptables rate‑limiting, and IP validation, providing sysadmins with ready‑to‑use solutions for everyday Linux operations.

Server Automationbashmonitoring
0 likes · 25 min read
Essential Bash Scripts for Server Monitoring, Automation, and Security
Linux Cloud Computing Practice
Linux Cloud Computing Practice
Aug 28, 2024 · Operations

Essential Bash Scripts for Linux System Monitoring and Automation

This article presents a curated collection of Bash scripts that automate key Linux operations such as MySQL replication monitoring, directory change detection, bulk user creation, website health checks, remote command execution, one‑click LNMP deployment, resource usage reporting, high‑resource process identification, and automated Java and PHP project deployment.

Linuxautomationbash
0 likes · 12 min read
Essential Bash Scripts for Linux System Monitoring and Automation
MaGe Linux Operations
MaGe Linux Operations
Aug 11, 2024 · Operations

20 Essential Shell Functions to Supercharge Your Scripts

This article presents twenty practical Bash functions covering file checks, directory handling, date calculations, colored output, service management, and more, providing ready-to-use snippets that streamline common shell scripting tasks for system administrators and developers.

System Automationbash functionsshell scripting
0 likes · 5 min read
20 Essential Shell Functions to Supercharge Your Scripts
MaGe Linux Operations
MaGe Linux Operations
Jul 31, 2024 · Fundamentals

Master the Linux cut Command: Extract Text Columns Like a Pro

Learn how to use the Linux cut command for powerful text processing, including selecting character columns, ranges, specific fields with delimiters, complementing fields, changing output delimiters, and combining cut with other Unix tools such as grep, sed, and ps.

LinuxUnixcommand-line
0 likes · 11 min read
Master the Linux cut Command: Extract Text Columns Like a Pro
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
Ops Development & AI Practice
Ops Development & AI Practice
Jun 7, 2024 · Operations

How to Build a Robust Shell Function for Capturing Command Output and Errors

This guide explains how to capture command output and error messages in shell scripts, demonstrates basic output capture with $(), shows conditional handling using if statements, and provides a reusable run_command function—both simple and enhanced versions—to improve script robustness and maintainability.

bash functioncommand outputerror handling
0 likes · 5 min read
How to Build a Robust Shell Function for Capturing Command Output and Errors
Liangxu Linux
Liangxu Linux
Mar 12, 2024 · Fundamentals

Mastering awk: Essential Syntax, Patterns, and Real-World Examples

This guide introduces awk as a powerful text‑processing tool, covering its basic syntax, field separators, pattern matching, arithmetic operations, built‑in variables, custom functions, control flow, and how to process both files and command output with clear code examples.

command linedata-extractionshell scripting
0 likes · 6 min read
Mastering awk: Essential Syntax, Patterns, and Real-World Examples
Liangxu Linux
Liangxu Linux
Feb 25, 2024 · Fundamentals

Master the Linux ‘tr’ Command: Practical Text‑Manipulation Examples

This guide explains how to use the powerful Linux tr command for character replacement, deletion, case conversion, whitespace compression, special‑character escaping, and reading character sets from files, providing clear examples and step‑by‑step code snippets for each use case.

LinuxUnix utilitiescommand line
0 likes · 6 min read
Master the Linux ‘tr’ Command: Practical Text‑Manipulation Examples
Liangxu Linux
Liangxu Linux
Feb 6, 2024 · Operations

Master Linux Process Management with the ps Command: Tips & Examples

This guide explains the Linux ps command’s syntax, common options, and advanced usage—showing how to list processes, filter by state, view resource usage, display process trees, sort by CPU or memory, monitor in real time, and combine with kill or pkill to manage processes effectively.

Linuxprocess monitoringps command
0 likes · 8 min read
Master Linux Process Management with the ps Command: Tips & Examples
Liangxu Linux
Liangxu Linux
Jan 20, 2024 · Operations

Master Linux’s watch Command: Real‑Time Monitoring and Advanced Tips

This guide explains how to install and use the Linux watch command for periodic command execution, system‑load monitoring, live log viewing, custom script scheduling, and several advanced options such as custom intervals, output redirection, screen clearing, timestamps, and display formatting.

Linuxcommand lineshell scripting
0 likes · 5 min read
Master Linux’s watch Command: Real‑Time Monitoring and Advanced Tips
Liangxu Linux
Liangxu Linux
Nov 1, 2023 · Operations

Mastering Rsync: From Basics to Real‑Time Sync with Inotify

This guide explains rsync's fundamentals, usage in ssh and daemon modes, detailed configuration options, and how to combine it with inotify‑tools for real‑time, bidirectional file synchronization on Linux systems, including practical command examples and scripting tips.

Linuxdaemonfile synchronization
0 likes · 18 min read
Mastering Rsync: From Basics to Real‑Time Sync with Inotify
Open Source Linux
Open Source Linux
Sep 18, 2023 · Operations

Master 18 Essential Bash Scripts for Linux System Automation

This article presents a curated collection of eighteen practical Bash scripts that automate common Linux system tasks such as file consistency checks, scheduled log cleaning, network traffic monitoring, user management, firewall rules, and service health checks, providing ready‑to‑run examples for sysadmins.

automationbashshell scripting
0 likes · 23 min read
Master 18 Essential Bash Scripts for Linux System Automation
Java Backend Technology
Java Backend Technology
Aug 29, 2023 · Operations

18 Must‑Know Bash Scripts to Automate Linux System Administration

This article presents a curated collection of eighteen Bash scripts that demonstrate how to automate common Linux system administration tasks such as file consistency checks, scheduled log cleaning, network traffic monitoring, numeric analysis, FTP operations, user management, firewall rules, and IP blocking, providing clear explanations and ready‑to‑run code examples.

bashshell scriptingsysadmin
0 likes · 24 min read
18 Must‑Know Bash Scripts to Automate Linux System Administration
Liangxu Linux
Liangxu Linux
Aug 24, 2023 · Fundamentals

Master Bash File Redirection: From /dev/null to TCP Streams

This guide demonstrates how to use Bash to redirect standard input, output, and error streams to files, /dev/null, and even a TCP server, illustrating each technique with clear examples and step‑by‑step commands.

bashfile redirectionshell scripting
0 likes · 7 min read
Master Bash File Redirection: From /dev/null to TCP Streams
Liangxu Linux
Liangxu Linux
Aug 20, 2023 · Fundamentals

What Does exec Do in Bash Scripts? A Hands‑On Exploration

This article explains the purpose of the Bash built‑in exec command, demonstrates its effect on process trees through step‑by‑step experiments, and highlights important cautions when using exec in shell scripts.

Process Managementbashexec
0 likes · 4 min read
What Does exec Do in Bash Scripts? A Hands‑On Exploration
Liangxu Linux
Liangxu Linux
Jun 4, 2023 · Operations

Master Shell Scripting: From Basics to Real‑World Automation

This comprehensive guide introduces shell fundamentals, explains common shells, scripting conventions, variables, control structures, loops, functions, arrays, and provides practical scripts for tasks like backups, system monitoring, and LNMP deployment, all illustrated with clear Bash examples.

Backup Scriptsbashlinux automation
0 likes · 23 min read
Master Shell Scripting: From Basics to Real‑World Automation
MaGe Linux Operations
MaGe Linux Operations
Apr 29, 2023 · Operations

34 Essential Linux Bash Scripts Every Sysadmin Should Know

This article compiles a curated collection of 34 practical Bash scripts for Linux engineers, covering tasks such as number guessing games, network monitoring, user management, service control, log backup, and system health checks, providing ready‑to‑run code snippets to boost productivity and automate routine operations.

automationbashscripts
0 likes · 20 min read
34 Essential Linux Bash Scripts Every Sysadmin Should Know
MaGe Linux Operations
MaGe Linux Operations
Apr 17, 2023 · Backend Development

Master Bash: 40 Essential Shell Script Techniques for Linux

This comprehensive guide walks you through 40 practical Bash shell scripting examples—from a simple Hello World program to advanced file handling, conditionals, loops, functions, and system maintenance—showing how to write, execute, and debug scripts that automate everyday Linux tasks.

Tutorialautomationbash
0 likes · 21 min read
Master Bash: 40 Essential Shell Script Techniques for Linux
MaGe Linux Operations
MaGe Linux Operations
Apr 12, 2023 · Fundamentals

Master Bash: 40 Essential Shell Scripts Every Linux User Should Know

This comprehensive guide walks you through the fundamentals of Bash scripting on Linux, covering everything from a simple Hello World program and echo usage to loops, conditionals, functions, file manipulation, directory handling, and system maintenance, complete with clear code examples for each concept.

automationbashcommand line
0 likes · 22 min read
Master Bash: 40 Essential Shell Scripts Every Linux User Should Know
MaGe Linux Operations
MaGe Linux Operations
Feb 14, 2023 · Operations

Master Linux Environment Variables: 6 Proven Configuration Methods

This guide explains how to read and configure Linux environment variables, covering six methods—including export, editing ~/.bashrc, ~/.bash_profile, /etc/bashrc, /etc/profile, and /etc/environment—while detailing the loading order, user vs system scopes, and practical tips for managing PATH and custom variables.

PATHSystem Configurationbash
0 likes · 13 min read
Master Linux Environment Variables: 6 Proven Configuration Methods
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.

Containerizationcgroupsnamespaces
0 likes · 29 min read
Implementing a Minimal Docker with Shell: Namespaces, Cgroups, and OverlayFS
Liangxu Linux
Liangxu Linux
Jan 4, 2023 · Fundamentals

Unlock Hidden Linux Terminal Tricks: Send Output, Reload .bashrc, and More

This guide explores advanced Linux terminal techniques—including sending command output between terminal windows, efficiently reloading .bashrc, using alert aliases for long‑running tasks, leveraging the terminal as a calculator, and mastering subshells, command chaining, and brace expansion—to boost developer productivity.

LinuxUnixshell scripting
0 likes · 9 min read
Unlock Hidden Linux Terminal Tricks: Send Output, Reload .bashrc, and More
MaGe Linux Operations
MaGe Linux Operations
Dec 27, 2022 · Operations

Master Essential Linux Commands for Efficient System Operations

This article shares practical Linux command techniques—including xargs, background execution, process monitoring, multitail, continuous ping logging, TCP state inspection, and SSH port forwarding—to help system administrators streamline tasks, improve script efficiency, and troubleshoot performance issues.

Linuxcommand linenetworking
0 likes · 10 min read
Master Essential Linux Commands for Efficient System Operations
Open Source Linux
Open Source Linux
Oct 17, 2022 · Operations

Mastering the Linux find Command: 7 Powerful Use Cases for Devs

This article explains why the Linux find command is essential for backend developers and interviewees, demonstrates how to delete log files older than a year, and walks through seven practical find usages—including name patterns, file types, timestamps, size, permissions, ownership, and executing actions on matched files.

Linuxfind commandshell scripting
0 likes · 9 min read
Mastering the Linux find Command: 7 Powerful Use Cases for Devs
Liangxu Linux
Liangxu Linux
Sep 26, 2022 · Fundamentals

Master Bash Scripting: Variables, Loops, Functions, and More

This guide introduces Bash scripting fundamentals, covering variable declaration, printing with echo and printf, comments, user input, arrays, conditional statements, loops, functions, and tips for extending scripts with other languages, enabling readers to automate tasks on Unix-like systems.

FunctionsLoopsautomation
0 likes · 8 min read
Master Bash Scripting: Variables, Loops, Functions, and More
Liangxu Linux
Liangxu Linux
Jul 26, 2022 · Fundamentals

7 Practical Shell Script Examples to Boost Your Linux Automation Skills

This article presents seven ready‑to‑use Bash scripts that demonstrate parallel host querying, process statistics gathering, file renaming, directory management, log analysis, network request monitoring, and file size sorting, each with complete code and step‑by‑step explanations.

automationlog-analysisprocess monitoring
0 likes · 8 min read
7 Practical Shell Script Examples to Boost Your Linux Automation Skills
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.

automationcommand lineshell scripting
0 likes · 9 min read
Master Essential Linux Commands: Find, Sed, Disk Monitoring, and More
Open Source Linux
Open Source Linux
Jun 27, 2022 · Fundamentals

Avoid 40 Common Bash Pitfalls: Essential Tips for Safer Shell Scripts

This article compiles over forty everyday Bash programming mistakes that both beginners and seasoned users often overlook, explains why each pattern is problematic, and provides safe, portable alternatives with clear examples to improve script reliability and maintainability.

bashbash pitfallsshell scripting
0 likes · 32 min read
Avoid 40 Common Bash Pitfalls: Essential Tips for Safer Shell Scripts
Open Source Linux
Open Source Linux
Jun 22, 2022 · Operations

Master the Linux tee Command: Real‑World Examples and Tips

This guide explains what the Linux tee command does, how it’s installed, its basic syntax and options, and provides practical examples—including writing output to files, appending data, handling multiple files, piping to other commands, ignoring interrupts, hiding output, and using sudo—so readers can efficiently capture and process command‑line output.

Linuxoutput redirectionshell scripting
0 likes · 8 min read
Master the Linux tee Command: Real‑World Examples and Tips
Open Source Linux
Open Source Linux
Jun 13, 2022 · Operations

Master the Linux ‘find’ Command: 7 Real‑World Uses & Interview Solution

This article explains why the Linux find command is essential for backend and operations engineers, walks through a common interview question about deleting year‑old log files, and then details seven practical find usages—including searching by name, type, timestamps, size, permissions, ownership, and executing commands on matches.

Linuxfile managementfind command
0 likes · 7 min read
Master the Linux ‘find’ Command: 7 Real‑World Uses & Interview Solution
Liangxu Linux
Liangxu Linux
Jun 8, 2022 · Fundamentals

Master the Linux tee Command: Write, Append, and Redirect Output Efficiently

This guide explains the Linux tee utility, covering its purpose, installation verification, basic syntax, useful options, and seven practical examples that demonstrate writing to files, appending data, handling multiple outputs, ignoring interrupts, and combining tee with sudo for privileged writes.

TEEUnixcommand line
0 likes · 7 min read
Master the Linux tee Command: Write, Append, and Redirect Output Efficiently
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.

Unixautomationcommand-line
0 likes · 8 min read
Using Python to Enhance Unix Shell Command Pipelines
ITPUB
ITPUB
May 26, 2022 · Operations

Master Shell Scripting: From Basics to Advanced Techniques

This comprehensive guide introduces shell programming fundamentals, demonstrates how to write, execute, and manage scripts, explains variables, strings, parameters, arithmetic, control structures, functions, arrays, and file inclusion, and provides practical code examples for Linux environments.

FunctionsLinuxarrays
0 likes · 23 min read
Master Shell Scripting: From Basics to Advanced Techniques
MaGe Linux Operations
MaGe Linux Operations
May 18, 2022 · Fundamentals

Avoid 40 Common Bash Pitfalls: Best Practices for Safe Shell Scripting

This article compiles more than 40 everyday Bash programming mistakes that both beginners and veterans often overlook, explains why each example is wrong, and provides clear, corrected alternatives along with references to deeper resources, helping readers write more reliable shell scripts.

Best Practicesbashdebugging
0 likes · 32 min read
Avoid 40 Common Bash Pitfalls: Best Practices for Safe Shell Scripting
Open Source Linux
Open Source Linux
Apr 22, 2022 · Operations

Essential Bash Scripts for Linux Engineers: From Games to System Monitoring

This article compiles a collection of practical Bash scripts for Linux engineers, covering interactive games, network connection checks, process management, system monitoring, file operations, user account handling, and automated backups, each presented with clear explanations and ready-to-use code examples.

backupbashshell scripting
0 likes · 23 min read
Essential Bash Scripts for Linux Engineers: From Games to System Monitoring
Programmer DD
Programmer DD
Mar 9, 2022 · Operations

9 Essential Shell Scripts Every Sysadmin Should Keep Handy

This article presents nine practical Bash scripts covering DOS attack mitigation, email alerts, MySQL backups, Nginx log rotation and analysis, network traffic monitoring, server initialization, and disk usage checks across multiple hosts, each with ready-to-use code examples.

Linuxautomationbash
0 likes · 11 min read
9 Essential Shell Scripts Every Sysadmin Should Keep Handy
Liangxu Linux
Liangxu Linux
Mar 5, 2022 · Fundamentals

Master Bash Shell: Core Concepts, Commands, and Scripting Tricks

This guide explains why the command‑line interface is called a Shell, clarifies prompts and carriage returns, and walks through essential Bash features such as echo options, quoting rules, variable export, exec vs source, grouping, parameter expansion, arrays, arithmetic, redirection, conditional statements, loops, and control flow operators.

Control structuresLinuxRedirection
0 likes · 12 min read
Master Bash Shell: Core Concepts, Commands, and Scripting Tricks
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 Monitoringcommand line
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.

Node.jscommand linescript optimization
0 likes · 8 min read
An Introduction to zx: Simplifying Script Writing with Node
Efficient Ops
Efficient Ops
Dec 16, 2021 · Operations

Essential Shell Script Coding Standards for Reliable Maintenance

This guide outlines comprehensive shell scripting standards—including why they matter, core principles, file naming, encoding, line length, indentation, naming conventions, comment rules, error handling, and best‑practice patterns—to improve readability, maintainability, and consistency across Bash scripts in production environments.

bashcode qualitycoding standards
0 likes · 25 min read
Essential Shell Script Coding Standards for Reliable Maintenance
Open Source Linux
Open Source Linux
Dec 8, 2021 · Operations

Essential Linux Command-Line Tricks for System Administration

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

Linuxshell scripting
0 likes · 10 min read
Essential Linux Command-Line Tricks for System Administration
MaGe Linux Operations
MaGe Linux Operations
Nov 5, 2021 · Operations

Master Shell Scripting: Free 70‑Page Handbook & 100 Ready‑to‑Use Scripts

This article introduces the role of shell scripts in automating system operations, presents a free 70‑page practical handbook covering fundamentals to advanced topics, and offers 100 ready‑to‑run script examples ranging from basic hello‑world to complex monitoring and deployment tasks, helping readers quickly boost their scripting skills.

automationbashscript examples
0 likes · 5 min read
Master Shell Scripting: Free 70‑Page Handbook & 100 Ready‑to‑Use Scripts
macrozheng
macrozheng
Nov 4, 2021 · Fundamentals

Master Shell Scripting: From Basics to Advanced Control Structures

This tutorial walks Java developers through the fundamentals of Linux shell scripting, covering how to create and run scripts, check and set the default shell, manage permissions, define and manipulate variables, and implement flow‑control constructs such as if/else, case, for, and while loops with practical code examples.

automationbashcontrol flow
0 likes · 11 min read
Master Shell Scripting: From Basics to Advanced Control Structures
Open Source Linux
Open Source Linux
Sep 12, 2021 · Operations

Master Fast, Secure File Sharing with transfer.sh: Command-Line Guide

This article explains why traditional cloud storage can be slow or limited, introduces the free command‑line tool transfer.sh, lists its key features, and provides step‑by‑step examples for uploading, downloading, encrypting, and automating file transfers across platforms.

file sharingshell scriptingtransfer.sh
0 likes · 8 min read
Master Fast, Secure File Sharing with transfer.sh: Command-Line Guide
Open Source Linux
Open Source Linux
Sep 10, 2021 · Information Security

How a 13‑Character Fork Bomb Crashes Linux and How to Stop It

Jaromil’s 13‑character Linux fork bomb demonstrates how a tiny Bash function can recursively spawn processes, exhausting system resources and causing a denial‑of‑service crash, while the article explains its mechanics, shows a live cloud‑VM demo, and provides practical mitigation using ulimit and security limits.

DOSLinuxfork bomb
0 likes · 5 min read
How a 13‑Character Fork Bomb Crashes Linux and How to Stop It
MaGe Linux Operations
MaGe Linux Operations
Sep 6, 2021 · Operations

Batch Rename Files Using sed and Bash Substring Techniques

This guide demonstrates three practical methods for bulk renaming files on Linux: using sed for in‑place text replacement, applying Bash variable substring manipulation, and changing file extensions with parameter expansion, each illustrated with complete command‑line examples.

File RenamingLinuxbash
0 likes · 8 min read
Batch Rename Files Using sed and Bash Substring Techniques
Java Backend Technology
Java Backend Technology
Aug 5, 2021 · Operations

Boost Your Workflow: Essential Command-Line Tools Every Developer Needs

This article curates a collection of powerful command-line utilities—including ag, tig, mycli, jq, shellcheck, fzf, PathPicker, htop, glances, axel, sz/rz, cloc, tmux, script, and multitail—explaining their core features and how they can replace or enhance traditional tools for developers and system operators.

DevOpscommand-line-toolsproductivity
0 likes · 5 min read
Boost Your Workflow: Essential Command-Line Tools Every Developer Needs
Liangxu Linux
Liangxu Linux
Jul 26, 2021 · Fundamentals

Master the Linux date Command: Display, Format, and Set Dates

This tutorial explains how to use the Linux date command to show the current time, format dates in various ways, query past or future dates, customize output with format specifiers, set the system clock, and incorporate date values into shell scripts.

Linuxdate commanddate-formatting
0 likes · 7 min read
Master the Linux date Command: Display, Format, and Set Dates
Liangxu Linux
Liangxu Linux
Jul 22, 2021 · Fundamentals

Master Linux Shell: Variables, Strings, and Script Essentials

This guide explains how to use and name shell variables, manipulate strings, create and run Bash scripts, manage environment variables, perform arithmetic and relational operations, read user input, and handle common file‑system tasks, providing clear examples and command‑line snippets for each topic.

String Manipulationbashshell scripting
0 likes · 21 min read
Master Linux Shell: Variables, Strings, and Script Essentials
Open Source Linux
Open Source Linux
Jul 11, 2021 · Operations

Mastering Shell Script Best Practices for Reliable Automation

This article outlines practical shell‑script guidelines for automating system and application operations, covering script header conventions, formatting, error handling, safe use of commands, variable handling, file packaging, pipeline restrictions, concurrency locks, logging, and risk‑mitigation strategies to make automation both efficient and secure.

Best PracticesDevOpsLinux
0 likes · 10 min read
Mastering Shell Script Best Practices for Reliable Automation
Liangxu Linux
Liangxu Linux
Jun 29, 2021 · Fundamentals

Why Bash Returns Zero When Summing a Column and How to Fix It

This article explains why a simple Bash loop may output zero when trying to sum the second column of a text file, demonstrates three different line‑by‑line approaches, shows common pitfalls such as pipeline subshells and whitespace handling, and provides correct solutions with shellcheck recommendations.

ShellCheckawk alternativebash
0 likes · 6 min read
Why Bash Returns Zero When Summing a Column and How to Fix It
Liangxu Linux
Liangxu Linux
Jun 6, 2021 · Operations

Master Bash Conditionals, Loops, and Signal Traps with Real‑World Examples

This article provides a comprehensive guide to Bash scripting, covering if/elif/else conditionals, case statements, four types of loops (for, while, until, select), signal trapping with trap, useful one‑liners for randomness and colored output, and several fun scripts such as a multiplication table, colored triangle, and chessboard.

ConditionalsLoopsbash
0 likes · 14 min read
Master Bash Conditionals, Loops, and Signal Traps with Real‑World Examples
Open Source Linux
Open Source Linux
May 14, 2021 · Operations

Master Bash Conditionals, Loops, and Signal Traps: Practical Scripts Explained

This article provides a comprehensive guide to Bash scripting, covering conditional statements (if/elif/else), case selections, various loop constructs (for, while, until, select), loop control commands, parameter shifting, signal trapping with trap, and includes numerous practical code examples with detailed analysis.

ConditionalsLoopsSignal Handling
0 likes · 17 min read
Master Bash Conditionals, Loops, and Signal Traps: Practical Scripts Explained
Efficient Ops
Efficient Ops
Apr 21, 2021 · Operations

30 Essential Bash Scripts for Linux Operations and Automation

This article compiles a comprehensive set of Bash scripts that demonstrate how to verify file consistency across servers, schedule log cleaning, monitor network traffic, count numeric characters in files, manage users and passwords, automate firewall rules, and perform various other Linux system administration tasks, providing ready-to-use code snippets for each scenario.

automationshell scripting
0 likes · 24 min read
30 Essential Bash Scripts for Linux Operations and Automation
Sohu Tech Products
Sohu Tech Products
Apr 14, 2021 · Operations

Comprehensive Bash Scripting Guide: Conditionals, Loops, and Signal Traps

This article provides a detailed Bash scripting tutorial covering conditional statements (if/elif/else, case), various loop constructs (for, while, until, select), control commands (break, continue, shift), signal handling with trap, and several practical example scripts such as a multiplication table, colored triangle, and chessboard pattern.

ConditionalsLoopsSignal Handling
0 likes · 16 min read
Comprehensive Bash Scripting Guide: Conditionals, Loops, and Signal Traps
Liangxu Linux
Liangxu Linux
Apr 13, 2021 · Fundamentals

Master awk: From Basics to Advanced Text Processing on Linux

This comprehensive guide introduces awk as a powerful Linux text‑analysis tool, explains its underlying record‑field model, demonstrates practical one‑liners and scripts for reporting, filtering, formatting, file splitting, and shows advanced features like built‑in variables, conditionals, arrays, and string functions.

Data AnalysisLinuxUnix
0 likes · 11 min read
Master awk: From Basics to Advanced Text Processing on Linux
Liangxu Linux
Liangxu Linux
Mar 25, 2021 · Fundamentals

Master Bash: Essential Shell Commands, Variables, and Scripting Basics

This guide introduces Bash shell fundamentals, covering script shebangs, execution methods, echo and printf usage, color output, variable handling, PATH manipulation, arithmetic operations, and conditional expressions, providing practical examples for Linux command‑line users.

bashcommand lineshell scripting
0 likes · 10 min read
Master Bash: Essential Shell Commands, Variables, and Scripting Basics
Liangxu Linux
Liangxu Linux
Jan 20, 2021 · Fundamentals

Master the Linux export Command: Beginner’s Guide to Environment Variables

This article explains how to use the Linux export command to set and view environment variables, demonstrates common options such as listing all exports, exporting specific variables, exporting functions, and shows how to persist settings in shell configuration files, providing practical examples for beginners.

ExportLinuxenvironment variables
0 likes · 6 min read
Master the Linux export Command: Beginner’s Guide to Environment Variables
Liangxu Linux
Liangxu Linux
Jan 11, 2021 · Operations

How to Create and Run Executable Bash Scripts on Linux

This guide walks you through creating a .sh Bash script, adding a simple “Hello World” program, granting execute permission with chmod, and running it directly or via sh/bash, plus a practical backup script example that archives /var/log using tar.

Backup Scriptbashchmod
0 likes · 4 min read
How to Create and Run Executable Bash Scripts on Linux
Liangxu Linux
Liangxu Linux
Jan 3, 2021 · Fundamentals

How to Declare and Use Boolean Variables in Bash Scripts

This guide explains how to create, test, and apply boolean-like variables in Bash, covering numeric (0/1) and string (true/false) representations, conditional checks, and practical examples for cron jobs and backup scripts on Linux/Unix systems.

Backup ScriptCronbash
0 likes · 7 min read
How to Declare and Use Boolean Variables in Bash Scripts
Programmer DD
Programmer DD
Dec 26, 2020 · Fundamentals

Create Safer Bash Scripts with a Minimal, Portable Template

This guide introduces a minimal, safe Bash script template, explains why Bash is still essential for backend tasks, and walks through best‑practice features such as strict error handling, portable shebang, colorized messaging, parameter parsing, cleanup traps, and portability across macOS and various Linux distributions.

Best Practicesscript templateshell scripting
0 likes · 15 min read
Create Safer Bash Scripts with a Minimal, Portable Template
Laravel Tech Community
Laravel Tech Community
Nov 25, 2020 · Operations

Comprehensive Guide to Logrotate: Configuration, Usage, and Custom Scripts for Linux Log Management

This article provides an in‑depth tutorial on using the Linux logrotate utility, covering default configuration files, command‑line options, example configurations for services like Nginx, PHP‑FPM, Tomcat, custom Bash and Python rotation scripts, troubleshooting tips, and how to adjust cron scheduling for automated log rotation.

CronLinuxLog Management
0 likes · 21 min read
Comprehensive Guide to Logrotate: Configuration, Usage, and Custom Scripts for Linux Log Management
Liangxu Linux
Liangxu Linux
Nov 14, 2020 · Fundamentals

Mastering Shell Script Reuse: Calling External Scripts and Functions in Linux

This guide explains how to execute external shell scripts, import their functions and variables using source, dot, or sh commands, compares their behaviors, and provides practical patterns—including case dispatch and a generic function‑call template—to enable reliable script reuse in Linux environments.

Linuxbash functionsdot command
0 likes · 12 min read
Mastering Shell Script Reuse: Calling External Scripts and Functions in Linux
Liangxu Linux
Liangxu Linux
Nov 4, 2020 · Fundamentals

Mastering the tee Command: 7 Practical Linux Examples

This guide explains how the Linux tee command reads from standard input and simultaneously writes to both a file and the screen, providing seven detailed examples that cover basic usage, writing to multiple files, silent output, appending, sudo integration, piping between commands, and using tee within vim.

LinuxTEEUnix utilities
0 likes · 6 min read
Mastering the tee Command: 7 Practical Linux Examples
Liangxu Linux
Liangxu Linux
Oct 20, 2020 · Fundamentals

Essential Shell Script Style Guide: Best Practices and Tips

This guide consolidates practical conventions for writing clean, maintainable shell scripts, covering shebang usage, commenting, parameter validation, variable handling, indentation, naming, encoding, efficiency tricks, and static analysis with ShellCheck.

Best PracticesCode styleShellCheck
0 likes · 19 min read
Essential Shell Script Style Guide: Best Practices and Tips
Liangxu Linux
Liangxu Linux
Oct 20, 2020 · Operations

Mastering AWK: Quick Commands to Clean, Filter, and Analyze Text Files

This guide demonstrates how to use AWK’s sub, gsub, and pattern‑matching features to delete blank lines, trim whitespace, reverse file order, add line numbers, count or filter specific strings, replace text, and combine AWK with other Linux utilities for everyday text‑processing tasks.

awkdata cleaningshell scripting
0 likes · 7 min read
Mastering AWK: Quick Commands to Clean, Filter, and Analyze Text Files
Liangxu Linux
Liangxu Linux
Oct 13, 2020 · Fundamentals

Master Linux Case Conversion with tr, awk, sed, and Python

This guide walks you through Linux command‑line tools—tr, awk, sed, and even Python—to efficiently convert text case, handle whole‑file transformations, capitalize only first letters, and ensure proper title‑case formatting for scripts and shell pipelines.

Linuxawkcase-conversion
0 likes · 6 min read
Master Linux Case Conversion with tr, awk, sed, and Python
ITPUB
ITPUB
Sep 28, 2020 · Operations

Essential Linux Regex Commands for Quick System Queries

A concise collection of Linux command-line one‑liners demonstrates how to extract IPv4 addresses, disk usage, user information, permissions, and pattern matches using regular expressions and tools like ifconfig, df, cat, cut, sort, and egrep.

Linuxcommand-lineregex
0 likes · 5 min read
Essential Linux Regex Commands for Quick System Queries