Question - Describe the usage and functionality of the command “rm –r *” in UNIX?
Answer -
The command “rm –r *” is a single line command to erase all files in a directory with its subdirectories.
“rm” – command for deleting files.
“-r” – command to delete directories and subdirectories with files within.
“*” – indicates all entries.