Tagged articles
7 articles
Page 1 of 1
MaGe Linux Operations
MaGe Linux Operations
Nov 28, 2024 · Operations

Master Shell Scripting: Essential Tips and Real-World Examples for Linux Automation

This comprehensive guide explains why learning Shell scripting is crucial for Linux system administrators, outlines the prerequisite skills, and walks through core concepts such as variables, quoting, command substitution, script execution methods, and function definitions with practical code examples to boost automation efficiency.

BashFunctionsShell scripting
0 likes · 11 min read
Master Shell Scripting: Essential Tips and Real-World Examples for Linux Automation
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
DevOps Cloud Academy
DevOps Cloud Academy
Jun 12, 2018 · Fundamentals

Using Numeric Operators and Variable Assignment in Shell Scripts

This article explains how to perform arithmetic with the expr command, assign results to variables, extract information using command substitution, and correctly apply quoting and backticks in Bash to handle spaces, special characters, and nested commands.

ArithmeticVariable Assignmentcommand substitution
0 likes · 4 min read
Using Numeric Operators and Variable Assignment in Shell Scripts
ITPUB
ITPUB
May 26, 2016 · Fundamentals

Mastering Shell Command Substitution: Backticks vs $() and Escape Tricks

This article explains shell command substitution, comparing backticks and the modern $(…) syntax, details their handling of special characters, demonstrates nesting and backslash escaping tricks across various shells, and provides practical examples and solutions for reliable quoting and path handling.

Bashcommand substitutionescaping
0 likes · 10 min read
Mastering Shell Command Substitution: Backticks vs $() and Escape Tricks
MaGe Linux Operations
MaGe Linux Operations
Apr 25, 2016 · Fundamentals

When to Use exec, source, or fork in Bash? A Practical Guide

This article explains the differences between exec, source, and fork in Bash, covering process creation, environment variable inheritance, command groups, variable substitution, positional parameters, logical operators, and provides example scripts to illustrate each concept for effective shell scripting.

_sourcecommand substitutionenvironment variables
0 likes · 26 min read
When to Use exec, source, or fork in Bash? A Practical Guide