Mv (Unix)
mv (in reference at the end English move , to move) is the name of a Commande UNIX making it possible to move file S and repertory S. It also makes it possible to re-elect a file or a repertory.
Other systems
DOS and Windows
Under DOS and Windows this order is subdivided in two parts:-
renorrenameto re-elect a file or a repertory. -
move(appeared on late) to move a file or a repertory.
Function C and PHP
In language C, the corresponding function is calledrename: Syntax
int rename (const tank *oldpath, const tank *newpath);rename re-elects the file oldpath towards the file oldpath , by moving it towards another repertory if need be. If the file destination exists, it will be crushed (if the process has the right of it). Code return
rename returns 0 if it succeeds, or -1 if it fails, in which case errno contains the error code.
In syntax is: bool rename (string oldname, string newname resource context)
With the same parameters as out of C.