You are on page 1of 1

Moving / Renaming a File or Directory

To
Tomove
moveaafile/dir
file/dirto
toaadifferent
different location
location
[root@comp1
[root@comp1 ~]# mv <source path> <destination
~]# mv <source path> <destinationpath>
path>

To
To rename
rename file/dir
file/dirmove
moveat
atsame
samelocation
location
[root@comp1
[root@comp1~]#
~]#mvmv <old
<oldname>
name><new
<newname>
name>

You might also like