1---2title: 'Command of the day: ncdu'3date: '2016-07-19'4published_at: '2016-07-19T10:59:00.000+10:00'5tags: ['command line', 'linux', 'ncdu']6author: 'Gavin Jackson'7excerpt: 'Just a quick one for today. Have you ever wondered where all of your disk space has gone on a remote linux box I sure have. I''m a big fan of tools that provide a visual guide for disk space usage (tr...'8updated_at: '2016-07-19T10:59:04.745+10:00'9legacy_url: 'http://www.gavinj.net/2016/07/command-of-day-ncdu.html'10---1112Just a quick one for today. Have you ever wondered where all of your disk space has gone on a remote linux box I sure have.1314I'm a big fan of tools that provide a visual guide for disk space usage (treemap based products seem to be the best IMHO - Disk Inventory X for OSX (http://www.derlien.com/), Windirstat for Windows (https://windirstat.info/), Qdirstat for Linux (https://github.com/shundhammer/qdirstat).1516But what happens when you only have a command line - well, it's usually back to using du and df (which don't really give you a pleasant break down of where all of your disk is being used).1718Enter... ncdu - a curses TUI that provides a visual representation of where all your disk is being used - it basically indexes a folder and allows you to drill down and see where all of your disk space is being used - perfect!1920[https://dev.yorhel.nl/ncdu](https://dev.yorhel.nl/ncdu)2122apt-get install ncdu2324[](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3qok4VNO1JoWQqcecNrOsPqF5tlod-pnQr1-QzMRhhqRmpym3lDdCWUN8gT2WJpamWs942uFgPB4kL7HHeIublhQPkUpf-7_UzQAZi8G7jPCQaNSnVWNH_pCeeNq_sAxkloFh2A0re-o/s1600/Screenshot+from+2016-07-19+10-58-45.png)252627