Is there a way in Unix to see the biggest directories on disk ?
I need to know why I'm almost done with the space on the server, and I dunno where most of the space is used..
thanks
feedback
|
|
Try: | |||||||
feedback
|
|
I suggest you to use baobab, which will give you a graphical overview of your disk usage. It can also be used for remote folder (through ssh, ftp,...) to scan the disk usage on a remote server for instance. Edit: If you would like to investigate the disk usage directly on the server with your shell access and not remotely, and you would like a tool more convenient than | ||||
|
feedback
|
|
My favorite tool for this task is ncdu. | |||
feedback
|
|
Try | |||
|
feedback
|
|
Something like
Will give you a quick answer (last entries are largest files/directories) | |||
feedback
|
|
I always use syntax like
max-depth and head parameters can vary, of course, but the above would list 20 biggest directories. | |||
|
feedback
|
|
I'm regularly running | |||
|
feedback
|
|
I usually use something like this:
You can apply a depth restriction using --max-depth= if you don't want to see past a certain level from your target, like so:
| |||
|
feedback
|