LoginSignup
13

More than 5 years have passed since last update.

posted at

ランダムファイル作成コマンド備忘録

ファイル作成コマンドのメモ

度々使うけれどその度にググってるのでメモる。

コマンド

dd bs=ブロックサイズ count=ブロック数  if=/dev/urandom of='出力ファイルpath'

1KBのランダムバイナリファイルを作るコマンド

dd bs=1024 count=1  if=/dev/urandom of='./1KB_file'

1MBのランダムバイナリファイルを作るコマンド

dd bs=1024 count=1024  if=/dev/urandom of='./1MB_file'

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
What you can do with signing up
13