Question: I want a command to shred completely the contents of a folder/directory (which may be inside folders/directories).
Also please explain the command.

Answer: 
For files not directories, here's a more simple way instead of `-exec shred -u {} \;` type of way:

```
cd to your directory.

```

then

```
find . -type f -print0 | xargs -0 shred -fuzv -n 48

```

this does 48 passes recursively to the current directory you `cd`'ed into.

Hope this helps some.
I have inserted the following bash script for this purpose in my .bashrc

```
function rm2 {

  for var in $@
  do
  if [ -d $var ]
  then
     nohup $( /usr/bin/find "$var" -type f -exec  shred -n 2 -u -z -x {} \;;/bin/rm -rf "$var" ) & 
  else
    nohup /usr/bin/shred -x -n 2 -u -z "$var" & 
  fi
done
exit
}

```