I need to return my computer to the company after our mass lay off. I want to remove everything. I care nothing about any files. Just need it ALL removed. Please advise me, as I am obviously a novice. Thank you in advance!!
2 Answers
First off, definitely make sure you don't need anything on there. Once you've done that use Darik's Boot And Nuke (DBAN) if you want everything removed.
DBAN is a self-contained boot disk that automatically deletes the contents of any hard disk that it can detect. This method can help prevent identity theft before recycling a computer. It is also a solution commonly used to remove viruses and spyware from Microsoft Windows installations. DBAN prevents all known techniques of hard disk forensic analysis. It does not provide users with a proof of erasure, such as an audit-ready erasure report.
Source: http://www.dban.org/
Deleting files is as easy as using the Del key on the file navigator or using the rm command.
I will assume that all your files are in your home (something like /home/myName/), and therefore all you need to do is:
$ rm -rf *
If you want to delete things out of your home directory everything is exactly the same but you have to use sudo (and be an authorised sudoer on your machine, of course!).
Now, if you want to make absolutely sure that nobody, even the CIA and their forensic experts, will ever see those files again this may not be enough.
With adequate tools and a lot of time files can be recovered from a hard disk even after they are deleted. If you want to make them disappear forever beyond recovery you need to use shred on the file that identifies your home partition. Assuming it is /dev/sda1 (you can see with command 'mount'), you need to write:
$ sudo shred -f -z -n 10 /dev/sda1
Alternatively, if you are not an authorised sudoer, you can shred each and every file in your account, one by one:
$ find . -exec shred -f -u -n 10 \{\} \;
The -u option deletes the file after shredding it. It should not be used with /dev/sda1.
(more info on man rm and man shred)