-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgbg.html
129 lines (126 loc) · 6.55 KB
/
gbg.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
---
layout: "programs-tplt"
group: apps
priority: 5.5
version: "0.5.0"
os: "Windows 7 SP1 & later"
release-date: "2025-04-07"
title: "GBG"
precis: "Creates files of a specified size filled with garbage bytes."
summary: "Command line program that creates files of a given size containing random-ish bytes."
meta-title: "GBG: Garbage-filled file generator | Open Source | 32/64 bit"
meta-desc: Command line 32 bit & 64 bit Windows command line program that creates files of a given size containing random-ish, garbage, bytes.Written in Delphi Pascal."
download-base-url: "https://github.com/ddabapps/gbg/releases/tag/v"
repo-url: "https://github.com/ddabapps/gbg"
want-header-buttons: true
copyright-date: "2025"
status: "current"
---
<section class="panel panel-default">
<div class="panel-heading">
<h2 class="panel-title">
Overview
</h2>
</div>
<div class="panel-body">
<p>
<em>GBG</em> is a 32 bit & 64 bit Windows command line program that creates files of a specified size, filled with pseudo-random <strong>G</strong>ar<strong>b</strong>a<strong>g</strong>e bytes.
</p>
<p>
The 64 bit version of <em>GBG</em> can generate files between 0 and 20GiB size while the maximum file size for the 32 bit version is limited to 1GiB. For file sizes greater than 500,000,000 bytes the user must either confirm the operation or specify a command line option to ignore the size check or report an error. If the requested file size is zero then an empty file is created.
</p>
<p>
By default, files up to 10MiB in size are generated with random bytes. Files larger than 10MiB have the first 10MiB bytes generated randomly, but then that same 10MiB pattern is repeated as many times as necessary. However, a command line option can be used to change the size of the repeated blocks of random bytes. A similar option can be used to ensure the whole file is entirely random, with no repeated blocks.
</p>
<p>
There are other options available that can generate random ASCII characters, for example.
</p>
<p>
Examples of use:
</p>
<pre class="samp indent">gbg sample1.dat 20,971,520</pre>
<p class="indent">
Creates a file named <code>sample1.dat</code> that is 20Mib (= 20,971,520 bytes) in size made up of 2 × 10MiB blocks of repeated random data.
</p>
<pre class="samp indent">gbg sample2.data 1MB -r:1,000</pre>
<p class="indent">
Creates a file that is 1MB (= 1,000,000 bytes) in size made up of repeated blocks of 1,000 bytes of random data.
</p>
<pre class="samp indent">gbg sample3.dat 20MiB -r:all</pre>
<p class="indent">
Creates a file that is 20MiB in size made up of entirely random data.
</p>
<p>
For more information about on how to use the program see the <a href="https://github.com/ddabapps/gbg/blob/master/README.md">Read Me <span class="sr-only">Markdown </span> file</a> on GitHub.
</p>
<p class="callout callout-info">
<span class="fa fa-copyright fa-pull-left fa-3x"></span><em>GBG</em> is copyright © {{ page.copyright-date}} by <a href="{{ site.data.core.gravatar-url }}" aria-label="{{ site.data.core.gravatar-link-title }}">Peter Johnson</a>. The program and its source code are released under the terms of the <a href="https://delphidabbler.mit-license.org/{{page.copyright-date}}-/">MIT License</a>.
</p>
</section>
<section class="panel panel-default">
<div class="panel-heading">
<h2 class="panel-title">
Download
</h2>
</div>
<div class="panel-body">
<p>
This program is hosted on GitHub in the <code><a href="{{ page.repo-url }}">ddabapps/gbg</a></code> repository. The program can be downloaded from the repository's <em>Releases</em> tab.
</p>
<p>
Each release gives the option of downloading either the programs's executable code or the source code. Your options are:
</p>
<ul>
<li>
Choose <code>gbg-exe-{{page.version}}.zip</code> to download a zip file containing the both the 64 bit and 32 bit versions of the program. The 64 bit program is named <code>GBG.exe</code> while the 32 bit version is named <code>GBG32.exe</code>. Which version you choose depends on whether you are running Windows 64 bit or 32 bit. There is no installer. Just extract the desired program's <code>.exe</code> from the <code>.zip</code> file and copy it to a folder on your system. It can be run from there.
</li>
<li>
Choose <code>Source code.zip</code> to download the source code in <code>.zip</code> format.
</li>
<li>
Choose <code>Source code.tar.gz</code> to download the source code as a g-zipped tarball.
</li>
</ul>
<p class="text-center">
<a class="btn btn-primary" role="button" href="{{ page.download-base-url }}{{ page.version }}" aria-label="Go to release v{{ page.version}} on GitHub">Get <span class="hidden-xs">release </span>v{{ page.version }} from GitHub</a>
</p>
</div>
</section>
<section class="panel panel-default">
<div class="panel-heading">
<h2 class="panel-title">
Documentation
</h2>
</div>
<div class="panel-body">
<p>
The following documentation is available. All of it opens on GitHub.
</p>
<ul class="list-group">
<li class="list-group-item">
<span class="fa fa-fw fa-x-pad-right fa-file-text-o" aria-hidden="true"></span><a href="https://github.com/ddabapps/gbg/blob/master/README.md">Read Me<span class="sr-only"> (Markdown file)</span></a> – contains general information about the program, including usage information.
</li>
<li class="list-group-item">
<span class="fa fa-fw fa-x-pad-right fa-file-text-o" aria-hidden="true"></span><a href="https://github.com/ddabapps/gbg/blob/master/CHANGELOG.md">Change Log<span class="sr-only"> (Markdown file)</span></a> – lists significant changes made in each program release.
</li>
</ul>
</div>
</section>
<section class="panel panel-default">
<div class="panel-heading">
<h2 class="panel-title">
Bugs & Feature Requests
</h2>
</div>
<div class="panel-body">
<p>
You can report bugs or suggest new features using the <em>GBG</em> <a href="https://github.com/ddabapps/gbg/issues" class="offsite">issue tracker</a> on GitHub.
</p>
<p>
Please review existing bug reports and feature requests before creating a new issue. If an issue already exists you may be able to help by adding a further comment.
</p>
<p class="alert alert-info glyph">
You will need a GitHub account if you want to create or edit an issue.
</p>
</div>
</section>