Tagged articles
457 articles
Page 3 of 5
Architect's Guide
Architect's Guide
Mar 2, 2022 · Databases

How to Perform Scheduled MySQL Backups Using mysqldump and Cron

This article explains various methods for scheduled MySQL backups, covering mysqldump command usage, example backup commands for whole or specific databases, a Bash script to retain a fixed number of backups, and configuring cron jobs to automate the backup and restoration processes.

BackupBashDatabase Administration
0 likes · 11 min read
How to Perform Scheduled MySQL Backups Using mysqldump and Cron
Efficient Ops
Efficient Ops
Feb 21, 2022 · Operations

Mastering Linux Shell: Key Concepts, Commands, and Scripting Tricks

This article explains the fundamentals of Linux shells, covering why they’re called shells, prompt behavior, echo usage, quoting differences, variable handling, export, command grouping, arithmetic expansion, special parameters, redirection, conditional statements, loops, and provides practical Bash code examples for each concept.

BashScriptingShell
0 likes · 12 min read
Mastering Linux Shell: Key Concepts, Commands, and Scripting Tricks
Efficient Ops
Efficient Ops
Feb 13, 2022 · Operations

Essential Bash Scripts for Linux Ops: From DDoS Blocking to MySQL Backups

This article compiles a collection of practical Bash scripts for Linux system administrators, covering automatic DDoS IP blocking, email alert setup, single‑ and multi‑database MySQL backups, Nginx log rotation and analysis, real‑time network traffic monitoring, server initialization, and bulk disk‑usage checks across many hosts.

AutomationBashNginx
0 likes · 10 min read
Essential Bash Scripts for Linux Ops: From DDoS Blocking to MySQL Backups
Open Source Linux
Open Source Linux
Feb 8, 2022 · Operations

Essential Linux Bash Scripts for Security, Backup, and Server Management

This article provides a collection of ready‑to‑use Bash scripts that automate DoS attack blocking, email alerts, MySQL single‑ and multi‑database backups, Nginx log rotation and analysis, network traffic monitoring, system initialization, and disk usage checks across many servers.

AutomationBackupBash
0 likes · 10 min read
Essential Linux Bash Scripts for Security, Backup, and Server Management
MaGe Linux Operations
MaGe Linux Operations
Feb 5, 2022 · Operations

Essential Linux Bash Scripts for Server Operations and Automation

This article presents a collection of practical Bash scripts for Linux servers, covering DOS attack IP blocking, alert emailing, MySQL backup (single and multi‑loop), Nginx log rotation and analysis, real‑time network traffic monitoring, system initialization, and disk usage checks across multiple hosts.

AutomationBashServer
0 likes · 10 min read
Essential Linux Bash Scripts for Server Operations and Automation
Open Source Linux
Open Source Linux
Jan 26, 2022 · Operations

Essential Linux Command Cheat Sheet for System Administration

This article compiles a comprehensive set of Linux command‑line shortcuts covering system shutdown, hardware inspection, user management, networking, file handling, compression, performance monitoring, and many other routine administration tasks, providing a handy reference for developers and sysadmins alike.

BashPerformance MonitoringShell
0 likes · 23 min read
Essential Linux Command Cheat Sheet for System Administration
MaGe Linux Operations
MaGe Linux Operations
Jan 13, 2022 · Fundamentals

Why Consistent Shell Coding Standards Matter: A Practical Guide

This guide explains the importance of shell coding standards, outlines core principles such as correctness, readability and maintainability, defines mandatory and optional rules for file naming, indentation, comments, variable handling, control structures, error handling, and provides concrete examples and best‑practice recommendations for Bash scripts.

Bashbest practicescoding standards
0 likes · 25 min read
Why Consistent Shell Coding Standards Matter: A Practical Guide
Efficient Ops
Efficient Ops
Dec 29, 2021 · Operations

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

This article consolidates practical shell scripting standards—covering shebang usage, commenting, parameter validation, naming conventions, encoding, indentation, function structuring, variable scope, efficient command patterns, parallel execution, and static analysis with ShellCheck—to help developers write readable, maintainable, and performant Bash scripts.

BashShellcoding-standards
0 likes · 22 min read
Master Shell Script Style: Essential Guidelines for Clean, Efficient Bash Code
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.

BashShell scriptingcode quality
0 likes · 25 min read
Essential Shell Script Coding Standards for Reliable Maintenance
ITPUB
ITPUB
Dec 8, 2021 · Operations

