16
Chapter 1
The
mv
command can be used to move a file or directory to a new loca-
tion or simply to give an existing file a new name. To rename
newfile to
newfile2, you would enter the following:
kali >
mv newfile newfile2
kali >
ls
oldfile newfile2
Now when you list (
ls
) that directory, you see
newfile2 but not
newfile,
because it has been renamed. You can do the same with directories.