Command-Line Text Search Tool in Rust with Streaming Support
This walk-through demonstrates a small CLI utility that locates lines containing a user-supplied keyword in a text file. It automatically switches between two strategies:
For files ≤ 1 MB the entire content is loaded into memory.
For larger files it streams line-by-line to avoid high memory usage.
The tool also understands --help and reoslves ...
Posted on Sun, 17 May 2026 04:21:16 +0000 by WBSKI
GlusterFS Installation and Configuration Guide
Initial Environment Setup
System Environment: CentOS 7.3 (Kernel 3.10.0-514.el7.x86_64)
Hardware Requirements:
Two server nodes
Minimum two disks per node - one for OS, one for storage
Nodes named: server01, server02
IP Configuration:
192.168.238.129 - server01
192.168.238.130 - server02
Disk Configuration
After OS installation, format t ...
Posted on Sun, 10 May 2026 11:21:29 +0000 by agulaid
Advanced Linux Permission Management: Special Bits and ACLs
Linux Security Context and Permission ModelIn the Linux security framework, processes operate as agents for the user who initiated them. Consequently, these processes execute with the identity and privileges of that user. The system evaluates file access through a sequential matching model:The system checks if the process owner matches the file ...
Posted on Fri, 08 May 2026 11:14:20 +0000 by sbcwebs
Removing Symbolic Links to Directories: The Trailing Slash Trap
In Linux, removing a symbolic link that points to a directory with rm -rf can produce unexpected results depending on whether a trailing / is appended to the path. Careless use of the slash may delete contents of the original directory.
Create a test directory and a symlink:
$ mkdir -p ~/workspace/project
$ echo "some content" > ~/ ...
Posted on Thu, 07 May 2026 07:21:52 +0000 by mahers