E2MV(1)

πŸ’… E2MV(1) β€” like, the e2mv page, bestie

okay so real talk, this is the manual page for e2mv from the User commands section of the manual. buckle up, it's short and it's iconic. ✨


🌸 NAME 🌸

e2mv β€” moves or renames files on an ext2fs filesystem


πŸ¦‹ SYNOPSIS πŸ¦‹

e2mv [options] files... dest

✨ DESCRIPTION ✨

So the e2mv command moves or renames files on an ext2fs filesystem. that's the whole vibe. πŸ’–

the source files have to be explicitly stated β€” like, you gotta name them yourself, no shortcuts. and no cap: it does not use regular expressions. yet. so don't come in here expecting regex magic, it's giving "someday maybe." πŸ™ˆ


πŸŽ€ OPTIONS πŸŽ€

  • -f β€” Force the operation to remove any existing files. (she will ✨delete✨ what's in her way, respectfully.)
  • -s β€” Swap names of the two files. (they trade places, main character energy for both 🫢)
  • -v β€” Be verbose. (she'll tell you everything she's doing, and honestly? we love that.)

🌈 EXAMPLES 🌈

Rename a file:

e2cp -v /tmp/boot.img:/boot/grub/grub.conf /boot/grub/grub.conf.old

so if /boot/grub/grub.conf.old already exists and is not a directory, this will fail. πŸ’€ use -f to force removal. no -f? no dice.


Move a file to a different directory (/data/processed):

e2cp -v /dev/hdb1:/data/input0.txt /data/processed

look at her go, relocating with grace. πŸ¦‹


To swap the names of two files:

e2cp -vs /tmp/boot.img:/boot/grub/grub.conf /boot/grub/grub.conf.bk

To swap two files and use a new name for the first one:

e2cp -vs boot.img:/boot/grub/grub.conf /boot/grub/grub.c2
/boot/grub/grub.c1

and the receipts, bestie:

/boot/grub/grub.conf is now /boot/grub/grub.c1 and /boot/grub/grub.c2 is now /boot/grub/grub.conf

periodt. πŸ’…


πŸ‘‘ SEE ALSO πŸ‘‘

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


πŸ’œ AUTHOR πŸ’œ

The e2tools were written by Keith Sheffield <sheff@pobox.com>.

This manual page was written by Lucas Wall <lwall@debian.org>, for the Debian project (but may be used by others).


ok that's the whole page, you're literally an e2mv expert now 🧚 no thoughts, just moves. slay. πŸ“

this page belongs to the Linux fam, dated 2020-02-05, and it's E2MV(1) through and through β€” byeeee πŸ’–βœ¨πŸŽ€