2
0
Fork 0
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:
Diego 2017-04-06 18:39:33 +02:00 committed by Adnan Ahmed
parent 6d3d99bfaf
commit 2cfa591650

View file

@ -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`