hi,

My company gave me a laptop for work and after some time they will give it to another person when I quit the company so I want to make sure I don’t leave any of my data behind so which command should I run to delete my home directory to delete all the data?

is it just rm -rf /home/myname

  • isgleas@lemmy.ml
    link
    fedilink
    English
    arrow-up
    3
    ·
    5 months ago

    You can use shred instead of rm, but even there the chance of recovering the files exist. If you have you homedir encrypted, just nucking the encrypted drive would do. Or you can replace the drive with a new, cheap one.

    • jet@hackertalks.com
      link
      fedilink
      English
      arrow-up
      2
      ·
      5 months ago

      Just having part of your file system encrypted is insufficient, ram can get swapped to disc, files can get written to temporary file locations, log files can leave fingerprints, if there’s any part of the drive that’s unencrypted, the disk has to be considered tainted