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 the fs support sparse file,using truncate can create sparse file.
There are 2 alternatives - vote for the best!
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
If you can do better, submit your command here.
You must be signed in to comment.