Grande file binario in tutto OSX / Linux?

1

Ho bisogno di trovare i dati binari di test per il comando xxd -ps file , che è alcuni GB o almeno diversi MB. Attualmente sto usando /usr/bin/telnet , ma non è grande ed eterogeneo tra diversi SO.

Quale file è omogeneo e sufficiente tra i diversi sistemi operativi?

    
posta Léo Léopold Hertz 준영 26.06.2015 - 11:20
fonte

1 risposta

2

Rispondi dal link di Patrix qui .

dd

Per creare un file binario da 1 GB

dd if=/dev/urandom of=sample.bin bs=64m count=16

dando

cheèpreferitodallarispostaconcatenatamaèlentoconirecordnelmioMacbookAirametà2013suYosemite10.10.31073741824bytes(1.1GB)copied,116.436s,9.2MB/s.

OpenSSL

Ilseguentecomandoèpiùvelocemanoncreaunfilebinario

opensslrand-outsample.txt-base64$((2**30*3/4))

dando

headsample.txt3WqdfYDB8XejIk2VzdsLJ8SuxNhH/oCJ8mKXbrsVmT5uZaCGmW7YZN3PAbY9lVqc0Tr2sX4RXlJ5PUzujJ2SUf/xjI3peTlpEYTnxJKiDS4CDo+TBskVBgiE2/J8+9CyCcSnkkuHLJgTCxqj9tYB3e3bkzIMu6LvcvjUQR2p8IYl7zBLG+fyYZvHsKT85XVVNaDKbCQ3xLLAXXd2mtIHpjgEDuvrMrTXEJpvgSveBJteyw27FRjwNA+kG5cdgFbdrIZORF4HT4fBiPdwOQ8+bWn0qR4xugLC+RNjMH8MCBSb4QiEGisEigZxezqnUYlvmZAs9afD0H5UpXHMU75jcyWzEgrJPj6L0uVyFuR59mFI2mNGqW2P926rifd2j1DaETvnT/5KybfjSfanpLmbaEbb4CjRW056ZCeZnp4oWiwFBmajGdwFiOXOtCnDn2ElYWaNK0a8LwrLMNKCbjk+rlpy/3MRm50DAcAR6UwDbAPcusEcNtfDJxdon3/HZfFyZ4kp9VhUfhqVibcf5LwYhOa3bfLVwIPRZDKrP5cv0vNBz0ajB9MGnTaDSeDLgzRsL5ayb2H6s02HAR+ilRQkOxpXYetaqMVMHuI1mIO0yvbLZdq1FmtTAN3rRXdn0ENN

o

xxdsample.txt|head-100000000:33577164665944423858656a496b32563WqdfYDB8XejIk2V0000010:7a64734c4a385375784e68482f6f434azdsLJ8SuxNhH/oCJ0000020:386d4b58627273566d5435755a6143478mKXbrsVmT5uZaCG0000030:6d5737595a4e3350416259396c567163mW7YZN3PAbY9lVqc0000040:0a3054723273583452586c4a3550557a.0Tr2sX4RXlJ5PUz0000050:756a4a325355662f786a49337065546cujJ2SUf/xjI3peTl0000060:704559546e784a4b6944533443446f2bpEYTnxJKiDS4CDo+0000070:5442736b5642676945322f4a382b3943TBskVBgiE2/J8+9C0000080:790a4363536e6b6b75484c4a67544378y.CcSnkkuHLJgTCx0000090:716a39745942336533626b7a494d7536qj9tYB3e3bkzIMu6

Ocorri

opensslrand-outsample.bin$((2**30*3/4))

checreaunfileutilizzandol'interointervallodibyte

xxdsample.bin|head-100000000:908448bfdc6c21d3579f61536b3de62f..H..l!.W.aSk=./0000010:946002285e1eb5313bb4223a120b0273.'.(^..1;.":...s
0000020: 27e2 de7c b9e8 63b8 6333 9702 05cc 2fe1  '..|..c.c3..../.
0000030: 5aab fed9 1732 246d 59c8 de14 6b04 907d  Z....2$mY...k..}
0000040: f164 81c4 7065 9798 71b7 891b dbe1 f06b  .d..pe..q......k
0000050: 24ad 9749 b596 4dad a4a9 b415 64a7 6ccb  $..I..M.....d.l.
0000060: 8463 a125 9abe 9a7b 7f70 f3ea 9acf 1eb0  .c.%...{.p......
0000070: ebe0 9f0d 87dd ffce 4e20 9793 eda8 1872  ........N .....r
0000080: f08a 3aa3 d3e7 5bca 6b84 b44d 1650 4b9e  ..:...[.k..M.PK.
0000090: 282f c9c3 1e8c b423 472e 857c 134e 18ca  (/.....#G..|.N..
    
risposta data 20.03.2017 - 11:18
fonte

Leggi altre domande sui tag