E2RM(1)

✨ E2RM(1) β€” user commands, but make it cute ✨

okay bestie, welcome to e2rm πŸ’… it's part of the e2tools squad and it lives in section 1 of the manual (user commands, iykyk). let's get into it πŸŽ€


🌸 NAME 🌸

e2rm β€” deletes files and directories that live on an ext2 filesystem. yep, that's the whole gig. it's giving "rm but make it ext2" πŸ˜­πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

e2rm [options] files...

πŸ’œ DESCRIPTION πŸ’œ

so like, the e2rm command removes files and directories on an ext2 filesystem. that's it. that's the plot. it takes your files... and it says bye bye πŸ‘‹βœ¨ no cap.


πŸ‘‘ OPTIONS πŸ‘‘

  • -r β€” recursively delete files if a directory name is given. lowkey essential if you're trying to nuke a whole directory, otherwise it's not gonna do the thing 🫢
  • -v β€” be verbose. it will tell you what it's doing, main character energy, narrating its own life πŸ’…

πŸ™ˆ Note πŸ™ˆ

okay so real talk: this program expects to have a full ext2 file specification for each argument. like, every single argument needs the whole image:/path situation. no shortcuts, no "just the filename", none of that. fr fr.

🌈 EXAMPLES 🌈

Remove a file (so simple, so iconic):

e2rm -v boot.img:/boot/grub/grub.c1 /boot/grub/grub.c2

Remove a directory and all the files (go big or go home, hence the -r):

e2rm -r boot.img:/boot/grub

πŸ“ SEE ALSO πŸ“

e2tools(7), e2ln(1), e2ls(1), e2mkdir(1), e2cp(1), e2mv(1), e2tail(1).

the whole fam, go check them out πŸ’–


🧚 AUTHOR 🧚

the e2tools were written by Keith Sheffield <sheff@pobox.com>. absolute legend, we stan πŸ‘‘

this manual page was written by Lucas Wall <lwall@debian.org>, for the Debian project (but may be used by others). slay πŸŽ€


okay that's the whole page bestie, tysm for reading πŸ’– this one's from the Linux manual, dated 2020-02-05, E2RM(1) era β€” and that's a wrap! πŸ¦‹βœ¨