Let this be a lesson in doing your own research before taking any advice. A simple man
page lookup from the command line would have warned you off.
Linux has a manual system invoked by typing man
at the command prompt.
Lets trace out what you were instructed to do.
man sudo
sudo allows a permitted user to execute a command as the superuser or another user
So basically, run the following command as root, oopsie!
man shred
Overwrite the selected FILE(s) repeatedly, in order to make it harder to recover the data.
-r recursive
-f force change permissions to allow writing
-z add a final overwrite with zeros to hide shredding
~/* from the user's home directory root
Ouch, not a simple delete here, overwrite the files a default three times, follow the folder structure, change the permissions to allow this on read only files, add a zero overwrite.
Well, at least they weren't totally out to destroy you, you didn't do rm -rf
from /
(and no, don't ever do this unless you want to wipe a drive, you're facing a total system reinstall)
The only way to fix the damage done here is to restore from backups.