Added wildcard paragraph (#27338)

pull/30612/head^2
The Archangel 2019-03-21 22:45:14 -04:00 committed by Christopher McCormack
parent 86ec0cf8dd
commit 86b842e19b
1 changed files with 4 additions and 0 deletions

View File

@ -39,6 +39,10 @@ To remove a nonempty folder for example, type:
rm -rf folder rm -rf folder
``` ```
### Wildcards
The `rm` command can be used in conjunction with an asterisk to delete multiple items matching a specific set of criteria. For example, you could use `rm test*` to remove all files in a directory starting with "test" regardless of whatever text follows that string. You can also use an asterisk by itself to purge all files in the current directory using `rm *`.
### More Information: ### More Information:
* [Wikipedia](https://en.wikipedia.org/wiki/Rm_(Unix)) * [Wikipedia](https://en.wikipedia.org/wiki/Rm_(Unix))
* [Man pages](http://man7.org/linux/man-pages/man1/rm.1.html) * [Man pages](http://man7.org/linux/man-pages/man1/rm.1.html)