Tagged articles

Shell scripting

313 articles · Page 2 of 4
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.

LinuxShell scriptingUnix
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.

AutomationMonitoringShell scripting
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 24, 2024 · Backend Development

Mastering Long Options in Bash: A Practical Guide with getopt

This article explains why long command‑line options improve shell script usability, compares the built‑in getopt utility with manual parsing, and provides complete Bash examples that demonstrate defining short and long flags, handling them, and printing the parsed results.

Shell scriptingbashcommand-line
0 likes · 5 min read
Mastering Long Options in Bash: A Practical Guide with getopt
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.

Shell scriptingbash functioncommand output
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 LineShell scriptingdata extraction
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.

Command LineLinuxShell scripting
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.

LinuxShell scriptingprocess monitoring
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.

Command LineLinuxShell 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.

LinuxShell scriptingdaemon
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.

AutomationShell scriptingbash
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.

Shell scriptingbashsysadmin
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.

Shell scriptingbashfile redirection
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 ManagementShell scriptingbash
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 ScriptsShell scriptingbash
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.

AutomationShell scriptingbash
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.

AutomationCommand LineShell scripting
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.

AutomationCommand LineShell scripting
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.

Shell scriptingSystem 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.

Shell scriptingcgroupscontainerization
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.

LinuxShell scriptingUnix
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.

Command LineLinuxNetworking
0 likes · 10 min read
Master Essential Linux Commands for Efficient System Operations
Programmer DD
Programmer DD
Dec 12, 2022 · Fundamentals

Master Linux Shell: Build Custom Log, Backup, and SpringBoot Management Scripts

This tutorial walks through essential Linux command-line techniques, showing how to create a reusable logmsg command, a timestamped backup utility, and a comprehensive Spring Boot administration script, complete with code examples, symbolic linking, permission handling, and execution guidance.

AutomationBackupShell scripting
0 likes · 10 min read
Master Linux Shell: Build Custom Log, Backup, and SpringBoot Management Scripts
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.

LinuxShell scriptingfind command
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.

AutomationLoopsShell scripting
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.

AutomationShell scriptinglog analysis
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.

Shell scriptingbashbash pitfalls
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.

LinuxShell scriptingoutput redirection
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.

LinuxShell scriptingfile management
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.

Command LineShell scriptingTEE
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.

AutomationPipelinesScripting
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.

ArraysControl FlowLinux
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.

DebuggingShell scriptingbash
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.

BackupShell scriptingbash
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.

AutomationLinuxShell scripting
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.

Command LineControl structuresLinux
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.

Command LineLinuxNetworking
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.

Command LineNode.jsShell scripting
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.

Shell scriptingbashcode quality
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.

AutomationShell scriptingbash
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.

AutomationControl FlowShell scripting
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.

Shell scriptingfile sharingtransfer.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.

DOSLinuxShell scripting
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 RenamingLinuxShell scripting
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.

DevOpsShell scriptingcommand-line tools
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.

LinuxShell scriptingdate command
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.

Shell scriptingString Manipulationbash
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.

AutomationDevOpsLinux
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.

Shell scriptingShellCheckawk alternative
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.

ConditionalsLoopsShell scripting
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.

ConditionalsLoopsShell scripting
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.

ConditionalsLoopsShell scripting
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.

Command LineData AnalysisLinux
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.

Command LineShell scriptingbash
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.

ExportLinuxShell scripting
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 ScriptShell scriptingbash
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 ScriptCronShell scripting
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.

Shell scriptingbest practicesscript template
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.

LinuxShell scriptingbash functions
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.

LinuxShell scriptingTEE
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.

Code styleShell scriptingShellCheck
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.

Shell scriptingawkdata cleaning
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.

LinuxShell scriptingawk
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.

LinuxRegexShell scripting
0 likes · 5 min read
Essential Linux Regex Commands for Quick System Queries
Liangxu Linux
Liangxu Linux
Aug 15, 2020 · Operations

How to Write Robust Shell Scripts: Essential Tips and Best Practices

This guide presents practical techniques for creating reliable Bash scripts, covering syntax checking, automatic exit on errors, execution tracing, undefined‑variable detection, pipe‑fail handling, readonly variables, default values, command chaining, and function usage, with concrete code examples and tool recommendations.

Shell scriptingbashset -e
0 likes · 7 min read
How to Write Robust Shell Scripts: Essential Tips and Best Practices
Open Source Linux
Open Source Linux
Jul 30, 2020 · Operations

Mastering Shell Script Style: Essential Guidelines for Clean, Efficient Bash Code

This article compiles practical shell‑script coding standards—covering shebang usage, commenting, parameter validation, variable handling, indentation, naming, encoding, logging, security, modular design, parallel execution, and static analysis with shellcheck—to help developers write readable, maintainable, and performant Bash scripts.

Code styleShell scriptingStatic Analysis
0 likes · 19 min read
Mastering Shell Script Style: Essential Guidelines for Clean, Efficient Bash Code
21CTO
21CTO
Jul 17, 2020 · Fundamentals

Master Essential Linux Commands and System Administration Basics

This comprehensive guide covers fundamental Linux commands such as ls and cat, user and group management, package handling with RPM and yum, process monitoring tools, file searching utilities, scheduled task creation with at and crontab, and automating interactions using Expect, providing clear examples and code snippets for each topic.

Command LineCronLinux
0 likes · 38 min read
Master Essential Linux Commands and System Administration Basics
Efficient Ops
Efficient Ops
Jun 29, 2020 · Fundamentals

Mastering sed: Essential Commands for Fast Text Processing

This guide introduces the core concepts of the Unix sed command, covering its basic syntax, common options, address ranges, editing commands, substitution patterns, useful flags, and practical one‑liners for text manipulation and system administration tasks.

Shell scriptingUnixsed
0 likes · 10 min read
Mastering sed: Essential Commands for Fast Text Processing
FunTester
FunTester
Jun 26, 2020 · Operations

How Testers Can Master Linux for Environment Setup and Debugging

This guide explains why Linux is essential for software testers, outlines how to build test environments, use key commands like tail, grep, top, and vmstat for log analysis and performance monitoring, and offers tips for deeper Linux learning and interview preparation.

LinuxShell scriptingenvironment setup
0 likes · 6 min read
How Testers Can Master Linux for Environment Setup and Debugging