2
0
Fork 0
mirror of https://github.com/Idnan/bash-guide.git synced 2018-11-09 02:29:39 +01:00

Add detail for -f option in rm command

#14
This commit is contained in:
Adnan Ahmed 2017-04-04 22:01:23 +04:00 committed by GitHub
parent c67218ec18
commit 42d692737a

View file

@ -166,7 +166,7 @@ Where `filename1` is the source path to the file and `filename2` is the destinat
### i. `rm`
Removes a file. Using this command on a directory gives you an error.
`rm: directory: is a directory`
In order to remove a directory you have to pass `-r` to remove all the content of the directory recursively.
To remove a directory you have to pass `-r` which will remove the content of the directory recursively. Optionally you can use `-f` flag to force the deletion i.e. without any confirmations etc.
```bash
rm filename
```