3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

1GBのファイルを作成する

Posted at

はじめに

1GBのファイルを作る方法です。

Windowsの場合

コマンドプロンプトでfsutilというコマンドを実行します。

fsutil file createnew 1gb.gomi 1073741824

なかなか見ないぴったり1GBのファイル。
image.png

1 GBとは
1 GB = 1,024 MB 
     = 1,024 * 1,024 KB 
     = 1,024 * 1,024 * 1,024 B 
     = 1,073,741,824 B

Linuxの場合

ddコマンドで作成します。

dd if=/dev/zero of=1gb.gomi bs=1M count=1024

おわりに

時々ほしくなる大容量のファイルですが、作成する際にはディスクの空き容量に注意しましょう。

参考文献

3
2
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
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?