Master Linux Command History: Reduce Repetition and Boost Efficiency

This guide explains how the Linux shell stores command history, how to view, search, repeat, and manage entries, and how to configure environment variables for timestamps, size limits, custom files, and security, helping administrators streamline their workflow.

BashSysadminhistory
0 likes · 11 min read
Master Linux Command History: Reduce Repetition and Boost Efficiency
Liangxu Linux
Liangxu Linux
Nov 29, 2021 · Operations

How to Accurately Check Directory Sizes on Linux with du and ls

This guide explains why ls -lh shows only the directory entry size, introduces the du command for real disk usage, details its most useful options, and provides step‑by‑step examples for measuring directory sizes on a Linux system.

BashFilesystemcommand-line
0 likes · 8 min read
How to Accurately Check Directory Sizes on Linux with du and ls
Top Architect
Top Architect
Nov 8, 2021 · Databases

MySQL Scheduled Backup and Restoration Using mysqldump and Crontab

This article explains how to use the mysqldump command to back up MySQL databases, provides various command examples for full or partial backups, demonstrates a Bash script for automated daily backups with log management, and shows how to schedule these tasks using crontab.

AutomationBackupBash
0 likes · 11 min read
MySQL Scheduled Backup and Restoration Using mysqldump and Crontab
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.

AutomationBashShell scripting
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
Liangxu Linux
Liangxu Linux
Oct 30, 2021 · Operations

Comprehensive Linux Daily Inspection Bash Script for System Health Monitoring

This article provides a complete Bash script that performs daily health checks on a Linux host, gathering information on disk usage, memory, CPU, processes, services, network configuration, user accounts, password policies, firewall, SELinux, NTP, SNMP, JDK, and more, then formats the results into a report and emails it.

BashSysadmindaily-check
0 likes · 18 min read
Comprehensive Linux Daily Inspection Bash Script for System Health Monitoring
Programmer DD
Programmer DD
Oct 10, 2021 · Databases

Master MySQL Backups with mysqldump, Bash Scripts, and Cron

This guide details how to protect MySQL databases from errors and crashes by using mysqldump for manual dumps, creating Bash scripts for automated daily backups, and scheduling them with Linux cron, including command examples, restoration methods, and crontab syntax for reliable periodic backups.

BackupBashmysql
0 likes · 10 min read
Master MySQL Backups with mysqldump, Bash Scripts, and Cron
Open Source Linux
Open Source Linux
Sep 27, 2021 · Fundamentals

Mastering the unalias Command: How to Remove Shell Aliases Quickly

This guide explains how to use the built‑in unalias command in Bash to delete individual or all command aliases, shows the syntax and common options, provides practical examples, and highlights important considerations when running scripts that modify alias settings.

AliasBashcommand-line
0 likes · 2 min read
Mastering the unalias Command: How to Remove Shell Aliases Quickly
Liangxu Linux
Liangxu Linux
Sep 14, 2021 · Fundamentals

Mastering the Linux stat Command: Retrieve Detailed File Metadata Efficiently

This guide explains how to install the GNU coreutils stat command, interpret its comprehensive default output, use the terse option for compact results, and craft custom formats with --printf, providing practical examples and a reference list of format sequences for Linux file metadata extraction.

Bashcoreutilsfile metadata
0 likes · 6 min read
Mastering the Linux stat Command: Retrieve Detailed File Metadata Efficiently
Open Source Linux
Open Source Linux
Sep 8, 2021 · Fundamentals

Master Essential Linux Shell Tools for Text Processing and Automation

This guide introduces the most commonly used Linux shell utilities—find, grep, xargs, sort, uniq, tr, cut, paste, wc, sed, and awk—explaining their core options and providing practical examples to help you efficiently manipulate and process text files from the command line.

BashUnix toolstext processing
0 likes · 15 min read
Master Essential Linux Shell Tools for Text Processing and Automation
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.

BashFile RenamingShell scripting
0 likes · 8 min read
Batch Rename Files Using sed and Bash Substring Techniques
Practical DevOps Architecture
Practical DevOps Architecture
Aug 9, 2021 · Operations

MySQL Installation and Configuration Bash Script

This article provides a step‑by‑step Bash script for installing, configuring, and starting MySQL 8.0 on a Linux system, including user creation, directory setup, permission handling, initialization checks, and service management, and ensures proper environment variables.

