1

As you know there are multiple ways of recovering the files even after it was deleted. I have a USB 8GB pen, it contains many files, one of them I would like to delete it. if I clicked on move to the trash, of course, it's going to move the file from the external pen drive to the local storage. and I don't want that.

1
  • You can use the command line tool shred, which overwrites the file and after that deletes it without moving anything to the trashcan. Learn how to use it from man shred or by reading some tutorial via the internet.
    – sudodus
    Nov 25, 2019 at 20:52

2 Answers 2

3

When you delete a file on an USB drive, it is not moved to your local disk even if it shows in the trash. It is in an invisible folder on the USB drive (usually named .Trash-1000)

To immediately delete a file without using the trash, hold the SHIFT key and press DEL or send it to the trash and empty it.

1

I think you actually want to remove the file securely so as to make it very hard to recover the data.

Here is the command:

shred -u path/to/file

Just to make it unreadable:

shred path/to/file

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .