| Edlin | |
|---|---|
EDLIN.COM (among several other commands) in IBM PC DOS 1.0 | |
| Original author | Tim Paterson |
| Developers | Microsoft, IBM, Gregory Pietsch |
| Release | 1980 |
| Written in | MS-DOS: x86 assembly language |
| Operating system | 86-DOS, IBM PC DOS, MS-DOS, FreeDOS, OS/2, eComStation, ArcaOS, Windows |
| Successor | MS-DOS Editor |
| Type | Line editor |
| License | MS-DOS: MIT FreeDOS, ReactOS: GPL 86-DOS, PC DOS, OS/2, Windows: Proprietary commercial software |
| Website | Edlin |
| Repository | github |
Edlin is a line editor, and the only text editor provided with early versions of IBM PC DOS, MS DOS and OS/2. Although superseded in MS-DOS 5.0 and later by the full screen MS DOS Editor, and by Notepad in Microsoft Windows, it continued to be included in the 32 bit versions of Microsoft operating systems up to Windows Server 2008 and Windows 10. While Edlin itself was discontinued with the death of 32 bit Windows, Microsoft later revived the concept of a terminal focused editor in 2025 by releasing an open-source, modern command line editor called "Edit" for Windows 11.

Edlin was created by Tim Paterson in two weeks in 1980, for Seattle Computer Products's 86-DOS (QDOS) based on the CP/M context editor ED, itself distantly inspired by the DEC PDP-10 TOPS-10 EDIT text editor.
Microsoft acquired 86-DOS and, after some further development, sold it as MS-DOS, so Edlin was included in v1.0–v6.22 of MS-DOS. From MS-DOS 6 onwards, the main editor included was the new full-screen MS-DOS Editor. On some distributions of 6.22, EDLIN was found on the supplementary tools disk instead of being installed by default.
Windows 95, 98 and ME ran on top of an embedded version of DOS, which reports itself as MS-DOS 7.
Edlin is included in the 32-bit versions of Windows NT and its derivatives—up to and including Windows 10—because the NTVDM's DOS support in those operating systems is based on MS-DOS version 5.0. However, unlike most other external DOS commands, it has not been transformed into a native Win32 program. It also does not support long filenames, which were not added to MS-DOS and Windows until long after Edlin was written.
The FreeDOS version was developed by Gregory Pietsch.
To start ediln from the DOS prompt, one would type the command edlin followed by the filename to be opened or created. Once the edilin prompt * appears. there are only a few commands for editing and a short listing of them can be seen by entering a ? at the edlin prompt.
*1,6L
1: Edlin: The only text editor in early versions of DOS.
2:
3: Back in the day, I remember seeing web pages
4: branded with a logo at the bottom:
5: "This page created in edlin."
6: The things that some people put themselves through. ;-)
*
*6I
6:*(...or similar)
7:*^C
*7D
*L
1: Edlin: The only text editor in early versions of DOS.
2:
3: Back in the day, I remember seeing web pages
4: branded with a logo at the bottom:
5: "This page created in edlin."
6: (...or similar)
*
^Z represents pressing CTRL+Z). It is case-sensitive.Edlin may be used as a non-interactive file editor in scripts by redirecting a series of edlin commands.
edlin < script
A GPL-licensed clone of Edlin that includes long filename support is available for download as part of the FreeDOS project. This runs on operating systems such as Linux or Unix as well as MS-DOS.