mv

Syntax

mv src...[dst]

Description

Moves one or more files to a destination within a file system.

Options

src...

Specifies a source file or directory name. Wildcards are permitted.

dst

Specifies a destination file or directory name Wildcards are permitted. If not specified, the current working directory is assumed to be the destination. If there is more than one argument in the command line, the last one is always considered the destination.

Usage

This command does not support moving between file system volumes. If the destination is an existing directory, the sources are moved into that directory. Otherwise, the sources are moved to the destination as if the directory has been renamed. If a destination is not specified, the current directory is assumed to be the destination.

Attempting to move a read-only file or directory results in an error. Moving a directory that contains read-only files is allowed. You cannot move a directory into itself or its subdirectories. You cannot move a directory if the current working directory is itself or its subdirectories.

If an error occurs, the remaining files or directories are still moved.

Example

To rename a file:

fs0:\> mv IsaBus.efi Bus.efi 
moving fs0:\IsaBus.efi -> \Bus.efi 
- [ok]