Skip to content

Posts tagged ‘bash’

23
Jan

Human readable du sorted by size

Example output of the du UNIX command
Image via Wikipedia

du is the *nix command for disk usage. It tells you how much space everything in the given directory is taking up. GNU du introduced a handy option -h making it human readable, or showing sizes using K, M, G rather than bytes. Unfortunately this makes it not sortable numerically. Here’s how to sort du by size and keep it as human readable. Read moreRead more

5
Nov

Mastering the Command Line

The caps lock key on a modern keyboard (near u...
Image via Wikipedia

If you use *nix, no doubt you’ve spent some time on the command line. Here are a few of the most helpful tricks you can use in the bash shell to really optimize your time, impress your friends, and make everyone else feel inferior… not to mention become more productive. People familar with the command line can usually work considerably faster (for most tasks) than you can through a gui. So be brave, embrace the keyboard and master the bash shell. Read moreRead more