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

  • DefederateLemmyMl@feddit.nl
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    6 months ago

    If you use shred instead of rm to delete a file, the contents should be unrecoverable for all practical intents and purposes.

    I don’t believe shred can work recursively on a directory structure, like rm, so you’ll have to cobble something together with the find command I guess.