Hacker News new | ask | show | jobs
by petethepig 1910 days ago
Maybe this is not super relevant, but my favorite hack is that any tree-like structure like this can be browsed with ncdu. Here's a gist for breaking down redis traffic by command for example: https://gist.github.com/petethepig/0f33c910fb2edad8969a5775e...
2 comments

Whoa, I didn't know that! This is super useful as a general-purpose tree viewer!

For the record, the relevant commands are

    ncdu -o /tmp/files.json
and

    ncdu -f /tmp/files.json
Neat! Is there some documentation on the format ?