{"id":26,"date":"2014-04-10T14:36:37","date_gmt":"2014-04-10T12:36:37","guid":{"rendered":"https:\/\/jm.garreta.eu\/blog\/en\/?p=26"},"modified":"2014-04-10T14:36:37","modified_gmt":"2014-04-10T12:36:37","slug":"how-to-definitely-delete-and-without-a-trace-your-data-with-linux","status":"publish","type":"post","link":"https:\/\/jm.garreta.eu\/blog\/en\/26\/how-to-definitely-delete-and-without-a-trace-your-data-with-linux\/","title":{"rendered":"How to definitely delete and without a trace your data with Linux"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-52\" alt=\"shred\" src=\"https:\/\/jm.garreta.eu\/blog\/wp-content\/uploads\/2014\/04\/shred-202x300.jpg\" width=\"202\" height=\"300\" \/><\/p>\n<p>With this data privacy period (see <a title=\"Heartbleed : upgrade your SSL\/TLS servers!\" href=\"https:\/\/jm.garreta.eu\/blog\/en\/24\/heartbleed-upgrade-your-ssl-tls-servers\/\" target=\"_blank\">previous article<\/a>), it is recommended, when you have private data, to delete them <strong>securely<\/strong> (no! move to trash is not how to delete a file, and empty the trash is not how to delete securely a file).<br \/>\nI give a simple but effective example on how to delete a file on Linux with <em>shred<\/em> command installed on Debian (certainly available with other Linux OS).<\/p>\n<p><code>shred -n 7 -u -z &lt;file name&gt;<\/code><\/p>\n<p>Yes, so simple, so why do not do that?<\/p>\n<p><em>-n 7<\/em> : rewrite 7 times data in the file (default 3, but we are not too careful, 7 seems a good compromise)<br \/>\n<em>-u<\/em> : delete the file after rewriting<br \/>\n<em>-z<\/em> : fill 0 to hide shredding before deleting the file<\/p>\n<p>This command take less than 10 minutes for a 7.4 Gb file and 7 pass, so nothing should stop you to do that without losing your day.<\/p>\n<p>You can add <em>-v<\/em> option to show progress if you are curious.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>With this data privacy period (see previous article), it is recommended, when you have private data, to delete them securely (no! move to trash is not how to delete a file, and empty the trash is not how to delete securely a file). I give a simple but effective example on how to delete a &hellip; <a href=\"https:\/\/jm.garreta.eu\/blog\/en\/26\/how-to-definitely-delete-and-without-a-trace-your-data-with-linux\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">How to definitely delete and without a trace your data with Linux<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[9,10,13],"class_list":["post-26","post","type-post","status-publish","format-standard","hentry","category-informatique","tag-linux","tag-server","tag-shred"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to definitely delete and without a trace your data with Linux - Le blog de Jean-Mich<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jm.garreta.eu\/blog\/en\/26\/how-to-definitely-delete-and-without-a-trace-your-data-with-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to definitely delete and without a trace your data with Linux - Le blog de Jean-Mich\" \/>\n<meta property=\"og:description\" content=\"With this data privacy period (see previous article), it is recommended, when you have private data, to delete them securely (no! move to trash is not how to delete a file, and empty the trash is not how to delete securely a file). I give a simple but effective example on how to delete a &hellip; Continue reading How to definitely delete and without a trace your data with Linux &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jm.garreta.eu\/blog\/en\/26\/how-to-definitely-delete-and-without-a-trace-your-data-with-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"Le blog de Jean-Mich\" \/>\n<meta property=\"article:published_time\" content=\"2014-04-10T12:36:37+00:00\" \/>\n<meta name=\"author\" content=\"jeanmich\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"jeanmich\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/jm.garreta.eu\\\/blog\\\/en\\\/26\\\/how-to-definitely-delete-and-without-a-trace-your-data-with-linux\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jm.garreta.eu\\\/blog\\\/en\\\/26\\\/how-to-definitely-delete-and-without-a-trace-your-data-with-linux\\\/\"},\"author\":{\"name\":\"jeanmich\",\"@id\":\"https:\\\/\\\/jm.garreta.eu\\\/blog\\\/en\\\/#\\\/schema\\\/person\\\/5ed151f48f77a878fc9d3868c8a1ed7d\"},\"headline\":\"How to definitely delete and without a trace your data with Linux\",\"datePublished\":\"2014-04-10T12:36:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/jm.garreta.eu\\\/blog\\\/en\\\/26\\\/how-to-definitely-delete-and-without-a-trace-your-data-with-linux\\\/\"},\"wordCount\":160,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/jm.garreta.eu\\\/blog\\\/en\\\/26\\\/how-to-definitely-delete-and-without-a-trace-your-data-with-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/jm.garreta.eu\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/04\\\/shred-202x300.jpg\",\"keywords\":[\"linux\",\"server\",\"shred\"],\"articleSection\":[\"informatique\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/jm.garreta.eu\\\/blog\\\/en\\\/26\\\/how-to-definitely-delete-and-without-a-trace-your-data-with-linux\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/jm.garreta.eu\\\/blog\\\/en\\\/26\\\/how-to-definitely-delete-and-without-a-trace-your-data-with-linux\\\/\",\"url\":\"https:\\\/\\\/jm.garreta.eu\\\/blog\\\/en\\\/26\\\/how-to-definitely-delete-and-without-a-trace-your-data-with-linux\\\/\",\"name\":\"How to definitely delete and without a trace your data with Linux - Le blog de Jean-Mich\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jm.garreta.eu\\\/blog\\\/en\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/jm.garreta.eu\\\/blog\\\/en\\\/26\\\/how-to-definitely-delete-and-without-a-trace-your-data-with-linux\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/jm.garreta.eu\\\/blog\\\/en\\\/26\\\/how-to-definitely-delete-and-without-a-trace-your-data-with-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/jm.garreta.eu\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/04\\\/shred-202x300.jpg\",\"datePublished\":\"2014-04-10T12:36:37+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/jm.garreta.eu\\\/blog\\\/en\\\/#\\\/schema\\\/person\\\/5ed151f48f77a878fc9d3868c8a1ed7d\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/jm.garreta.eu\\\/blog\\\/en\\\/26\\\/how-to-definitely-delete-and-without-a-trace-your-data-with-linux\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/jm.garreta.eu\\\/blog\\\/en\\\/26\\\/how-to-definitely-delete-and-without-a-trace-your-data-with-linux\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/jm.garreta.eu\\\/blog\\\/en\\\/26\\\/how-to-definitely-delete-and-without-a-trace-your-data-with-linux\\\/#primaryimage\",\"url\":\"https:\\\/\\\/jm.garreta.eu\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/04\\\/shred-202x300.jpg\",\"contentUrl\":\"https:\\\/\\\/jm.garreta.eu\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/04\\\/shred-202x300.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/jm.garreta.eu\\\/blog\\\/en\\\/26\\\/how-to-definitely-delete-and-without-a-trace-your-data-with-linux\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/jm.garreta.eu\\\/blog\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to definitely delete and without a trace your data with Linux\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/jm.garreta.eu\\\/blog\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/jm.garreta.eu\\\/blog\\\/en\\\/\",\"name\":\"Le blog de Jean-Mich\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/jm.garreta.eu\\\/blog\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/jm.garreta.eu\\\/blog\\\/en\\\/#\\\/schema\\\/person\\\/5ed151f48f77a878fc9d3868c8a1ed7d\",\"name\":\"jeanmich\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/816266d852c4595a2bfa578a991fa68bb8ed5e0217f3565158ca20c139873bda?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/816266d852c4595a2bfa578a991fa68bb8ed5e0217f3565158ca20c139873bda?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/816266d852c4595a2bfa578a991fa68bb8ed5e0217f3565158ca20c139873bda?s=96&d=mm&r=g\",\"caption\":\"jeanmich\"},\"url\":\"https:\\\/\\\/jm.garreta.eu\\\/blog\\\/en\\\/author\\\/jeanmich\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to definitely delete and without a trace your data with Linux - Le blog de Jean-Mich","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/jm.garreta.eu\/blog\/en\/26\/how-to-definitely-delete-and-without-a-trace-your-data-with-linux\/","og_locale":"en_US","og_type":"article","og_title":"How to definitely delete and without a trace your data with Linux - Le blog de Jean-Mich","og_description":"With this data privacy period (see previous article), it is recommended, when you have private data, to delete them securely (no! move to trash is not how to delete a file, and empty the trash is not how to delete securely a file). I give a simple but effective example on how to delete a &hellip; Continue reading How to definitely delete and without a trace your data with Linux &rarr;","og_url":"https:\/\/jm.garreta.eu\/blog\/en\/26\/how-to-definitely-delete-and-without-a-trace-your-data-with-linux\/","og_site_name":"Le blog de Jean-Mich","article_published_time":"2014-04-10T12:36:37+00:00","author":"jeanmich","twitter_misc":{"Written by":"jeanmich","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jm.garreta.eu\/blog\/en\/26\/how-to-definitely-delete-and-without-a-trace-your-data-with-linux\/#article","isPartOf":{"@id":"https:\/\/jm.garreta.eu\/blog\/en\/26\/how-to-definitely-delete-and-without-a-trace-your-data-with-linux\/"},"author":{"name":"jeanmich","@id":"https:\/\/jm.garreta.eu\/blog\/en\/#\/schema\/person\/5ed151f48f77a878fc9d3868c8a1ed7d"},"headline":"How to definitely delete and without a trace your data with Linux","datePublished":"2014-04-10T12:36:37+00:00","mainEntityOfPage":{"@id":"https:\/\/jm.garreta.eu\/blog\/en\/26\/how-to-definitely-delete-and-without-a-trace-your-data-with-linux\/"},"wordCount":160,"commentCount":0,"image":{"@id":"https:\/\/jm.garreta.eu\/blog\/en\/26\/how-to-definitely-delete-and-without-a-trace-your-data-with-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/jm.garreta.eu\/blog\/wp-content\/uploads\/2014\/04\/shred-202x300.jpg","keywords":["linux","server","shred"],"articleSection":["informatique"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/jm.garreta.eu\/blog\/en\/26\/how-to-definitely-delete-and-without-a-trace-your-data-with-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/jm.garreta.eu\/blog\/en\/26\/how-to-definitely-delete-and-without-a-trace-your-data-with-linux\/","url":"https:\/\/jm.garreta.eu\/blog\/en\/26\/how-to-definitely-delete-and-without-a-trace-your-data-with-linux\/","name":"How to definitely delete and without a trace your data with Linux - Le blog de Jean-Mich","isPartOf":{"@id":"https:\/\/jm.garreta.eu\/blog\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/jm.garreta.eu\/blog\/en\/26\/how-to-definitely-delete-and-without-a-trace-your-data-with-linux\/#primaryimage"},"image":{"@id":"https:\/\/jm.garreta.eu\/blog\/en\/26\/how-to-definitely-delete-and-without-a-trace-your-data-with-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/jm.garreta.eu\/blog\/wp-content\/uploads\/2014\/04\/shred-202x300.jpg","datePublished":"2014-04-10T12:36:37+00:00","author":{"@id":"https:\/\/jm.garreta.eu\/blog\/en\/#\/schema\/person\/5ed151f48f77a878fc9d3868c8a1ed7d"},"breadcrumb":{"@id":"https:\/\/jm.garreta.eu\/blog\/en\/26\/how-to-definitely-delete-and-without-a-trace-your-data-with-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jm.garreta.eu\/blog\/en\/26\/how-to-definitely-delete-and-without-a-trace-your-data-with-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jm.garreta.eu\/blog\/en\/26\/how-to-definitely-delete-and-without-a-trace-your-data-with-linux\/#primaryimage","url":"https:\/\/jm.garreta.eu\/blog\/wp-content\/uploads\/2014\/04\/shred-202x300.jpg","contentUrl":"https:\/\/jm.garreta.eu\/blog\/wp-content\/uploads\/2014\/04\/shred-202x300.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/jm.garreta.eu\/blog\/en\/26\/how-to-definitely-delete-and-without-a-trace-your-data-with-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jm.garreta.eu\/blog\/en\/"},{"@type":"ListItem","position":2,"name":"How to definitely delete and without a trace your data with Linux"}]},{"@type":"WebSite","@id":"https:\/\/jm.garreta.eu\/blog\/en\/#website","url":"https:\/\/jm.garreta.eu\/blog\/en\/","name":"Le blog de Jean-Mich","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jm.garreta.eu\/blog\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/jm.garreta.eu\/blog\/en\/#\/schema\/person\/5ed151f48f77a878fc9d3868c8a1ed7d","name":"jeanmich","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/816266d852c4595a2bfa578a991fa68bb8ed5e0217f3565158ca20c139873bda?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/816266d852c4595a2bfa578a991fa68bb8ed5e0217f3565158ca20c139873bda?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/816266d852c4595a2bfa578a991fa68bb8ed5e0217f3565158ca20c139873bda?s=96&d=mm&r=g","caption":"jeanmich"},"url":"https:\/\/jm.garreta.eu\/blog\/en\/author\/jeanmich\/"}]}},"_links":{"self":[{"href":"https:\/\/jm.garreta.eu\/blog\/en\/wp-json\/wp\/v2\/posts\/26","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jm.garreta.eu\/blog\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jm.garreta.eu\/blog\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jm.garreta.eu\/blog\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jm.garreta.eu\/blog\/en\/wp-json\/wp\/v2\/comments?post=26"}],"version-history":[{"count":2,"href":"https:\/\/jm.garreta.eu\/blog\/en\/wp-json\/wp\/v2\/posts\/26\/revisions"}],"predecessor-version":[{"id":28,"href":"https:\/\/jm.garreta.eu\/blog\/en\/wp-json\/wp\/v2\/posts\/26\/revisions\/28"}],"wp:attachment":[{"href":"https:\/\/jm.garreta.eu\/blog\/en\/wp-json\/wp\/v2\/media?parent=26"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jm.garreta.eu\/blog\/en\/wp-json\/wp\/v2\/categories?post=26"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jm.garreta.eu\/blog\/en\/wp-json\/wp\/v2\/tags?post=26"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}