---
title: "dd 建立一个没有内容的大文件"
author: "unixboy"
date: "2009-11-22T09:36:05Z"
tags: []
slug: "dd"
draft: false
lastmod: "2009-11-22T09:36:05Z"
id: 522648
url: "https://unixboy.iteye.com/blog/522648"
---

dd if=/dev/zero of=sparse-file bs=1 count=0 seek=5M

 

dd if=/dev/zero of=os11.img bs=1 count=0 seek=10G

 

\[root@myvm my]# du os11.img  
0       os11.img