The sys admin's daily grind: Di

Di is All In

Article from Issue 147/2013
Author(s):

The more frequently a command is used, the fewer letters it should have, so the use of two-key commands like ls, mv, and df is second nature. We look at a previously little-known representative of this club, di.

To be fair, I have to admit that many two-letter commands compensate for their compact size with a breathtaking number of parameters. The tool I look at today, Di [1], is no exception. The name stands for "disk information" – it's a kind df on steroids. Like its role model, Di delivers information about filesystems, but with much more detail, and the output filters are much better.

Figure 1 shows the output from di -a, a list of all mounted filesystems, including filesystems that do not exist physically but that the kernel hallucinates into the directory tree. The parameter -x lets you specify filesystems you want Di to hide (e.g., di -a -x proc keeps the /proc entry from being listed). You can also specify multiple filesystems in a comma-separated list:

di -a -x proc,tmpfs,fuse

[...]

Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Charly's Column: Di

    The more frequently a command is used, the fewer letters it should have, so the use of twokey commands like ls, mv, and df is second nature. We look at a previously little-known representative of this club, di.

  • Charly's Column

    Too many cooks spoil the broth, they say, but it could just as easily be an ingredient that isn’t part of the recipe. If you can’t reduce the number of cooks, you have to take other steps to make your broth more edible.

  • The sys admin's daily grind: Users and groups

    This time Charly investigates the three most frequently asked questions about user groups.

  • Charly's Column

    If you do not receive a response to a ping, or if the response is seriously delayed, you might like to take this as a warning. But who wants to ping all day? You need a ping-based monitoring utility like Smokeping.

  • Charly's Column: Nmon

    Nmon monitors system information. You can use the Nmon’s capture mode to output data to a file, then extract the values you need with a script.

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News