{"id":59947,"date":"2018-05-23T07:47:14","date_gmt":"2018-05-22T22:47:14","guid":{"rendered":"https:\/\/www.softantenna.com\/wp\/?p=59947"},"modified":"2018-05-23T07:47:14","modified_gmt":"2018-05-22T22:47:14","slug":"progress","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/progress\/","title":{"rendered":"progress - cp\u3084mv\u7b49\u306e\u30b3\u30de\u30f3\u30c9\u306e\u9032\u6357\u72b6\u6cc1\u3092\u78ba\u8a8d\u3067\u304d\u308b\u30e2\u30cb\u30bf\u30ea\u30b0\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\/2018\/05\/s_20180521_103146.jpg\" alt=\"S 20180521 103146\" title=\"s_20180521_103146.jpg\" border=\"0\" width=\"851\" height=\"510\" \/><\/p>\n<p>\u30d5\u30a1\u30a4\u30eb\u306e\u30b3\u30d4\u30fc\u3084\u79fb\u52d5\u3001\u30a2\u30fc\u30ab\u30a4\u30d6\u306a\u3069\u3067\u5de8\u5927\u306a\u30d5\u30a1\u30a4\u30eb\u3092\u64cd\u4f5c\u3059\u308b\u5834\u5408\u3001\u3069\u3053\u307e\u3067\u305d\u306e\u4f5c\u696d\u304c\u9032\u3093\u3067\u3044\u308b\u306e\u304b\u9014\u4e2d\u3067\u9032\u6357\u72b6\u6cc1\u3092\u77e5\u308a\u305f\u304f\u306a\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u6700\u521d\u306b\u300c-v\u300d\u30aa\u30d7\u30b7\u30e7\u30f3\u306a\u3069\u3092\u6307\u5b9a\u3059\u308c\u3070\u3001\u72b6\u6cc1\u3092\u901a\u77e5\u3057\u3066\u304f\u308c\u308b\u30b3\u30de\u30f3\u30c9\u3082\u3042\u308a\u307e\u3059\u304c\u3001\u30b3\u30de\u30f3\u30c9\u5b9f\u884c\u6642\u306b\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u6307\u5b9a\u3057\u5fd8\u308c\u305f\u5834\u5408\u306b\u306f\u5f79\u306b\u305f\u3061\u307e\u305b\u3093\u3002<\/p>\n<p>\u672c\u65e5\u7d39\u4ecb\u3059\u308b\u300c<a href=\"https:\/\/github.com\/Xfennec\/progress\">progress<\/a>\u300d\u306f\u3053\u306e\u3088\u3046\u306a\u5834\u5408\u306b\u3082\u5f79\u7acb\u3064\u3001\u5404\u7a2e\u30b3\u30de\u30f3\u30c9\u306e\u9032\u6357\u72b6\u6cc1\u8868\u793a\u30c4\u30fc\u30eb\u3067\u3059\u3002\u4f8b\u3048\u3070cp\u3067\u30d5\u30a1\u30a4\u30eb\u304c\u4f55%\u30b3\u30d4\u30fc\u6e08\u307f\u306a\u306e\u304b\u3001progress\u3092\u5b9f\u884c\u3059\u308b\u3060\u3051\u3067\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>Linux\u3068macOS\u306b\u3060\u3051\u5bfe\u5fdc\u3057\u305f\u30c4\u30fc\u30eb\u3067\u3001cp\u3084mv\u3001dd\u3001tar\u3001gzip\/gunzip\u3001cat\u306a\u3069coreutils\u3067\u63d0\u4f9b\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u306a\u57fa\u672c\u7684\u306a\u30b3\u30de\u30f3\u30c9\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>progress\u306e\u4f7f\u7528\u65b9\u6cd5<\/h2>\n<p>macOS\u3067\u4f7f\u7528\u3059\u308b\u5834\u5408\u3001Homebrew\u5229\u7528\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306e\u304c\u7c21\u5358\u3067\u3059\u3002<\/p>\n<pre>\nbrew install progress\n<\/pre>\n<p>\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u3044\u306a\u3044\u6642\u306b\u5b9f\u884c\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30d8\u30eb\u30d7\u30e1\u30c3\u30bb\u30fc\u30b8\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\/2018\/05\/s_20180521_101408.jpg\" alt=\"S 20180521 101408\" title=\"s_20180521_101408.jpg\" border=\"0\" width=\"863\" height=\"423\" \/><\/p>\n<p>\u25b2cp\u3001mv\u3001dd\u3001tar\u3001cat\u3001rsync\u3001grep\u3001fgrep\u2026\u306a\u3069\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<p>\u6700\u3082\u7c21\u5358\u306a\u4f7f\u7528\u4f8b\u306f\u30d5\u30a1\u30a4\u30eb\u30b3\u30d4\u30fc\u306e\u9032\u6357\u72b6\u6cc1\u3092\u898b\u308b\u3082\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2018\/05\/s_20180521_101451.jpg\" alt=\"S 20180521 101451\" title=\"s_20180521_101451.jpg\" border=\"0\" width=\"817\" height=\"594\" \/><\/p>\n<p>\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u4e8c\u3064\u7acb\u3061\u4e0a\u3052\u3001\u4e00\u3064\u306e\u30a6\u30a3\u30f3\u30c9\u30a6\u3067\u300ccp\u300d\u3067\u5927\u304d\u306a\u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30d4\u30fc\u3057\u305f\u5f8c\u3001\u5225\u306e\u30a6\u30a3\u30f3\u30c9\u30a6\u3067progress\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u30b3\u30d4\u30fc\u306e\u9032\u6357\u72b6\u6cc1\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>progress\u306f\u305d\u306e\u307e\u307e\u5b9f\u884c\u3059\u308b\u3060\u3051\u3067\u306a\u304f\u5404\u7a2e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre>$ progress -h\nprogress - Coreutils Viewer\n---------------------\nShows progress on file manipulations (cp, mv, dd, ...)\n\nMonitored commands (default):\ncp mv dd tar cat rsync grep fgrep egrep cut sort md5sum sha1sum sha224sum sha256sum sha384sum sha512sum adb gzip gunzip bzip2 bunzip2 xz unxz lzma unlzma zcat bzcat lzcat\n\nUsage: progress [-qdwmM] [-W secs] [-c command] [-p pid]\n  -q --quiet                 hides all messages\n  -d --debug                 shows all warning\/error messages\n  -w --wait                  estimate I\/O throughput and ETA (slower display)\n  -W --wait-delay secs       wait 'secs' seconds for I\/O estimation (implies -w, default=1.0)\n  -m --monitor               loop while monitored processes are still running\n  -M --monitor-continuously  like monitor but never stop (similar to watch progress)\n  -c --command cmd           monitor only this command name (ex: firefox)\n  -p --pid id                monitor only this process ID (ex: `pidof firefox`)\n  -i --ignore-file file      do not report process if using file\n  -o --open-mode {r|w}       report only files opened for read or write\n  -v --version               show program version and exit\n  -h --help                  display this help and exit\n\n\nMultiple options allowed for: -c -p -i. Use PROGRESS_ARGS for permanent arguments.<\/pre>\n<p>\u25b2\u300cprogress -h\u300d\u3067\u78ba\u8a8d\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u516c\u5f0f\u30b5\u30a4\u30c8\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u4f7f\u7528\u4f8b\u304c\u63b2\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u5b9f\u884c\u4e2d\u306ecoreutils\u30b3\u30de\u30f3\u30c9\u306e\u9032\u6357\u72b6\u6cc1\u3092\u76e3\u8996\u3059\u308b:<\/p>\n<pre>\nwatch progress -q\n<\/pre>\n<p>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u306e\u9032\u6357\u3092\u78ba\u8a8d:<\/p>\n<pre>\nwatch progress -wc firefox\n<\/pre>\n<p>Web\u30b5\u30fc\u30d0\u30fc\u306e\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u3092\u78ba\u8a8d:<\/p>\n<pre>\nprogress -c httpd\n<\/pre>\n<p>\"$!\"\u3092\u5229\u7528\u3059\u308b:<\/p>\n<pre>\ncp bigfile newfile & progress -mp $!\n<\/pre>\n<p>\u5de5\u592b\u3057\u3060\u3044\u3067\u3055\u307e\u3056\u307e\u306a\u6d3b\u7528\u65b9\u6cd5\u304c\u3042\u308a\u305d\u3046\u3067\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>progress\u3092\u4f7f\u7528\u3059\u308c\u3070\u5b9f\u884c\u4e2d\u306ecp\u3084mv\u7b49\u306e\u30b3\u30de\u30f3\u30c9\u306e\u9032\u6357\u72b6\u6cc1\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002\u540c\u7a2e\u306e\u30b3\u30de\u30f3\u30c9\u300c<a href=\"http:\/\/www.ivarch.com\/programs\/pv.shtml\">pv<\/a>\u300d\u3068\u3042\u308f\u305b\u3044\u3056\u3068\u3044\u3046\u3068\u304d\u306b\u4f7f\u3048\u308b\u306b\u3088\u3046\u3057\u3066\u304a\u3051\u3070\u4fbf\u5229\u305d\u3046\u3067\u3059\u3002\u306a\u304amacOS\u306e\u5834\u5408cp\u5b9f\u884c\u4e2d\u306b\u300cCtrl + T\u300d\u3092\u62bc\u3059\u3053\u3068\u3067\u60c5\u5831\u3092\u8868\u793a\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u308b\u3088\u3046\u3067\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\/2018\/05\/s_20180521_103743.jpg\" alt=\"S 20180521 103743\" title=\"s_20180521_103743.jpg\" border=\"0\" width=\"928\" height=\"435\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30d5\u30a1\u30a4\u30eb\u306e\u30b3\u30d4\u30fc\u3084\u79fb\u52d5\u3001\u30a2\u30fc\u30ab\u30a4\u30d6\u306a\u3069\u3067\u5de8\u5927\u306a\u30d5\u30a1\u30a4\u30eb\u3092\u64cd\u4f5c\u3059\u308b\u5834\u5408\u3001\u3069\u3053\u307e\u3067\u305d\u306e\u4f5c\u696d\u304c\u9032\u3093\u3067\u3044\u308b\u306e\u304b\u9014\u4e2d\u3067\u9032\u6357\u72b6\u6cc1\u3092\u77e5\u308a\u305f\u304f\u306a\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002 \u6700\u521d\u306b\u300c-v\u300d\u30aa\u30d7\u30b7\u30e7\u30f3\u306a\u3069\u3092\u6307\u5b9a\u3059\u308c\u3070\u3001\u72b6\u6cc1\u3092\u901a\u77e5\u3057\u3066\u304f\u308c\u308b\u30b3\u30de\u30f3\u30c9\u3082 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":59982,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[3459],"tags":[2848,3302],"class_list":["post-59947","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-review","tag-tools","tag-unix"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/59947","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=59947"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/59947\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/59982"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=59947"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=59947"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=59947"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}