You can use
dd if=/dev/zero of=file count=1024 bs=1024
to zero fill a file.
Instead of that I want to one fill a file. How do I do that?
There is no /dev/one file, so how can I simulate that effect via on bash shell?
Join Stack Overflow to learn, share knowledge, and build your career.
|
|
Try this:
Substitute |
||||
|
|
...where The syntax for using
Note: |
|||||||||||||
|
This should be much faster. Choose your blocksizes (or add counts) like you need at. Writing ones to a SSD-Disk till full with a blocksize of 99M gave me 350M/s write performance. |
|||||
|
|
Well, you could do this:
|
|||||||||
|