๐ŸŽ New User? Get 20% off your first purchase with code NEWUSER20 ยท โšก Instant download ยท ๐Ÿ”’ Secure checkout Register Now โ†’
Menu

Categories

Linux Intermediate

What is Sed?

A stream editor for filtering and transforming text, commonly used for find-and-replace operations in files.

Sed (Stream Editor) processes text line by line using commands. The most common use is substitution: sed 's/old/new/g' file replaces all occurrences of "old" with "new". The -i flag edits files in place.

Sed supports regular expressions, line addressing, deletion (d), insertion (i/a), and multi-command processing. It is invaluable for batch text processing and configuration file management.

Related Terms

Pipe
A mechanism that connects the output of one command directly to the input of another, enabling command chaining.
Iptables
The traditional Linux firewall tool that filters network packets using configurable chains of rules organized in tables.
ACL (Access Control List)
An extension to standard Linux file permissions that allows setting fine-grained access rights for specific users and groups beyond owner/group/other.
Sysfs (/sys)
A virtual filesystem that exports information about kernel subsystems, hardware devices, and device drivers in a structured hierarchy.
File Permissions
A security mechanism that controls who can read, write, or execute files and directories in Unix-like systems.
Firewalld
A dynamic firewall management tool for Linux that provides a D-Bus interface for managing firewall rules with zones.
View All Linux Terms โ†’