Updated format to be more consistent (#24178)
Changed the usage section to be more consistent with the rest of the directory, also added a link to SS64 for further details.
This commit is contained in:
committed by
Randell Dawson
parent
487bf5dd4c
commit
43a0705a91
@ -4,16 +4,13 @@ title: Bash mv
|
|||||||
|
|
||||||
## Bash command: mv
|
## Bash command: mv
|
||||||
|
|
||||||
**Rename file.**
|
The mv command is used to move files and folders.
|
||||||
|
|
||||||
```
|
### Usage
|
||||||
mv <source> <target>
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
**Moves files and folders.**
|
|
||||||
```
|
```
|
||||||
mv <source> <path + filename>
|
mv <source> <path + filename>
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
The first argument is the file you want to move, and the second is the location to move it to. It can also be used to rename a file, by inputting 2 file names as parameters, like so: `mv originalFilename.txt newFilename.txt`
|
The first argument is the file you want to move, and the second is the location to move it to. It can also be used to rename a file, by inputting 2 file names as parameters, like so: `mv originalFilename.txt newFilename.txt`
|
||||||
@ -29,4 +26,5 @@ This command is capable of modifying many files at once with ease. This can be
|
|||||||
|
|
||||||
### More Information:
|
### More Information:
|
||||||
* [Wikipedia](https://en.wikipedia.org/wiki/Mv)
|
* [Wikipedia](https://en.wikipedia.org/wiki/Mv)
|
||||||
|
* [SS64](https://ss64.com/bash/mv.html)
|
||||||
* [Man pages](http://man7.org/linux/man-pages/man1/mv.1.html)
|
* [Man pages](http://man7.org/linux/man-pages/man1/mv.1.html)
|
||||||
|
Reference in New Issue
Block a user