Shell Pattern Matching with Wildcards and Regular Expressions
Wildcards
Shell wildcards are used for filename and directory name matching. They are processed by the shell and appear exclusively in command arguments.
Wildcard Patterns
Pattern
Description
*
Matches any sequence of characters, including empty strings
?
Matches exactly one character
[]
Matches any single character within the specif ...
Posted on Fri, 31 Jul 2026 16:08:52 +0000 by dillonit
Mastering Linux Standard Stream Redirection with the tee Utility
The tee command acts as a splitter in a pipeline, reading from standard input and writing simultaneously to standard output and one or more files. Its core value is allowing operators to inspect a data stream in real time while preserving it for later processing or auditing.
command | tee [options] file [file2 ...]
Options Overview
-a, --appe ...
Posted on Wed, 29 Jul 2026 16:25:32 +0000 by ik
Essential Linux Commands for System Administration
The Linux terminal serves as the interface between users and the kernel, interpreting shell commands that control system operations. Mastering these commands is essential for effective system management.
Keyboard Shortcuts
Ctrl+Alt+T: Launch new terminal
Ctrl+Shift+N: Open terminal in current directory
Privilege Escalation
The sudo comand all ...
Posted on Wed, 15 Jul 2026 17:25:45 +0000 by android6011
Mastering Linux Pipe Operators and Text Filter Commands
The pipe operator (|) is one of the most powerful features in Linux, enabling you to chain multiple commands together. This article explores how pipes work, how they differ from redirection, and demonstrates practical filter command usage.
How Pipe Operators Work
A pipe connects the standard output of one command to the standard input of anothe ...
Posted on Mon, 06 Jul 2026 17:29:00 +0000 by kbascombe
Using Multi-Process Execution to Ping IPs in a Network Segment for Connectivity Verification
To verify the connectivity of all IP addresses within a network segment, multiple approaches can be used. Two methods are presented here: a single-process implementation and a multi-process version.
Single-Process Ping Implementation (Sequential Processing)
#!/bin/bash
read -p "Enter the network portion of the IP address: " network_ip ...
Posted on Tue, 30 Jun 2026 17:54:58 +0000 by theslinky
Decoding Linux Shell Configurations: .bashrc, .bash_profile, and .profile
Linux shell configuration files—.bashrc, .bash_profile, and .profile—control how your command line environment behaves. Each file serves a distinct purpose based on shell type and session mode. Understanding these differences helps you set up aliases, environment variables, and startup commands correctly.
.bashrc: Interactive Non‑Login Shell Co ...
Posted on Sat, 27 Jun 2026 17:05:12 +0000 by itsmeArry
Automating MySQL Operations with Shell Scripts
MariaDB Installation
yum install mariadb mariadb-server mariadb-libs -y
systemctl start mariadb
netstat -tnlp | grep :3306
MariaDB runs without a default password, allowing direct access via the mysql command.
Database Setup
CREATE DATABASE school DEFAULT CHARACTER SET utf8;
Table Definitions
CREATE TABLE student (
s_id VARCHAR(20),
s ...
Posted on Tue, 23 Jun 2026 17:47:34 +0000 by IAK
Linux - Utilizing Input and Output Redirection
Introduction to Redirection
There are situations where saving the output of a program to a file is necessary for later analysis. For instance, if you have a compiled program named myprog, you can disassemble it and store the result in a file called output using the following command:
objdump -d myprog > output
The > symbol is used for re ...
Posted on Sun, 07 Jun 2026 18:06:23 +0000 by MarCn
Automated Service Monitoring and Management Strategies in Shell
Effective system administration relies on robust monitoring scripts. This guide explores best practices for implementing service health checks and automated recovery using Bash conditional logic.
1. System Resource Monitoring
To monitor system memory and alert administartors, we can leverage the free utility. The following script checks if avai ...
Posted on Wed, 27 May 2026 21:41:09 +0000 by webdes03
Bash Conditional Expressions and Operators
Conditional Expression Syntax
Bash supports four syntax forms for condition testing:
Syntax
Description
test expression
Uses the test command
[ expression ]
Single brackets, functionally identical to test
[[ expression ]]
Double brackets, enhanced version of the above
((expression))
Double parentheses, typically used with if statem ...
Posted on Mon, 25 May 2026 19:41:41 +0000 by True`Logic