Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@Bubbles dd if=/dev/urandom of=test.txt bs=64M count=80
Creates a file called "test.txt" with an input of /dev/urandom and outputs the first 5G of that. -
Unix has dd.
Good luck doing it on Windows, you can't even specify an exact limit... -
@kescherRant Windows even calculates Gigabytes as Gibibytes, good luck won't be enough :p
-
@systemctl holy FUCK, the fucking American standardized Gigabytes are SI Gibibytes, and I still hate that because it definitely interferes with the SI Gigabytes...
-
Bubbles66126y@kescherRant imagine copying and pasting 1 GB worth of text and waiting to see if the editor crashes or not. VSCode crashed the easiest I’ll tell you that
-
Bubbles66126y@theKarlisK fuck probably. Sublime is what got me through it, even though it struggled harshly
-
@Bubbles I guess Notepad++ on Windows or any CLI text editor just takes long, but will not crash (at least if 64bit)
-
Bubbles66126y@kescherRant it crashed for me but if I have to do it again I’ll try to use it. But it handled it really well
-
@Bubbles On Windows, Notepad++ is usually the last thing before I whip out the nano included in Git for Windows lol
-
@Bubbles Nano is slow if you write a Gigabyte of text into a single line ;)
(But so is Notepad++) -
ddephor44466yOn windows, echo some string into a file in a for loop should do.
Or a quick hack in the scripting language of your choice (python, lua, perl could even do it on the interpreter prompt). -
Bubbles66126y@ddephor that method was brought to my attention when I hit 3GB so I just thought I’m half way there might as well go all the way
-
@Bubbles That's it, now I'm going to test online lipsum generators by telling them to generate gigabytes of data.
-
haze2706y@Bubbles command line is very powerful, even on Windows. ;) Redirecting input/output/err is everywhere.
Also, on Windows /? as arg is pretty universal to get help.
Since XP was the last Windows that had a somewhat good defrag gui, so I always defrag from there. First defrag /? because I never remember options, then with flags.
Now I mainly work on Linux because work. And I use redirecting output there if e.g. I have to analyse it and prefer to do it on my machine (I have to execute a lot of things remotely). -
Parzi86636yLinux:
dd if=/dev/zero of=test.txt bs=1M count=5000
Windows:
fsutil file createnew test.txt 5000000000
(this doesn't wipe and reallocate all the space immediately like most file creation methods, it just adds the file to the FAT/MFT and calls it good. This makes the creation process almost instant, even when making one file that's several TB large.) -
Parzi86636y@Bubbles Windows entirely grinds to a halt when more than a couple hundred MB is copied to the universal clipboard.
Turns out it’s quite annoyingly difficult to create a 5GB txt file titled “test.txt”
rant