QuestionQ85

VerifiedLinux Fundamentals

A task requires removal of every file in a folder while preserving all subdirectories. Which command achieves this?

Explanation

The find command with -type f selects only regular files, and -delete removes those selected files without deleting any subdirectories.

Community Discussion

No comments yet. Be the first to start the discussion!