BashInstallationdatabase
0 likes · 4 min read
MySQL Installation and Configuration Bash Script
dbaplus Community
dbaplus Community
Aug 2, 2021 · Fundamentals

Master Linux History Command: Practical Tips to Boost Shell Efficiency

This guide explains how the Linux history mechanism works, shows essential commands for viewing, filtering, and replaying past commands, demonstrates timestamping, adjusting record limits, changing the history file, disabling logging, and shares a hidden trick for keeping sensitive commands out of the log.

BashShellaudit
0 likes · 10 min read
Master Linux History Command: Practical Tips to Boost Shell Efficiency
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.

BashShell scriptingString Manipulation
0 likes · 21 min read
Master Linux Shell: Variables, Strings, and Script Essentials
Open Source Linux
Open Source Linux
Jul 21, 2021 · Fundamentals

Essential Linux Command Cheat Sheet: 50 Must‑Know Commands for System Operations

This article provides a concise reference of 50 essential Linux commands covering file management, user administration, system monitoring, networking, permission handling, and editor shortcuts, offering clear examples and explanations for each command to help both beginners and seasoned administrators work efficiently.

BashSystem Administrationcommands
0 likes · 9 min read
Essential Linux Command Cheat Sheet: 50 Must‑Know Commands for System Operations
Liangxu Linux
Liangxu Linux
Jul 19, 2021 · Fundamentals

Understanding Shell Exit Codes: How $? Reveals Command Success or Failure

This article explains how a command’s exit status indicates success or failure in Unix shells, describes the meaning of common return codes, introduces the special $? variable, and provides a comprehensive Bash script example demonstrating various exit scenarios and custom status handling.

BashScriptingShell
0 likes · 4 min read
Understanding Shell Exit Codes: How $? Reveals Command Success or Failure
Liangxu Linux
Liangxu Linux
Jul 18, 2021 · Fundamentals

Master Linux Aliases: Simplify Commands and Boost Productivity

This guide explains how Linux aliases work, shows how to create temporary and permanent shortcuts for long commands like rsync, demonstrates listing and removing aliases, and provides step‑by‑step instructions for storing aliases in ~/.bashrc or a separate file.

BashShelllinux
0 likes · 5 min read
Master Linux Aliases: Simplify Commands and Boost Productivity
Liangxu Linux
Liangxu Linux
Jul 1, 2021 · Fundamentals

Essential Linux Commands Every Developer Should Master

This guide walks through a collection of frequently used Linux shell commands—grep, custom alias shortcuts, pwd, find, history, od, and for loops—explaining their common scenarios, key options, example usages, and handy tricks to boost productivity in everyday development and scripting tasks.

BashGrepScripting
0 likes · 11 min read
Essential Linux Commands Every Developer Should Master
Efficient Ops
Efficient Ops
Jun 30, 2021 · Operations

27 Essential Linux Command-Line Tricks to Boost Your Productivity

This guide presents 27 practical Linux command-line techniques—from safe file deletion and alias management to process monitoring, log handling, and advanced shell shortcuts—designed to help heavy users work more efficiently and avoid common pitfalls.

BashShell Tipscommand-line
0 likes · 16 min read
27 Essential Linux Command-Line Tricks to Boost Your Productivity
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.

BashShell scriptingShellCheck
0 likes · 6 min read
Why Bash Returns Zero When Summing a Column and How to Fix It
Liangxu Linux
Liangxu Linux
Jun 27, 2021 · Fundamentals

Master Linux Aliases: Turn Long Commands into Simple Shortcuts

Learn how to create temporary and permanent Linux aliases to replace lengthy commands, streamline file synchronization with rsync, manage aliases via the alias and unalias commands, and store them in dedicated files for persistent shell customization.

BashShelllinux
0 likes · 5 min read
Master Linux Aliases: Turn Long Commands into Simple Shortcuts
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.

BashConditionalsLoops
0 likes · 14 min read
Master Bash Conditionals, Loops, and Signal Traps with Real‑World Examples
Liangxu Linux
Liangxu Linux
May 30, 2021 · Fundamentals

Mastering Shell Special Parameters: $*, $@, $#, $$, $! with Real Examples

This article explains the purpose and behavior of key shell special parameters—$*, $@, $#, $$, and $!—through three practical scripts that demonstrate expanding positional arguments, counting arguments, and accessing process IDs, complete with code snippets and expected output.

