{"id":75149,"date":"2019-11-27T09:20:53","date_gmt":"2019-11-27T00:20:53","guid":{"rendered":"https:\/\/www.softantenna.com\/wp\/?p=75149"},"modified":"2019-11-27T09:22:03","modified_gmt":"2019-11-27T00:22:03","slug":"ncdu","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/ncdu\/","title":{"rendered":"ncdu - \u30bf\u30fc\u30df\u30ca\u30eb\u3067\u52d5\u4f5c\u3059\u308b\u30c7\u30a3\u30b9\u30af\u4f7f\u7528\u91cf\u8abf\u67fb\u30c4\u30fc\u30eb"},"content":{"rendered":"<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2019\/11\/s_20191126_195212.jpg\" alt=\"S 20191126 195212\" title=\"s_20191126_195212.jpg\" border=\"0\" width=\"860\" height=\"600\" \/><\/p>\n<p>Linux\u30b5\u30fc\u30d0\u30fc\u306e\u7ba1\u7406\u3092\u884c\u3063\u3066\u3044\u308b\u5834\u5408\u300cdu\u300d\u30b3\u30de\u30f3\u30c9\u3067\u3001\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30b5\u30a4\u30ba\u3092\u8abf\u3079\u3066\u3044\u308b\u3068\u3044\u3046\u65b9\u306f\u591a\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>du\u30b3\u30de\u30f3\u30c9\u306f\u4fbf\u5229\u306a\u57fa\u672c\u30c4\u30fc\u30eb\u3067\u3059\u304c\u3001\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u4e2d\u3092\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306b\u79fb\u52d5\u3057\u306a\u304c\u3089\u3001\u5de8\u5927\u306a\u30d5\u30a1\u30a4\u30eb\u3092\u63a2\u3059\u3068\u3044\u3063\u305f\u4e8b\u306f\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>\u672c\u65e5\u7d39\u4ecb\u3059\u308b\u300c<a href=\"https:\/\/dev.yorhel.nl\/ncdu\">ncdu<\/a>\u300d\u306f\u3001du\u30b3\u30de\u30f3\u30c9\u306e\u305d\u306e\u5f31\u70b9\u3092\u88dc\u3046\u3053\u3068\u304c\u3067\u304d\u308b\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306a\u30c7\u30a3\u30b9\u30af\u4f7f\u7528\u91cf\u8abf\u67fb\u30c4\u30fc\u30eb\u3067\u3059\u3002<\/p>\n<p>\u540d\u524d\u304b\u3089\u60f3\u50cf\u3067\u304d\u308b\u901a\u308a\u3001ncurses\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3063\u3066\u4f5c\u3089\u308c\u305f\u30c4\u30fc\u30eb\u3067\u3001\u30ea\u30e2\u30fc\u30c8\u30b5\u30fc\u30d0\u30fc\u3067\u3082\u9ad8\u901f\u306b\u52d5\u4f5c\u3059\u308b\u30c4\u30fc\u30eb\u3067\u3059\u3002macOS\u3084Linux\u306a\u3069\u591a\u7a2e\u591a\u69d8\u306a\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u4f7f\u7528\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<h2>ncdu\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>Linux\u3084macOS\u3067\u306f\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u30c4\u30fc\u30eb\u3092\u5229\u7528\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre>\r\n$ sudo apt-get install ncdu # Debian\u7cfb\r\n$ sudo yum install ncdu  # RedHat\u7cfb\r\n$ brew install ncdu # macOS\/Homebrew\r\n$ sudo port install ncdu # macOS\/MacPorts\r\n<\/pre>\n<p>\u305d\u306e\u4ed6\u591a\u6570\u306e\u30b7\u30b9\u30c6\u30e0\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059\u3002\u8a73\u3057\u304f\u306f\u516c\u5f0f\u30b5\u30a4\u30c8\u3067\u3054\u78ba\u8a8d\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>ncdu\u306e\u4f7f\u7528\u65b9\u6cd5<\/h2>\n<p>\u300cncdu\u300d\u3092\u5f15\u6570\u306a\u3057\u3067\u5b9f\u884c\u3059\u308b\u3068\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4ee5\u4e0b\u304c\u3001\u300cncdu \/usr\u300d\u306e\u3088\u3046\u306b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u6307\u5b9a\u3059\u308b\u3068\u305d\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4ee5\u4e0b\u304c\u5bfe\u8c61\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre>\r\n$ sudo ncdu \/usr\r\n<\/pre>\n<p>\u30b9\u30ad\u30e3\u30f3\u304c\u753b\u5b8c\u4e86\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2019\/11\/usage.jpg\" alt=\"Usage\" title=\"usage.jpg\" border=\"0\" width=\"860\" height=\"600\" \/><\/p>\n<p>\u25b2\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u30b5\u30a4\u30ba\u306e\u9806\u306b\u30ea\u30b9\u30c8\u30a2\u30c3\u30d7\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u77e2\u5370\u30ad\u30fc\u3084jk\u30ad\u30fc\u3067\u30ab\u30fc\u30bd\u30eb\u3092\u79fb\u52d5\u3057\u300cEnter\u300d\u30ad\u30fc\u3092\u62bc\u3059\u3068\u9078\u629e\u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2019\/11\/s_20191126_195621.jpg\" alt=\"S 20191126 195621\" title=\"s_20191126_195621.jpg\" border=\"0\" width=\"860\" height=\"600\" \/><\/p>\n<p>\u25b2\u3069\u306e\u3088\u3046\u306a\u30d5\u30a1\u30a4\u30eb\u304c\u5bb9\u91cf\u304c\u5927\u304d\u3044\u306e\u304b\u3001\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u79fb\u52d5\u3057\u306a\u304c\u3089\u8abf\u67fb\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2019\/11\/s_20191126_195254.jpg\" alt=\"S 20191126 195254\" title=\"s_20191126_195254.jpg\" border=\"0\" width=\"860\" height=\"600\" \/><\/p>\n<p>\u25b2\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u306e\u4e00\u89a7\u306f\u300c?\u300d\u30ad\u30fc\u3067\u78ba\u8a8d\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u8868\u793a\u9806\u5e8f\u306e\u5909\u66f4\u3084\u9078\u629e\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3084\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u524a\u9664\u306a\u3069\u306e\u64cd\u4f5c\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>ncdu\u3092\u5229\u7528\u3059\u308c\u3070\u30c7\u30a3\u30b9\u30af\u306e\u4f7f\u7528\u72b6\u6cc1\u3092\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306b\u64cd\u4f5c\u3057\u306a\u304c\u3089\u8abf\u67fb\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002ssh\u3067\u63a5\u7d9a\u3059\u308b\u30b5\u30fc\u30d0\u30fc\u306e\u72b6\u6cc1\u3092\u628a\u63e1\u3057\u305f\u3044\u5834\u5408\u306a\u3069\u306b\u4fbf\u5229\u306a\u30c4\u30fc\u30eb\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux\u30b5\u30fc\u30d0\u30fc\u306e\u7ba1\u7406\u3092\u884c\u3063\u3066\u3044\u308b\u5834\u5408\u300cdu\u300d\u30b3\u30de\u30f3\u30c9\u3067\u3001\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30b5\u30a4\u30ba\u3092\u8abf\u3079\u3066\u3044\u308b\u3068\u3044\u3046\u65b9\u306f\u591a\u3044\u3068\u601d\u3044\u307e\u3059\u3002 du\u30b3\u30de\u30f3\u30c9\u306f\u4fbf\u5229\u306a\u57fa\u672c\u30c4\u30fc\u30eb\u3067\u3059\u304c\u3001\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u4e2d\u3092\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306b\u79fb\u52d5\u3057\u306a\u304c\u3089\u3001\u5de8\u5927\u306a\u30d5\u30a1\u30a4 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":75151,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[3459],"tags":[4307],"class_list":["post-75149","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-review","tag-du"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/75149","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=75149"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/75149\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/75151"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=75149"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=75149"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=75149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}