0

Possible Duplicate:
How can I securely erase a hard drive?
How to delete file(s) in secure manner?

I've got an older computer with an 80 GB hard drive. I'm trying to keep the hard drive as clear as possible and delete any downloaded files that I no longer need. I was just wondering, if I delete a file (which sends it to the trash bin) and then empty the trash bin, does that completely delete the file off the hard drive? If not, is there a good way to clean up the hard drive from time to time without erasing necessary programs?

2 Answers2

3

If my understanding is correct, when you empty the trash can all the files in it are completely deleted.

If you want to make sure that a file is deleted, you can delete files using the rm command, although this is dangerous, as you can easily break your system or delete many files if you accidentally mistype this command.

If you want more info on rm, look on its manpage.

ananaso
  • 4,080
  • 5
  • 32
  • 52
1

Yes. The answer to your question is yes. If you delete the files from the Trash , then the files no longer occupy a space in your HDD.

If you want to make a safe cleaning to the Operating System , then you can apply the commands below from time to time.

sudo apt-get --purge autoremove
sudo apt-get clean
sudo apt-get purge $(dpkg -l | awk '/^rc/ { print $2 }')

1st command will delete all unwanted packages.

2nd command will clean up the apt-cache

3rd command will delete unwanted files (e.g packages you have deleted and configuration files are still in system)

NickTux
  • 17,865
  • 6
  • 57
  • 66