BashScriptingShell
0 likes · 4 min read
Mastering Shell Special Parameters: $*, $@, $#, $$, $! with Real 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.

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

Master Linux Command History: 10 Powerful Tips to Boost Efficiency

This article explains how Linux shells store command history in .bash_history, shows basic and advanced usage of the history command—including listing, searching, repeating, timestamping, and configuring history size—and provides practical tricks for auditing, backup, and even disabling history for security purposes.

BashShellSysadmin
0 likes · 11 min read
Master Linux Command History: 10 Powerful Tips to Boost Efficiency
MaGe Linux Operations
MaGe Linux Operations
Apr 23, 2021 · Operations

Essential Bash Scripts for Linux Server Automation and Monitoring

This article compiles a comprehensive set of Bash scripts that automate common Linux server tasks such as file consistency checks, log cleanup, network traffic monitoring, port scanning, user management, firewall rules, and service health checks, providing sysadmins with ready‑to‑use solutions for efficient operations.

AutomationBashSysadmin
0 likes · 23 min read
Essential Bash Scripts for Linux Server Automation and Monitoring
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Apr 20, 2021 · Operations

Practical Tips for Using the Linux History Command to Manage Command History

This article explains how to efficiently use the Linux history command, covering its underlying mechanism, basic usage, repeat execution, searching, interactive search, timestamp display, history size control, file name changes, disabling history, and a useful security tip, helping administrators improve productivity and auditability.

BashSysadminaudit
0 likes · 11 min read
Practical Tips for Using the Linux History Command to Manage Command History
Liangxu Linux
Liangxu Linux
Apr 18, 2021 · Fundamentals

Mastering Bash Brackets: Parentheses, Brackets, and Brace Expansions Explained

This guide provides a comprehensive overview of Bash’s various bracket types—including parentheses, double parentheses, square brackets, double square brackets, and curly braces—detailing their syntax, typical use‑cases, parameter‑expansion forms, pattern‑matching capabilities, and practical code examples for effective shell scripting.

BashScriptingShell
0 likes · 13 min read
Mastering Bash Brackets: Parentheses, Brackets, and Brace Expansions Explained
Liangxu Linux
Liangxu Linux
Apr 14, 2021 · Operations

7 Practical Bash Scripts to Boost Linux Sysadmin Efficiency

This article presents seven hands‑on Bash script examples that cover concurrent hostname collection, process state counting, bulk file renaming, automated jstack logging, GC log analysis, high‑traffic IP detection with conditional reporting, and moving large files while sorting them by size, each with complete code snippets.

BashScriptingShell
0 likes · 8 min read
7 Practical Bash Scripts to Boost Linux Sysadmin Efficiency
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.

BashConditionalsLoops
0 likes · 16 min read
Comprehensive Bash Scripting Guide: Conditionals, Loops, and Signal Traps
Sohu Tech Products
Sohu Tech Products
Mar 31, 2021 · Operations

Shell Basics: Introduction, Commands, Variables, and Scripting

This article provides a comprehensive introduction to the Bash shell, covering its purpose, user prompts, shebang syntax, execution methods, basic commands like echo and printf, variable handling, environment variables, arithmetic operations, and conditional statements for writing effective shell scripts.

BashScriptingShell
0 likes · 14 min read
Shell Basics: Introduction, Commands, Variables, and Scripting
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.

BashShell scriptingVariables
0 likes · 10 min read
Master Bash: Essential Shell Commands, Variables, and Scripting Basics
Liangxu Linux
Liangxu Linux
Mar 21, 2021 · Operations

How to Monitor Linux CPU, Memory, and Disk I/O with a Bash Script

This article provides a step‑by‑step Bash script that gathers Linux server IP, CPU core count, utilization percentages, context switches, load averages, memory statistics, swap usage, and disk I/O metrics, explaining each command and its output for effective system monitoring.

BashMemorydisk
0 likes · 18 min read
How to Monitor Linux CPU, Memory, and Disk I/O with a Bash Script
Liangxu Linux
Liangxu Linux
Mar 14, 2021 · Fundamentals

Master Linux File Color Codes: Customize LS_COLORS for Clearer Directory Listings

This guide explains how Linux uses the LS_COLORS environment variable to assign distinct colors to file types in terminal listings, shows where the default definitions reside, details attribute, text, and background codes, and provides step‑by‑step instructions for creating custom color schemes via your bash configuration.

