Introduction to Ed

Ed is a line-oriented text editor. It is used to create, display, modify and otherwise manipulate text files, both interactively and via shell scripts. Ed isn't something which many people use. It's described here because it can be used by the patch program if you encounter an ed-based patch file. This happens rarely because diff-based patches are preferred these days.

This package is known to build and work properly using an LFS-7.8 platform.

Package Information

Ed Dependencies

Required to uncompress the tarball

libarchive-3.1.2 (for bsdtar)

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/ed

Installation of Ed

Install Ed by running the following commands:

./configure --prefix=/usr --bindir=/bin &&

To test the results, issue: make check.

Now, as the root user:

make install


Installed Programs: ed and red
Installed Libraries: None
Installed Directories: None

Short Descriptions


is a line-oriented text editor.


is a restricted ed—it can only edit files in the current directory and cannot execute shell commands.

Last updated on 2015-09-18 21:40:16 +0000