ed (pronounced as distinct letters, /ˌiːˈdiː/)[1] is a line editor for Unix and Unix-like operating systems. It was one of the first parts of the Unix operating system that was developed, in August 1969.
Dennis M. Ritchie produced what Doug McIlroy later described as the “definitive” ed,[5] and aspects of ed went on to influence ex, which in turn spawned vi.
Vim (“Vi IMproved”) has many additional features compared to vi, including (scriptable) syntax highlighting, mouse support, graphical versions, visual mode, many new editing commands and a large amount of extension in the area of ex commands.
I’ve never used qed, but it sounds like that might be considered even one step back:
TECO (/ˈtiːkoʊ/[1]), short for Text Editor & Corrector, [2] [3][4] is both a character-oriented text editor and a programming language,[5][6] that was developed in 1962 for use on Digital Equipment Corporation computers, and has since become available on PCs and Unix. Dan Murphy developed TECO while a student at the Massachusetts Institute of Technology (MIT).
It was subsequently modified by many other people[7] and is a direct ancestor of Emacs, which was originally implemented in TECO macros.
EDIT: Actually…hmm. Now that I think of it, I might have briefly used TECO on a DEC VMS cluster. IIRC, I mostly used EVE, though.
NixOS has rm. But it’s not under /bin. There is no /bin in NixOS. The user’s programs are inside /run/current-system/sw/bin, and those are symlinks from files hidden in /nix/store.
Running rm -rf / --no-preserve-root under NixOS, will not nuke the entire system, since /nix/store is mounted as read-only, and only remounted as rw when new applications are downloaded, or older unused ones are wiped.
Ed is the standard and only option.
Ed is kinda-sorta great-granddaddy vim.
https://en.wikipedia.org/wiki/Ed_(software)
https://en.wikipedia.org/wiki/Vi_(text_editor)
I’ve never used qed, but it sounds like that might be considered even one step back:
https://en.wikipedia.org/wiki/Ed_(software)
Many features of ed came from the qed text editor developed at Thompson’s alma mater University of California, Berkeley.
https://en.wikipedia.org/wiki/QED_(text_editor)
I guess TECO — which I also have not used — would kinda-sorta be the emacs analog:
https://en.wikipedia.org/wiki/TECO_(text_editor)
EDIT: Actually…hmm. Now that I think of it, I might have briefly used TECO on a DEC VMS cluster. IIRC, I mostly used EVE, though.
Vim is bloatware atop Ed making it insanely memory hungry and nearly unusable.
(Send from an IBM PC with 256k memory running LFS)
deleted by creator
EDITOR=shredtoo if you’re brave or having a rough day.Remember to put
#!/bin/rmat the top of every file, to teach people not to execute files they shouldn’t.
Please use “/usr/bin/env [command]”. Otherwise, it will not work on NixOS
rmdoesn’t work on NixOS?Then how do you do
rm -rf / --no-preserve-root?Not really cool to post commands like that without consideration for privileges for newcomers, make sure to use
sudofirst. /sNixOS has
rm. But it’s not under/bin. There is no/binin NixOS. The user’s programs are inside/run/current-system/sw/bin, and those are symlinks from files hidden in/nix/store.Running
rm -rf / --no-preserve-rootunder NixOS, will not nuke the entire system, since/nix/storeis mounted as read-only, and only remounted as rw when new applications are downloaded, or older unused ones are wiped.Does that mean it works if you happen to run it while a download is ongoing?