BashLS_COLORSfile colors
0 likes · 7 min read
Master Linux File Color Codes: Customize LS_COLORS for Clearer Directory Listings
Liangxu Linux
Liangxu Linux
Mar 8, 2021 · Fundamentals

18 Fun Linux Commands to Wow Your Terminal

This guide introduces eighteen entertaining Linux command‑line tools—ranging from the train‑displaying sl to the matrix‑style cmatrix—detailing their installation, usage options, and playful effects, while also offering tips for creative combinations and safety warnings.

Bashcommand-linefun
0 likes · 8 min read
18 Fun Linux Commands to Wow Your Terminal
php Courses
php Courses
Mar 5, 2021 · Operations

Managing Linux Command History: View, Search, Modify, and Clear

This article explains how to use the Linux history command to view past commands, search with Ctrl +r, repeat previous entries, adjust the number of stored records, and clear the history, providing practical examples and configuration tips for effective shell management.

BashShellSysadmin
0 likes · 5 min read
Managing Linux Command History: View, Search, Modify, and Clear
Liangxu Linux
Liangxu Linux
Mar 1, 2021 · Operations

Customize Your Linux Prompt with Starship: A Step‑by‑Step Guide

This guide explains how to install the Rust‑based Starship prompt, add it to Bash, create a basic TOML configuration, and customize its appearance across Linux, macOS, and Windows shells, providing practical commands and examples for a sleek, fast terminal experience.

BashStarshipcustomization
0 likes · 6 min read
Customize Your Linux Prompt with Starship: A Step‑by‑Step Guide
MaGe Linux Operations
MaGe Linux Operations
Feb 10, 2021 · Operations

Master Server Log Analysis with Powerful Bash One‑Liners

This guide presents a comprehensive set of Bash and AWK one‑liners for analyzing web server logs, counting unique IPs, tracking page visits, sorting traffic by time, identifying heavy‑weight requests, monitoring Apache processes, and examining network connection states, helping you detect anomalies and optimize performance.

ApacheBashNetwork Monitoring
0 likes · 13 min read
Master Server Log Analysis with Powerful Bash One‑Liners
Liangxu Linux
Liangxu Linux
Feb 6, 2021 · Operations

How to Make a Bash Script Run Only Once: Lock Files and flock Explained

This guide shows how to prevent a Bash script from being executed multiple times by detecting existing instances, using lock files with process checks, and employing the flock command for reliable atomic locking, complete with practical code examples and pitfalls to avoid.

BashOperationsSingleton
0 likes · 8 min read
How to Make a Bash Script Run Only Once: Lock Files and flock Explained
Open Source Linux
Open Source Linux
Jan 26, 2021 · Information Security

10 Linux Commands That Can Wipe Your System – How to Stay Safe

This article lists ten dangerous Linux commands—including variations of rm, fork bombs, raw device writes, and hidden hex‑encoded scripts—explains how each can cause irreversible data loss or system crashes, and offers practical safeguards such as using aliases and testing only in virtual environments.

BashData losscommand-line
0 likes · 7 min read
10 Linux Commands That Can Wipe Your System – How to Stay Safe
Liangxu Linux
Liangxu Linux
Jan 20, 2021 · Operations

Master Essential Linux Shell Commands and Scripts for System Ops

This guide compiles practical Linux shell commands and scripts—including file searching, batch extraction, sed editing, directory checks, disk‑space monitoring, log analysis, firewall rules, and network capture—to help system administrators automate routine tasks efficiently.

BashScriptingSysadmin
0 likes · 9 min read
Master Essential Linux Shell Commands and Scripts for System Ops
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 ScriptBashShell scripting
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 ScriptBashShell scripting
0 likes · 7 min read
How to Declare and Use Boolean Variables in Bash Scripts
Liangxu Linux
Liangxu Linux
Dec 20, 2020 · Operations

Master Linux Directory Navigation with pushd, popd, and dirs

Learn how to efficiently switch between directories in Linux using the built‑in bash commands pushd, popd, and dirs, covering basic usage, stack manipulation, and advanced options to eliminate repetitive typing and streamline your workflow.

BashDirectory Stacklinux
0 likes · 10 min read
Master Linux Directory Navigation with pushd, popd, and dirs
ITPUB
ITPUB
Dec 10, 2020 · Fundamentals

