I'm looking for a linux alternative to WinDirStat. I would like to know what is taking up space on my hard drives.
A program that works on console and doesn't require a UI is preferred .
|
I'm looking for a linux alternative to WinDirStat. I would like to know what is taking up space on my hard drives. A program that works on console and doesn't require a UI is preferred . |
||||
|
Based on your issues in installing ncdu my recommendation would be to use For instance:
You can replace /home with any directory of your choice. |
|||||||||||||||||||||
|
|
If you want a command-line tool, I prefer ncdu, an ncurses version of
If you're ok with a GUI program, Filelight is the closest thing to WinDirStat I've found; it shows a graphical view of space consumption:
Like |
|||||
|
|
Another GUI program is: baobab
|
|||||
|
|
You should be aware that WinDirStat is actually a port of KDirStat, which is a Linux/KDE program. So, if you are looking for a Linux alternative to WinDirStat, you certainly should take a look at KDirStat. It is already packaged in most distros, just install it. Another alternative is FileLight, already cited by Michael Mrozek, and the Konqueror plugin |
|||||||||
|
|
There's also this cool python script from /www.vrplumber.com/programming/runsnakerun/
It's not the most feature rich, but it's run from a single python script so it's extremely portable.
|
|||
|
|
|
If you looked at the about screen on windirstat it showed you that it's based on kdirstat. |
|||||
|
|
I prefer the following command line:
Breaking it down, |
|||||||||||||
|
|
Use QDirStat (formerly KDirStat). It includes a perl script that generates a cache file on the server/console without any need for an UI to be running/installed; transfer it to your desktop machine and view it in the gui client. See https://unix.stackexchange.com/a/256516/186308 for details. |
||||
|
|
|
You could also try GD Map, another GUI tool based on treemaps. |
|||
|
|
|
If you see a mismatch between what df and dh report, you may have open files which are deleted but are still being written to. This takes up disk space (according to df), but is not reported anywhere (such as du) because the space doesn't belong to any existing file. If you experience this, you may need to restart some services (or the machine for a brute force) to close the open files. |
|||
|
|
|
xdiskusage is very flexible, lightweight with very lean dependencies, easy to compile.. It shows a tree left-to-right that you can navigate with mouse or arrow keys, zoom in (click or enter), hide some parts for a better view, change sort order, number of colors etc with keys or context menu. It's so lighweight that you can use it on a remote SSH link with good performance. In this case I recommend You can also optionally run One situation is a remote filesystem which is full or near-full. On that system run
|
|||
|
|
|
Also to see the files in a specific directory sorted by size after you have found the directory using du use:
|
|||
|
|
|
I have recently used command line tool (CLI, not TUI): http://zevv.nl/play/code/philesight/ It produces a PNG file which you can view somewhere else. It also has a CGI script. Most likely you are not limited to text mode at your local workstation, so it should be appropriate. |
|||
|
|
ncduis my preferred answer, but I see the first answer says you're having problems with it that aren't in your question. – SDsolar Sep 9 '17 at 7:42