mirror of https://github.com/Idnan/bash-guide.git
Add another use for `mv` command (#30)
This commit is contained in:
parent
6d3d99bfaf
commit
2cfa591650
|
@ -222,6 +222,11 @@ mv filename1 filename2
|
||||||
```
|
```
|
||||||
Where `filename1` is the source path to the file and `filename2` is the destination path to the file.
|
Where `filename1` is the source path to the file and `filename2` is the destination path to the file.
|
||||||
|
|
||||||
|
Also it can be used for rename a file.
|
||||||
|
```bash
|
||||||
|
mv old_name new_name
|
||||||
|
```
|
||||||
|
|
||||||
### q. `rm`
|
### q. `rm`
|
||||||
Removes a file. Using this command on a directory gives you an error.
|
Removes a file. Using this command on a directory gives you an error.
|
||||||
`rm: directory: is a directory`
|
`rm: directory: is a directory`
|
||||||
|
|
Loading…
Reference in New Issue