dd, df and du: Pop quiz

Here are three tools you probably already know, if you’ve spent any time at the terminal since picking up Linux: dd, du and df.

All three come from coreutils, and I’m betting they’re installed on your system.

And in the interest of … being interesting, let’s turn this around and you give the answers.

  1. Show the amount of disk space that’s free, in units that are easily readable by (normal) human beings. Bonus: Show only one type of filesystem.
  2. Create an image of a floppy disc. πŸ™‚ Bonus: Show the results on-screen … in hex. 😈
  3. Show the size of folders in the /etc directory, in numbers that are easy to read, and include a total for the entire directory. Bonus: Show only the top ten, sorted highest to lowest, but no total.

You’re allowed to use external programs to finish the bonuses. πŸ™‚

Like I said, you probably already know these tools and even if you can’t come up with answers on your own, you have the entire Intarnets at your disposal. Consider it an open-book test. πŸ˜‰

Advertisements

6 thoughts on “dd, df and du: Pop quiz

  1. Pingback: photorec: Taught me something new today | Inconsolation

  2. Pingback: kill: For one simple reason | Inconsolation

  3. Pingback: kill: For one simple reason | Linux Admins

  4. Pingback: Bonus: K.Mandla’s order of battle | Inconsolation

  5. Pingback: Bonus: K.Mandla’s order of battle | Linux Admins

Comments are closed.