{"id":17241756,"url":"https://github.com/j256/null","last_synced_at":"2026-01-04T15:32:36.618Z","repository":{"id":66770278,"uuid":"245908993","full_name":"j256/null","owner":"j256","description":"Unix command line utility which combines /dev/null, tree, md5sum, and other useful features.","archived":false,"fork":false,"pushed_at":"2024-07-11T16:00:14.000Z","size":232,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-14T19:15:22.575Z","etag":null,"topics":["command-line-tool","devnull","md5sum","tee","unix","unix-command"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/j256.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","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},"funding":{"github":"j256","patreon":"j256"}},"created_at":"2020-03-09T00:10:18.000Z","updated_at":"2025-01-05T07:43:18.000Z","dependencies_parsed_at":"2024-07-11T18:11:52.340Z","dependency_job_id":"68c85e4b-0c27-4bd6-a523-74f186b28fba","html_url":"https://github.com/j256/null","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j256%2Fnull","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j256%2Fnull/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j256%2Fnull/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j256%2Fnull/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/j256","download_url":"https://codeload.github.com/j256/null/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241867689,"owners_count":20033816,"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":["command-line-tool","devnull","md5sum","tee","unix","unix-command"],"created_at":"2024-10-15T06:11:09.861Z","updated_at":"2026-01-04T15:32:36.585Z","avatar_url":"https://github.com/j256.png","language":"C","funding_links":["https://github.com/sponsors/j256","https://patreon.com/j256"],"categories":[],"sub_categories":[],"readme":"Null Utility\n============\n\n[![ChangeLog](https://img.shields.io/github/v/release/j256/null?label=changelog\u0026display_name=release)](https://github.com/j256/null/blob/master/src/main/javadoc/doc-files/changelog.txt)\n[![CircleCI](https://circleci.com/gh/j256/null.svg?style=shield)](https://circleci.com/gh/j256/null)\n[![GitHub License](https://img.shields.io/github/license/j256/null)](https://github.com/j256/null/blob/master/LICENSE.txt)\n\n## Documentation\n\nSorry for the limited documentation here.  Basically null is a\ncombination of /dev/null, tee, md5sum, with the addition of some other\nfeatures.\n\n## Arguments\n\nHere are more details on some of the less obvious flags.\n\n* [-d size]         or --dot-blocks          show a dot each X bytes of input\n\n\tWith this size, you can have null output a period ('.') to standard\n\terror for every X bytes read in.  You can specify the size as 20k or\n\t100m.\n\n* [-f output-file]  or --output-file         output file(s) to write input\n\n\tYou can write any input bytes into an output file by using this\n\toption.  To handle multiple files, specify multiple -f options.\n\n*  [-F]              or --flush-output        flush output to files\n\n\tThis will cause null to call fflush on each of the output streams\n\tafter it writes to them.\n\n* [-m]              or --md5                 run input bytes through md5\n\n\tThis will display the md5 signature for the input data.  If you are\n\ttransporting data across a stream, it is useful to use the -r and -w\n\toptions.  See below.\n\n* [-n]              or --non-block           don't block on input\n\n\tSet the input file-descriptor to be non-blocking.  Not sure if this\n\treally accomplishes anything.\n\n* [-p]              or --pass-input          pass input data to output\n\n\tThis will write the input to the standard output.\n\n*  [-r]              or --read-pagination     read pagination data\n\n\tNull can add basic pagination information into the stream.  Network\n\ttransmissions often block the input and output to fixed sizes and add\n\t`\\0` characters at the end as padding.  With pagination, these\n\textraneous characters will be removed and so MD5 calculations (with\n\t-m) will be valid.  This should be used to read the output of null\n\twith a -w flag specified.\n\n* [-t size]         or --throttle-size       throttle output to X bytes / sec\n\n\tThis will throttle the output of null to a specific size (10k or 1m)\n\tper second.  This is useful if you don't want to overflow a network\n\tconnection for instance.\n\n* [-w]              or --write-pagination    write paginate data\n\n\tLike -r but this should be used to write output to a null with a -r\n\tflag specified.\n\n## Examples\n\nTo write output to multiple log files:\n\n\ttar -cvzf - /usr | \\\n\t\tnull -f /backup/usr.tar.gz -f /backup2/usr.tar.gz\n\nTo transmit some files between two systems with pagination and while\nreporting the md5 signature of the data.  On the remote host:\n\n\tnc -l -p 5000 | null -r -p -m | tar -xf -\nOn the local host:\n\ttar -cf - . | null -w -p -m | nc remote-hostname 5000\n\nTo see a dot ('.') for every megabyte of byte we are getting out of\nour backup program.\n\n\ttar -cf - . | null -d 1m -p -f /dev/nrst0\n\nTo limit the transfer of a hierarchy to a remote system to 100kB/sec\nand print a dot for every 10kB.\n\n\ttar -cf - . | null -d 10k -t 100k -p | nc remote-hostname 5000\n\n## Repository\n\nThe newest versions of the library are available via: https://github.com/j256/null\n\nEnjoy.  Gray Watson\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj256%2Fnull","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fj256%2Fnull","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj256%2Fnull/lists"}