mv - move files
Syntax
Description
Examples
See Also
mv src [src ...] dest
The mv command moves single or several files or directories from one location to another. If a single file or directory is moved and the last element of the destination isnt a directory, it is moved and renamed to that. So mv can be used to rename files.
mv foo.c bar/ - will move the file foo.c into the bar directorymv foo.c foo.h bar/ - will move the files foo.c and foo.h into the bar directory
mv foo.c bar.c - this will rename foo.c to bar.c
cp(1), rm(1)
| MV (1) |