LoginSignup
5
6

More than 5 years have passed since last update.

Linux(Unix)でバイナリーのテストファイルを作る

Posted at

Linux でのバイナリーのテストファイルの作り方の一例。

中身がランダムな1KBのバイナリーファイル。

$ head -c 1024 /dev/urandom > data.bin

中身が NUL(0x00) の1KBのバイナリーファイル。

$ head -c 1024 /dev/zero > data.bin
5
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
6