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:
  • ren or rename to 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 called rename:

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.

Random links:Tachinidae | Tordo siberiano | Fishing with the treasure | Lista de escritores suecos de la lengua | Federation of associations coeds of the campus of the University of Montreal | Large Exitos | Rollo Armstrong | Pralboino