-   Linux - General (
-   -   cp with progress bar? (

Rotwang 11-05-2004 01:23 PM

cp with progress bar?
It'd be nice if cp had a progress bar like scp does. I allthewebed for a wrapper script that does that but couldn't find one... anyone know of one?

yano 11-05-2004 02:06 PM

Why do You need it? It just slow down things a bit...
But try mc, it does it for you very nicely ;-)

SDraconis 04-22-2005 02:08 AM

I know this response would be way late, but I was looking for something like this myself (hence why I happened upon this post). You can use bar ( The command for copying a file with a progress bar would then be

bar --in-file source.file | dd of=dest.file
. You could also make a simple shell script to make it easier, of course.

bar --in-file $1 | dd of=$2
exit 0

Rotwang 04-27-2005 06:38 PM

Thanks man. It's not perfect but it's not bad, and better than nothing. I'm going to try to get it to do recursive copies (or at least make it so that I don't have to type in the full filename for output instead of just directory). Maybe I can pipe it to cp instead of dd...


SDraconis 04-27-2005 07:53 PM

Yeah, I was immediately annoyed with that too. I am not sure if you can actually pipe to cp like that, as cp generally takes its arguments as files rather than dealing with streams. If I were a good c programmer, I would try to pull the bar code out of bar or wget and try to put it into a version of cp, but alas...

bigrigdriver 04-27-2005 08:49 PM

You might be able to get cp to accept the output if you run it through xargs first.

All times are GMT -5. The time now is 03:11 AM.