Linux cool hacks - Part II | Linux Today

Linux cool hacks – Part II

Written By
Web Webster
Web Webster
Mar 23, 2010

” Hello there, dear readers. Time for the second article of
highly useful, cool and fun utilities, commands, and tricks that
should help you gain better productivity and understand your system
better. In the first part, we learned about a whole bunch of great
things, including top in batch mode, how to read process account
logs, how to measure system activity with a range of programs, and
how to write a simple UDP server-client.

“Now, let’s see a few more tricks that will help you master a
higher, cooler level of Linux knowledge and allow you to impress
you significant others, including your boss.

“1. Sparse files

“What they be, you’re askin’. Well, sparse files are normal
files – except that blocks containing only zeros are not really
counted. In other words, empty space inside sparse files is just
listed, without actually taking any physical space. This, in
contrast to regular files, where everything is preallocated,
including bits that hold no data.

“If you’re a fan of virtualization, you have come across sparse
files – virtual machines disks can be sparse files. If you’re
creating virtual machines with, say 10GB space, but do not
preallocate it, then you have witnessed sparse files in action!
Dynamically expanding virtual disks are sparse files.”

Complete
Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.