Understanding and Applying Regular Expressions in Linux
Regular expressions (regex) are patterns used to match character combinations in text, consisting of literal characters and metacharacters with special meanings. They enable efficient searching, extraction, and manipulation of text based on defined rules.
In Linux environments, regex is intergal to commend-line utilities like grep, sed, and awk ...
Posted on Sun, 21 Jun 2026 17:49:36 +0000 by andriy
Mastering Linux File Inspection, Filtering, Archiving, and Terminal Editors
Viewing and Navigating File Streams
The cat utility dumps an entire file's contents directly to standard output. For large datasets requiring paginated reading, more or less provide an interactive terminal viewer.
cat /etc/os-release
less /etc/nginx/nginx.conf
Press q inside the pager to exit cleanly.
Extracting Boundary Lines
head and tail st ...
Posted on Fri, 05 Jun 2026 17:34:40 +0000 by erfg1
Managing Empty Lines, Comments, Line Endings, and Duplicates in Vim
Removing Blank Lines
To delete all blank lines and those containing only whitespace:
:g/^$/d
To remove lines that contain only spaces or tabs:
:g/^\\s\*$/d
To eliminate lines starting with #, or with spaces or tabs followed by #:
:g/^\\s\*#/d
For PHP configuration files where comments start with ;:
:g/^\\s\*;/d
To delete lines from the second l ...
Posted on Wed, 20 May 2026 04:38:34 +0000 by yellowepi
Modifying Network Configuration and Text Processing in Linux
Modifying Network Interface Configuraton
1. Update the Network Configuration File
Edit the configuraton file for the target interface (e.g., ens33).
vim /etc/sysconfig/network-scripts/ifcfg-ens33
Adjust the following parameters:
NAME=enp0 # Corresponds to net.ifnames=0
DEVICE=enp0 # Corresponds to biosdevname=0
2. Rename the Configuratio ...
Posted on Mon, 11 May 2026 09:45:57 +0000 by yogadt