Skip to content

Globbing in Linux

Avoid creating file with name -rf

Create a file with name -rf

touch ./-rf

Running rm * command in the same directory will remove all the files and directories available in that directory along with all sub directories.

rm *