this post was submitted on 05 Nov 2025
518 points (98.3% liked)
linuxmemes
28647 readers
944 users here now
Hint: :q!
Sister communities:
Community rules (click to expand)
1. Follow the site-wide rules
- Instance-wide TOS: https://legal.lemmy.world/tos/
- Lemmy code of conduct: https://join-lemmy.org/docs/code_of_conduct.html
2. Be civil
- Understand the difference between a joke and an insult.
- Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
- Don't get baited into back-and-forth insults. We are not animals.
- Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
- Bigotry will not be tolerated.
3. Post Linux-related content
- Including Unix and BSD.
- Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of
sudoin Windows. - No porn, no politics, no trolling or ragebaiting.
- Don't come looking for advice, this is not the right community.
4. No recent reposts
- Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
5. π¬π§ Language/ΡΠ·ΡΠΊ/Sprache
- This is primarily an English-speaking community. π¬π§π¦πΊπΊπΈ
- Comments written in other languages are allowed.
- The substance of a post should be comprehensible for people who only speak English.
- Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
6. (NEW!) Regarding public figures
We all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations. - Keep discussions polite and free of disparagement.
- We are never in possession of all of the facts. Defamatory comments will not be tolerated.
- Discussions that get too heated will be locked and offending comments removed. Β
Please report posts and comments that break these rules!
Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Ed is the standard and only option.
EDITOR=shredtoo if youβre brave or having a rough day.Remember to put
at 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?
Maybe... I haven't tried it to be honest. I will need to setup a VM for that, as my personal files would get wiped anyway.
If you want to test it yourself, try to
rmwhilenixos-rebuildis running.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 VAX/VMS cluster. IIRC, I mostly used EVE, though.
EDIT2: Hmm. Apparently someone has ported TECO to Linux:
https://www.almy.us/teco.html
tries building it
Hah. It takes under a third of a second to compile on my system:
Hmm. Yeah, I don't remember how to use this at all, if I did use it. Looks like the command syntax is a little like ed's, but you whack Escape twice to execute commands. Each press of Escape displays a dollar sign.
Intro guide Β© 1972: https://ia902906.us.archive.org/25/items/bitsavers_decpdp10TOandbook04tecoIntro_1457616/04_tecoIntro_text.pdf
Clearly does work, though.
Vim is bloatware atop Ed making it insanely memory hungry and nearly unusable.
(Send from an IBM PC with 256k memory running LFS)
LFS is unlikely to run on such a machine. BSD or Xenix are appropriate operating systems.
TECO is clearly the correct choice