{"id":17614071,"url":"https://github.com/ztalbot2000/zerofile","last_synced_at":"2025-08-26T03:12:13.413Z","repository":{"id":77452451,"uuid":"338835545","full_name":"ztalbot2000/zerofile","owner":"ztalbot2000","description":"Simple command line tool that fill a file with binary zeroes, then removes it.","archived":false,"fork":false,"pushed_at":"2021-02-14T16:38:19.000Z","size":6,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T10:21:16.302Z","etag":null,"topics":["clean","clear","data","disk","erase","fill","reset","security","wipe","zero"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ztalbot2000.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-14T15:26:40.000Z","updated_at":"2024-09-04T06:52:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"66bc7895-5c3e-4226-8118-71055c4965d4","html_url":"https://github.com/ztalbot2000/zerofile","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ztalbot2000%2Fzerofile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ztalbot2000%2Fzerofile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ztalbot2000%2Fzerofile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ztalbot2000%2Fzerofile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ztalbot2000","download_url":"https://codeload.github.com/ztalbot2000/zerofile/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248591956,"owners_count":21130154,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clean","clear","data","disk","erase","fill","reset","security","wipe","zero"],"created_at":"2024-10-22T18:24:11.757Z","updated_at":"2025-04-12T15:51:22.053Z","avatar_url":"https://github.com/ztalbot2000.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zerofile\n\nSimple command line tool that fill a file with binary zeroes, then removes it.\n\nThe file is filled 4096 bytes at the time (blocksize), and halves it when disk space is to small for 4096 bytes. So next time it's 2048 and so on, until it's less than 256 when it will remove the tempfile and exit.\nThe reason for halving is to really fill up all the free space with zeroes. If the selected block size is larger than the file system block size the halving is not really usefull,\n\n## Author\nzerofile originated from [https://github.com/nollan/zerofile](https://github.com/nollan/zerofile). I have the written consent to use the name 'zerofile' and thank Patric Fors for his efforts. zerofile was originally written in 'Go' and I converted it here to 'C'. The functionality is 100% the same, with the exception of the new test script.\n\n## Building\ngcc -o zerofile zerofile.c\n\n## Example\n```\n$ zerofile\nUsing temp file: '0slask0.zro'\nWritten: 40300699648 bytes\nDuration: 7m41.89093482s ; Performance: 87251549.195 bytes/sec\nRemoving temp-file\n```\n\nWhy filling empty space with zeroes?\n\n* Deleting a file just throws away the location to it, not the content.\n* When making an image of the filesystem, to keep the size down.\n\n## Options\n\nNo arguments needed, but if you want to create the file on a different place than current directory put path and filename as an argument (`zerofile some/other/file.tmp`).\n\nThe filename of the tempfile is by default `0slask0.zro`, use an argument to select your own name (`zerofile whatever.000`).\n\nAnd use `-quiet` to skip the progress report on written bytes, a bit quicker this way.\n\nSet a specific block size with `-blocksize`, it's 4096 by default.\n\n## Performance\n\nStats produced are quick and dirty, don't use them as a hard disk performance checker. :)\n\n\n## License\nSee [LICENSE](LICENSE)\n\nNote: As this pertains to item #3, I have been granted permission by the original author of zerofile to use the name zerofile and thank him profusely as this is what I believe GitHub is all about. See: https://github.com/nollan/zerofile/issues/1\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fztalbot2000%2Fzerofile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fztalbot2000%2Fzerofile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fztalbot2000%2Fzerofile/lists"}