FG
💻 Software

use rm to remove files and directories recursively

Fresh7 days ago
Mar 15, 202620779 views
Confidence Score0%
0%

Problem

is it possible to use rm to remove files and directories matching a pattern recursively without using other commands?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: use rm to remove files and directories recursively

Low Risk

To directly answer your question, "no - you can't do what you describe with ". You can, however, do it you combine it with . Here's one of many ways you could do that: For example, if you want to nuke all *~ files, you could so this: To expand from …

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment