|
|
#1 |
|
初心者
註冊日期: Dec 2007
文章: 2909
積分: 84774
|
To create large empty files in Linux or UNIX: # dd if=/dev/zero of=filename bs=1024 count=desiredExample to create a 1GB file: dd if=/dev/zero of=file_1GB bs=1024 count=1000 /or/ dd if=/dev/zero of=file_1GB bs=4096 count=250 /or/ dd if=/dev/zero of=file_1GB bs=2048 count=500 Example to create a 2GB file: dd if=/dev/zero of=file_2GB bs=2048 count=1000 /or/ dd if=/dev/zero of=file_2GB bs=1024 count=2000 Example to create a 512MB file: dd if=/dev/zero of=file_512MB bs=1024 count=500 /or/ dd if=/dev/zero of=file_1GB bs=512 count=1000 either use # mkfile size myfile where can be in KB, MB or GB using k, m or g as suffix. To create a 10 GB file, use # mkfile 10240m myfile If you run # mkfile -n 10240m myfile the file will be created, but the disk blocks will not get allocated, only when writing data into the file. |
|
|
|
![]() |
| 目前檢視此主題的會員: 1 (0 位會員和 1 位遊客) | |
| 主題工具 | |
| 顯示模式 | |
|
|
相似的主題
|
||||
| 主題 | 主題作者 | 討論區 | 回覆 | 最後發表 |
| [軟體] 簡 單 實 用 Files 檔 案 管 理 員 | woobi66 | Palm OS 軟件/遊戲分享區 | 27 | 06-04-2009 00:40 |
| [軟體] Versamail 3.5 Full (PRC files Only) | paris8564 | Palm OS 軟件/遊戲分享區 | 6 | 04-24-2009 01:30 |
| [軟體] Mandriva Linux Powerpack 給初學者的 linux | Boom101764 | 軟件分享區 | 1 | 04-14-2009 10:22 |
| [修改器] PC - 嗜血狂戮 You Are Empty 修改器 | Dirt39533 | 電腦遊戲攻略/密技/祕籍 | 0 | 07-10-2008 13:59 |
| [UNIX/Linux] Shell Script - Restart Process if not found running | basket8583 | UNIX / Linux (*nix) | 0 | 04-11-2008 15:19 |