---
title: "[android]创建固定大小文件"
author: "MyEyeOfJava"
date: "2014-12-29T19:27:04Z"
tags: []
categories: ["移动开发"]
slug: "android"
draft: false
lastmod: "2014-12-29T19:27:04Z"
id: 2171016
url: "https://myeyeofjava.iteye.com/blog/2171016"
---

dd if=/dev/zero of=yourfile bs=1g count=8  创建一个8g文件，注意bs后面的单位要小写