Master Linux Environment Variables: Quick Config & Loading Order Explained

This guide explains how to configure Linux environment variables—especially PATH for MySQL—using various methods such as export commands, editing ~/.bashrc, ~/.bash_profile, /etc/bashrc, /etc/profile, and /etc/environment, and details the exact order Linux reads these files during login and shell startup.

BashEnvironment Variableslinux
0 likes · 11 min read
Master Linux Environment Variables: Quick Config & Loading Order Explained
Liangxu Linux
Liangxu Linux
Dec 1, 2020 · Fundamentals

Master Bash Brackets: Parentheses, Brackets, and Brace Expansions Explained

This guide explains Bash’s various bracket types—single and double parentheses, single and double square brackets, and curly braces—including their syntax, common use cases, command and arithmetic expansions, pattern removal, and practical examples for reliable shell scripting.

BashScriptingbrace expansion
0 likes · 14 min read
Master Bash Brackets: Parentheses, Brackets, and Brace Expansions Explained
Liangxu Linux
Liangxu Linux
Nov 22, 2020 · Operations

Master Linux Environment Variables: Six Ways to Set and Load PATH

This guide explains multiple methods for configuring Linux environment variables—especially PATH—on Ubuntu, covering user‑level files like ~/.bashrc and system‑wide files such as /etc/profile, and details the exact loading order Linux follows when initializing shells.

BashEnvironment Variableslinux
0 likes · 11 min read
Master Linux Environment Variables: Six Ways to Set and Load PATH
Programmer DD
Programmer DD
Nov 2, 2020 · Operations

10 Lesser-Known Linux Commands Every Sysadmin Should Master

This article introduces ten useful but often overlooked Linux commands—pgrep, pstree, bc, split, nl, mkfifo, ldd, col, xmlwf, and lsof—explaining their purpose, typical use cases, and providing concrete examples to help system administrators work more efficiently.

BashSysadminUnix
0 likes · 9 min read
10 Lesser-Known Linux Commands Every Sysadmin Should Master
Laravel Tech Community
Laravel Tech Community
Nov 1, 2020 · Operations

Shell Script Coding Standards and Best Practices

This article presents a comprehensive set of guidelines for writing clean, maintainable, and efficient Bash/Shell scripts, covering shebang usage, comments, parameter validation, variable handling, indentation, naming, encoding, permissions, logging, security, parallel execution, and tooling such as ShellCheck.

Bashbest practicescoding standards
0 likes · 20 min read
Shell Script Coding Standards and Best Practices
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.

BashShell scriptingShellCheck
0 likes · 19 min read
Essential Shell Script Style Guide: Best Practices and Tips
Liangxu Linux
Liangxu Linux
Sep 23, 2020 · Operations

Speed Up File Path Verification with Bash: Split & Parallel Execution

This guide shows how to efficiently verify whether millions of file paths exist on remote servers by splitting a large list into smaller chunks and processing each chunk concurrently with a Bash script, dramatically reducing runtime compared to a single‑threaded approach.

BashLinux scriptingfile verification
0 likes · 4 min read
Speed Up File Path Verification with Bash: Split & Parallel Execution
Liangxu Linux
Liangxu Linux
Sep 6, 2020 · Fundamentals

Top 10 Linux Shell Interview Questions and Practical Answers

This article presents ten common Linux shell interview questions, providing clear explanations, command-line solutions, code examples, and step‑by‑step guidance on script termination, file header removal, line length checking, non‑printable character display, directory permissions, process states, cut, cmp vs diff, echo vs ls, and inode basics.

BashScriptingShell
0 likes · 8 min read
Top 10 Linux Shell Interview Questions and Practical Answers
Programmer DD
Programmer DD
Sep 5, 2020 · Operations

Discover bashtop: The Bash‑Powered Linux Resource Monitor You Need

bashtop is a Bash‑written Linux resource monitor that visualizes CPU, memory, disk, network and process usage, offers a game‑inspired UI with fast navigation, configurable settings, and real‑time graphs, and is available on GitHub with detailed configuration examples and usage instructions.

BashBashtopCLI
0 likes · 4 min read
Discover bashtop: The Bash‑Powered Linux Resource Monitor You Need
Efficient Ops
Efficient Ops
Sep 2, 2020 · Operations

Why Consistent Shell Script Standards Matter: A Practical Guide

