commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
If you're trying to create a sparse file, you can use dd by 'skip'ing to the last block instance.
ls -ls shows the actual size vs. the reported size
Requires the dc3dd package - available at http://dc3dd.sourceforge.net