🎁 New User? Get 20% off your first purchase with code NEWUSER20 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

Process
A running instance of a program, with its own memory space, process ID, and system resources.
Journalctl
A command-line tool for querying and viewing logs collected by systemd's journal logging system.
Systemctl
The primary command for managing systemd services, including starting, stopping, enabling, and checking service status.
Linux Kernel Module
A piece of code that can be loaded into the kernel at runtime to extend functionality without rebooting, such as device drivers and filesystems.
Curl
A versatile command-line tool for transferring data using various network protocols, commonly used for API testing.
AppArmor
A Linux security module that restricts program capabilities using per-application profiles, simpler to configure than SELinux.
View All Linux Terms →