mirror of
https://github.com/nushell/nushell
synced 2024-12-29 06:23:11 +00:00
32 lines
498 B
Markdown
32 lines
498 B
Markdown
|
# mv
|
||
|
Move files or directories.
|
||
|
|
||
|
## Usage
|
||
|
```shell
|
||
|
> mv <source> <destination> {flags}
|
||
|
```
|
||
|
|
||
|
## Parameters
|
||
|
* `<source>` the location to move files/directories from
|
||
|
* `<destination>` the location to move files/directories to
|
||
|
|
||
|
## Flags
|
||
|
* -h, --help: Display this help message
|
||
|
|
||
|
## Examples
|
||
|
Rename a file
|
||
|
```shell
|
||
|
> mv before.txt after.txt
|
||
|
```
|
||
|
|
||
|
Move a file into a directory
|
||
|
```shell
|
||
|
> mv test.txt my/subdirectory
|
||
|
```
|
||
|
|
||
|
Move many files into a directory
|
||
|
```shell
|
||
|
> mv *.txt my/subdirectory
|
||
|
```
|
||
|
|