Question - Write a command to erase all files in the current directory including all its subdirectories.
Answer -
“rm –r*” is the command used to erase all files in the current directory including all its subdirectories.
- rm: This command is used for deleting files.
- -r: This option will erase all files in directories and sub-directories.
- ‘*’: This represents all entries.