Server!/Horror! I have a magnet and I don't mind using it!

Creating Sparse Files

This is something I really tend to forget: How do you create a sparse file in unix?

dd if=/dev/zero of=/tmp/sparsefile.sparse bs=1 count=0 seek=5M

From Wikipedia about what a sparse file is:

In computer science, a sparse file is a type of computer file that attempts to use file system space more efficiently when blocks allocated to the file are mostly empty.

Generated: 2017-11-02 10:20:47 +0100