Wiki source for CommandMv
=====Command mv=====
This command is part of the [[CommandsPosix posix]] extensions and needs to be imported to be available to the shell.
See [[CommandsPosix Posix Commands]]
====Name====
**mv** moves or renames files
====Synopsis====
mv [options] file [file ...] target
====Options====
||-f,-force||Force move even if target exists or is readonly.||
====Description====
If there are 2 or more source files or the target is a directory then files are moved to the target directory.
If there are exactly 2 arguments and the target does not exist or is not a directory then the source ("file") is moved (renamed) to the target file.
====Return Value====
Returns 0 if the command executed successfully, 1 if there was an error.
----
[[Commands]]
[[CategoryCommands]]
[[CommandsPosix]]
This command is part of the [[CommandsPosix posix]] extensions and needs to be imported to be available to the shell.
See [[CommandsPosix Posix Commands]]
====Name====
**mv** moves or renames files
====Synopsis====
mv [options] file [file ...] target
====Options====
||-f,-force||Force move even if target exists or is readonly.||
====Description====
If there are 2 or more source files or the target is a directory then files are moved to the target directory.
If there are exactly 2 arguments and the target does not exist or is not a directory then the source ("file") is moved (renamed) to the target file.
====Return Value====
Returns 0 if the command executed successfully, 1 if there was an error.
----
[[Commands]]
[[CategoryCommands]]
[[CommandsPosix]]