適当なバイナリファイルを作る
適当なバイナリファイルを作成する方法のメモです。 1KBのsample.binという適当なバイナリファイルを作成してみます。
dd bs=1024 count=1 if=/dev/urandom of='sample.bin'
bs: 1ブロックのサイズ count: ブロック数 of: ファイル名
適当なバイナリファイルを作成する方法のメモです。 1KBのsample.binという適当なバイナリファイルを作成してみます。
dd bs=1024 count=1 if=/dev/urandom of='sample.bin'
bs: 1ブロックのサイズ count: ブロック数 of: ファイル名