This guide explains the importance of shell script coding standards, outlines core principles such as correctness, readability, maintainability, and consistency, and provides detailed recommendations on file naming, encoding, line length, indentation, comments, testing, and safe use of commands to improve script quality and reduce maintenance costs.

BashOperationscoding standards
0 likes · 26 min read
Why Consistent Shell Script Standards Matter: A Practical Guide
Efficient Ops
Efficient Ops
Aug 19, 2020 · Operations

Why and How to Unit Test Bash Scripts with the Bach Testing Framework

This article explains why Bash scripts need unit testing, outlines common testing challenges, and demonstrates how the Bach Testing Framework provides safe, fast, and environment‑agnostic unit tests for Bash scripts by mocking external commands and isolating execution logic.

BashTesting frameworkbach
0 likes · 14 min read
Why and How to Unit Test Bash Scripts with the Bach Testing Framework
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.

BashShell scriptingset -e
0 likes · 7 min read
How to Write Robust Shell Scripts: Essential Tips and Best Practices
Cloud Native Technology Community
Cloud Native Technology Community
Aug 13, 2020 · Cloud Native

The World’s Simplest Kubernetes Dashboard (k1s): Overview, Installation, Usage, and Implementation

This article introduces k1s, a minimalist Bash‑based Kubernetes dashboard that watches any resource type across namespaces, explains how to install it via Homebrew or a raw script, details its command‑line syntax, walks through the full source code line by line, and discusses its limitations and potential extensions.

BashDashboardKubernetes
0 likes · 15 min read
The World’s Simplest Kubernetes Dashboard (k1s): Overview, Installation, Usage, and Implementation
Liangxu Linux
Liangxu Linux
Aug 11, 2020 · Fundamentals

Mastering Shell Parameters: From Positional Limits to Elegant Option Parsing

This guide explains the drawbacks of fixed positional parameters in shell scripts, demonstrates simple examples, and introduces the getopts utility to handle named options, optional arguments, and error suppression, enabling more flexible, readable, and maintainable command-line interfaces.

BashScriptingShell
0 likes · 5 min read
Mastering Shell Parameters: From Positional Limits to Elegant Option Parsing
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.

BashShell scriptingcode style
0 likes · 19 min read
Mastering Shell Script Style: Essential Guidelines for Clean, Efficient Bash Code
ITPUB
ITPUB
Jul 22, 2020 · Operations

How to Safely Test Bash Scripts with the Bach Framework

The article introduces Bach, a lightweight Bash unit‑testing framework that lets developers safely detect dangerous commands like rm ‑rf in scripts, explains how to import it, use its @do‑not‑panic API and other mock commands, and outlines its principles, limitations, and real‑world adoption.

BashFrameworkSafety
0 likes · 6 min read
How to Safely Test Bash Scripts with the Bach Framework
Liangxu Linux
Liangxu Linux
Jul 22, 2020 · Operations

How to Fix sudo Missing Environment Variables on Linux

When using sudo, Linux resets the environment, causing custom variables to disappear; this guide explains why, shows the relevant lines in /etc/sudoers, and presents three practical methods—including sudo -E, editing env_keep and secure_path, and creating aliases—to retain needed variables.

BashEnvironment VariablesSudo
0 likes · 4 min read
How to Fix sudo Missing Environment Variables on Linux
Cloud Native Technology Community
Cloud Native Technology Community
Jul 15, 2020 · Operations

Building a Complete Linux Monitoring Dashboard with Prometheus, Pushgateway, and Grafana

This tutorial shows Linux system administrators and DevOps engineers how to create a fully customizable, distributed monitoring dashboard by installing and configuring Prometheus, Pushgateway, and Grafana, writing a Bash script to push process metrics, and visualizing CPU and memory usage with Grafana panels and PromQL queries.

BashDevOpsGrafana
0 likes · 14 min read
Building a Complete Linux Monitoring Dashboard with Prometheus, Pushgateway, and Grafana
Liangxu Linux
Liangxu Linux
Jul 14, 2020 · Fundamentals

How to Install and Use ccat for Colorized cat Output on Linux

This guide explains why the standard cat command lacks syntax highlighting, introduces the ccat utility that adds colored output for many programming languages, and provides step‑by‑step installation instructions for Arch and other Linux distributions, along with practical usage examples and troubleshooting tips.

BashInstallationccat
0 likes · 6 min read
How to Install and Use ccat for Colorized cat Output on Linux