1E2MV(1)                          User commands                         E2MV(1)
2
3
4

NAME

6       e2mv - moves or renames files on an ext2fs filesystem
7

SYNOPSIS

9       e2mv [options] files... dest
10

DESCRIPTION

12       The  e2mv  command  moves or renames files on an ext2fs filesystem. The
13       source files must be explicitly stated. It does not use regular expres‐
14       sions, yet.
15

OPTIONS

17       -f     Force the operation to remove any existing files.
18
19       -s     Swap names of the two files.
20
21       -v     Be verbose.
22

EXAMPLES

24       Rename a file:
25
26           e2cp -v /tmp/boot.img:/boot/grub/grub.conf /boot/grub/grub.conf.old
27
28       If  `/boot/grub/grub.conf.old`  already  exists and is not a directory,
29       this will fail.  Use `-f` to force removal.
30
31       Move a file to a different directory (`/data/processed`):
32
33           e2cp -v /dev/hdb1:/data/input0.txt /data/processed
34
35       To swap the names of two files:
36
37           e2cp -vs /tmp/boot.img:/boot/grub/grub.conf /boot/grub/grub.conf.bk
38
39       To swap two files and use a new name for the first one:
40
41           e2cp    -vs    boot.img:/boot/grub/grub.conf     /boot/grub/grub.c2
42       /boot/grub/grub.c1
43
44           `/boot/grub/grub.conf` is now `/boot/grub/grub.c1` and
45           `/boot/grub/grub.c2`   is now `/boot/grub/grub.conf`
46

SEE ALSO

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

AUTHOR

51       The e2tools were written by Keith Sheffield <sheff@pobox.com>.
52
53       This  manual page was written by Lucas Wall <lwall@debian.org>, for the
54       Debian project (but may be used by others).
55
56
57
58Linux                             2020-02-05                           E2MV(1)
Impressum