How To Install Ed?
Maintainer: Martin Zobel-Helas
Email: [email protected] .
Website: https://www.gnu.org/software/ed/
Section: editors
Install ed
-
Debian
apt-get install edClick to copy -
Ubuntu
apt-get install edClick to copy -
Alpine OS
apk add edClick to copy -
Arch Linux
pacman -S edClick to copy -
Kali Linux
apt-get install edClick to copy -
CentOS
yum install edClick to copy -
Fedora
dnf install edClick to copy -
Raspbian
apt-get install edClick to copy -
macOS
brew install edClick to copy
The original Unix text editor.
How to use ed?
Below are few example commands for ed that you can use in the terminal.
Start ed, editing an empty document (which can be saved as a new file in the current directory):edClick to copyStart ed, editing an empty document, with `:` as a command prompt indicator:ed -p :Click to copyStart ed editing an existing file (this shows the byte count of the loaded file):ed -p : path/to/fileClick to copyToggle the printing of error explanations. (By default, explanations are not printed and only a `?` appears):HClick to copyAdd text to the current document. Mark completion by entering a period by itself in a new line:a<Enter>text_to_insert<Enter>.Click to copyPrint the entire document (`,` is a shortcut to the range `1,$` which covers the start to the end of the document):,pClick to copyWrite the current document to a new file (the filename can be omitted if `ed` was called with an existing file):w filenameClick to copyQuit ed:qClick to copy
To install the latest version of ed in your favorite operating system just copy the ed installation command from above and paste it into terminal. It will download and install the latest version of ed 2026 package in your OS.




