[{"data":1,"prerenderedAt":342},["ShallowReactive",2],{"project-8023713":3},{"id":4,"name":5,"line":6,"line_source":7,"title":8,"url":9,"domain":10,"maker":11,"posted_at":12,"year":13,"points":14,"comments":15,"rank_in_year":16,"shown_in_year":17,"top":18,"tier":19,"category":20,"subcategory":21,"format":22,"keywords":23,"reception":29,"sentiment":30,"stance_mix":31,"scored_comments":36,"aspects":37,"strip":40,"post_text":42,"what":43,"said":56,"maker_in_thread":161,"shape":163,"grid":167,"attempts":307,"same_week":308,"maker_shows":35,"maker_hidden":335,"reader_version":336,"card":337},"8023713","cv","Linux tool to show progress for cp, rm, dd, etc.","title","Show HN: Linux tool to show progress for cp, rm, dd, etc.","https:\u002F\u002Fgithub.com\u002FXfennec\u002Fcv","github.com","powerbook5300CS",1405139457,2014,252,53,60,2272,3,"legend","dev_tools","command line utility","cli",[24,25,26,27,28],"cp progress","linux progress bar","dd progress","coreutils","pipe viewer","loved",0.4,{"positive":32,"neutral":33,"mixed":34,"critical":35},6,4,0,1,11,{"idea":38,"execution":39},{"positive":18,"critical":35},{"positive":35,"critical":34},[34,34,34,34,34,34,34,34,34,34,34,35,34,41,34,34,34,34,41,34,34,34,34,34,34,34,34,41,18,34,34,34,34,41,34,34,41,41,34,34],5,null,{"problem":44,"audience":42,"pricing":42,"motivation":42,"time_to_build":42,"stack":54,"openness":55,"stage":55,"team_size":55},{"value":45,"source":46,"evidence":47},"Core Unix commands like cp and dd give no progress information while running.","inferred",[48,50],{"id":49},"post",{"id":51,"by":52,"text":53},"8024090","justincormack","dd has progress built in, under Linux it is kill -USR1 \u003Cpid> to get a progress report, the signal varies by OS. cp has a -v option, if tahts not enough rsync has a --progress…",[],"unknown",{"praise":57,"objections":81,"requests":100,"questions":112,"alternatives":117},[58,66],{"value":59,"source":60,"evidence":61},"Clever use of \u002Fproc for progress reporting.","commenter",[62],{"id":63,"by":64,"text":65},"8024121","abcd_f","Using \u002Fproc is pretty damn clever! I thought it would be some sort of wrapper for strace, but your solution is so much simpler.",{"value":67,"source":60,"evidence":68},"Simple, useful idea.",[69,73,77],{"id":70,"by":71,"text":72},"8024042","mcpherrinm","Wow, that's such a clever idea! I'm impressed at the simplicity.",{"id":74,"by":75,"text":76},"8024123","qwerta","Very nice idea!",{"id":78,"by":79,"text":80},"8024357","ck2","I really hope this stays on the HN front page for awhile because what a great utility. I've been using patched copies of coreutils to do the same thing, this is much better. By…",[82,93],{"value":83,"source":60,"evidence":84},"Relies on Linux-specific \u002Fproc, so it doesn't port to OS X directly.",[85,89],{"id":86,"by":87,"text":88},"8024787","stanzheng","Anyone know a similar tool available to OSX or if its feasible to port or recreate this for MAC? I'm not too familiar with what file libs or utils can be used to handle this as…",{"id":90,"by":91,"text":92},"8024867","lobster_johnson","Entirely feasible, as far as I know; OS X lets you discover processes and access their devices. OS X, being BSD-based, doesn't have a \u002Fproc file system; instead, you have to use…",{"value":94,"source":60,"evidence":95},"Does not replace BSD SIGINFO behaviour; Linux tools lack it.",[96],{"id":97,"by":98,"text":99},"8027521","ars","This assumes the command supports SIGINFO, but that's a BSD thing. Linux commands don't support that, so this is not a replacement. And did you really just reinvent pkill?",[101,105],{"value":102,"source":60,"evidence":103},"Port to OS X.",[104],{"id":86,"by":87,"text":88},{"value":106,"source":60,"evidence":107},"Built-in progress bars for cp and mv.",[108],{"id":109,"by":110,"text":111},"8024087","__david__","I like pv, but I thought that it didn't work with \"cp -r\" (let alone mv)… Am I wrong? It would be nice for cp and mv to just have built-in progress bars (only active in…",[113],{"value":114,"source":60,"evidence":115},"Does it work with cp -r or mv?",[116],{"id":109,"by":110,"text":111},[118,129,136,143,154],{"value":119,"source":60,"evidence":120},"pv (pipe viewer)",[121,125],{"id":122,"by":123,"text":124},"8024057","agumonkey","So it's a centralized `pv` ? http:\u002F\u002Fwww.catonmat.net\u002Fblog\u002Funix-utilities-pipe-viewer\u002F",{"id":126,"by":127,"text":128},"8024063","fit2rule","Yeah .. I think I prefer pv for all my cp progressbar needs .. keeps things light and simple, and is already onboard.",{"value":130,"source":60,"evidence":131},"rsync --progress",[132],{"id":133,"by":134,"text":135},"8024180","jamescun","For a verbose or simple progress `cp` equivalent I tend to use RSync. Both RedHat\u002FCentOS\u002Fetc and Debian\u002FUbuntu all come with RSync as standard. The only caveat is that I find…",{"value":137,"source":60,"evidence":138},"dcfldd",[139],{"id":140,"by":141,"text":142},"8024177","scarygliders","And dcfldd (not a coreutils app you have to install it separately) gives you a progress report, as well as using all the usual dd syntax.",{"value":144,"source":60,"evidence":145},"Ctrl-T SIGINFO on OS X and BSD",[146,150],{"id":147,"by":148,"text":149},"8024285","danieldk","Slightly related: what many people don't know is that on OS X and BSDs, commands often react to SIGINFO (Ctrl-t), giving progress information. E.g. from the cp man page: ``` If…",{"id":151,"by":152,"text":153},"8024209","midko","To expand the parent comment, in Terminal (OS X), Ctrl-T prints the progress of dd and cp so you needn't look up their PIDs",{"value":155,"source":60,"evidence":156},"Midnight Commander",[157],{"id":158,"by":159,"text":160},"8025972","to3m","I've found Midnight Commander (https:\u002F\u002Fwww.midnight-commander.org\u002F) good if you just need the progress bar. In fact, you get not just one, but TWO - one for the individual file,…",{"comments":34,"answered":34,"key":162},[],{"commenters":164,"max_depth":165,"maker_replies":34,"first_comment_mins":14,"lifespan_hours":166},47,7,68,[168,170,173,176,179,182,185,188,191,193,194,197,200,201,204,206,207,211,215,218,221,223,226,228,230,234,235,238,241,244,247,248,251,253,254,255,258,262,265,268,271,274,276,278,279,281,285,288,290,294,296,300,304],[147,34,34,169,148,34],"commenter\u002Fneutral\u002Fnone",[171,34,34,169,172,34],"8024936","ramidarigaz",[174,34,34,169,175,34],"8025238","ysangkok",[177,34,34,169,178,34],"8025325","spoiler",[180,34,34,169,181,34],"8025622","koenigdavidmj",[183,34,34,169,184,34],"8026217","akshatpradhan",[186,34,34,169,187,34],"8025771","ak217",[189,34,34,169,190,34],"8026138","na85",[192,34,34,169,187,34],"8026650",[133,35,34,169,134,34],[195,35,34,169,196,34],"8024195","zidar",[198,35,34,169,199,34],"8024295","thejosh",[158,35,34,169,159,34],[122,202,34,203,123,34],2,"commenter\u002Fneutral\u002Fidea",[126,202,35,205,127,34],"project\u002Fcritical\u002Fidea",[109,202,34,169,110,34],[208,202,34,209,210,34],"8024103","other\u002Fneutral\u002Fnone","hrjet",[212,202,41,213,214,34],"8024124","project\u002Fpositive\u002Fidea","fyrabanks",[216,202,34,169,217,34],"8024133","zurn",[219,202,34,169,220,34],"8024188","ithkuil",[222,202,34,169,175,34],"8025251",[224,202,34,169,225,34],"8026399","teraflop",[227,202,34,169,220,34],"8026417",[63,18,41,229,64,34],"project\u002Fpositive\u002Fexecution",[231,33,18,232,233,34],"8024238","project\u002Fneutral\u002Fidea","adrusi",[97,33,34,169,98,34],[236,41,34,209,237,34],"8024104","nailer",[239,41,34,209,240,34],"8024147","Zikes",[242,41,34,209,243,34],"8024217","oftenwrong",[245,41,34,209,246,34],"8024408","diegolo",[51,32,34,169,52,34],[249,32,34,169,250,34],"8024100","daw___",[252,32,34,169,52,34],"8024120",[140,32,34,169,141,34],[151,32,34,169,152,34],[256,32,34,209,257,34],"8025350","skore",[259,165,41,260,261,34],"8024048","project\u002Fpositive\u002Fnone","Nux",[86,263,18,264,87,34],8,"project\u002Fneutral\u002Fnone",[266,263,34,169,267,34],"8024811","gaadd33",[269,263,34,169,270,34],"8025832","mef",[272,263,34,169,273,34],"8026521","AdamGibbins",[275,263,34,169,270,34],"8027752",[277,263,34,169,267,34],"8034135",[90,263,18,264,91,34],[78,280,41,260,79,34],9,[282,283,34,209,284,34],"8027243",10,"kator",[286,36,34,209,287,34],"8024171","lamby",[70,289,41,213,71,34],12,[291,292,18,264,293,34],"8025732",13,"alex_duf",[74,295,41,213,75,34],14,[297,298,34,209,299,34],"8024075",15,"TobbenTM",[301,302,34,209,303,34],"8026230",16,"jackmaney",[305,302,34,209,306,34],"8026244","madeofpalk",[],[309,313,317,322,326,331],{"id":310,"name":311,"points":312,"category":20},"8036648","Pangoly",778,{"id":314,"name":315,"points":316,"category":20},"8016307","Breach",405,{"id":318,"name":319,"points":320,"category":321},"8042051","Papa Parse",363,"languages",{"id":323,"name":324,"points":325,"category":20},"8028704","Tools of the Trade",321,{"id":327,"name":328,"points":329,"category":330},"8037633","Realm (YC S11)",188,"data",{"id":332,"name":333,"points":334,"category":20},"8043058","Shoelace.io",158,false,"v2",{"id":338,"name":5,"line":6,"ai":335,"cat":20,"year":13,"points":14,"comments":15,"rec":29,"s":30,"top":18,"kw":339,"maker":11,"domain":10,"tier":19,"attempts":34,"strip":340,"url":9,"mix":341,"praise":59,"objection":83,"sub":21},8023713,[24,25,26,27,28],"0000000000010500005000000005300005005500",[32,33,34,35],1793990908136]