Skip to content

Shred directory contents without deleting the directory itself? #1335

Answered by az0
jgkennedy asked this question in Q&A
Discussion options

You must be logged in to vote

This is not a feature, so you need to pass each file or sub-folder as a separate command line argument. If there are not many, you can do it on one command line. A script can make it easier.

It may be easier to just recreate the deleted directory using MKDIR, unless the directory has special properties like compression or permissions for a multi-user system.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@jgkennedy
Comment options

Answer selected by jgkennedy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants