{"id":5816,"date":"2024-06-21T23:58:18","date_gmt":"2024-06-22T04:58:18","guid":{"rendered":"https:\/\/www.incredigeek.com\/home\/?p=5816"},"modified":"2024-06-21T23:58:18","modified_gmt":"2024-06-22T04:58:18","slug":"securely-delete-files-on-linux","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/securely-delete-files-on-linux\/","title":{"rendered":"Securely Delete Files on Linux"},"content":{"rendered":"\n<p>We can use srm to securely delete files on Linux.<\/p>\n\n\n\n<p>Install srm with <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt install secure-delete<\/pre>\n\n\n\n<p>We can now securely delete files by running <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">srm filetodelete.txt<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># srm --help<br>srm v3.1 (c) 1997-2003 by van Hauser \/ THC &lt;vh@thc.org><br><br>Syntax: srm [-dflrvz] file1 file2 etc.<br><br>Options:<br>        -d  ignore the two dot special files \".\" and \"..\".<br>        -f  fast (and insecure mode): no \/dev\/urandom, no synchronize mode.<br>        -l  lessens the security (use twice for total insecure mode).<br>        -r  recursive mode, deletes all subdirectories.<br>        -v  is verbose mode.<br>        -z  last wipe writes zeros instead of random data.<br><br>srm does a secure overwrite\/rename\/delete of the target file(s).<br>Default is secure mode (38 writes).<br>You can find updates at http:\/\/www.thc.org<\/pre>\n\n\n\n<p>Other links for securely erasing drives.<br><a href=\"https:\/\/www.tomshardware.com\/how-to\/secure-erase-ssd-or-hard-drive\">https:\/\/www.tomshardware.com\/how-to\/secure-erase-ssd-or-hard-drive<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We can use srm to securely delete files on Linux. Install srm with sudo apt install secure-delete We can now securely delete files by running srm filetodelete.txt # srm &#8211;helpsrm v3.1 (c) 1997-2003 by van Hauser \/ THC &lt;vh@thc.org>Syntax: srm &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/securely-delete-files-on-linux\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,573],"tags":[1683,567,566,1684,1682,1681],"class_list":["post-5816","post","type-post","status-publish","format-standard","hentry","category-linux","category-security","tag-clear","tag-delete","tag-purge","tag-sanitize","tag-secure-delete","tag-srm"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/5816","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=5816"}],"version-history":[{"count":1,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/5816\/revisions"}],"predecessor-version":[{"id":5835,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/5816\/revisions\/5835"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=5816"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=5816"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=5816"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}