mirror of
https://github.com/Idnan/bash-guide.git
synced 2018-11-09 02:29:39 +01:00
Add another use for mv
command (#30)
This commit is contained in:
parent
6d3d99bfaf
commit
2cfa591650
1 changed files with 5 additions and 0 deletions
|
@ -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.
|
||||
|
||||
Also it can be used for rename a file.
|
||||
```bash
|
||||
mv old_name new_name
|
||||
```
|
||||
|
||||
### q. `rm`
|
||||
Removes a file. Using this command on a directory gives you an error.
|
||||
`rm: directory: is a directory`
|
||||
|
|
Loading…
Reference in a new issue