LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 08-03-2007, 06:07 AM   #1
Maverick1182
Member
 
Registered: Aug 2004
Location: London
Distribution: Gentoo
Posts: 277

Rep: Reputation: 30
Command line progress bar for copying


Hi there,

As I have been constantly impressed with things that linux can do I thought I would ask this bold question:

Is there a way of displaying a nice progress indicator in the command line when i copy folders/files in the commandline? I usually use ssh and copy large files from different places and I dont want the two exteremes of either no out put whilst the computer does its work or the thousands of lines of files which are being copied which still gives me no indication of the total progress of the cp command.

I was wondering if there was a command line tool which prints a nice little progress bar with text something like

| ------>........| 55%

I have seen these around linux for loading things up and other things but I was wondering if it was available for copying? How would I go about it?
 
Old 08-03-2007, 06:18 AM   #2
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 30
check the Search function within LQ
and search for this: "cp progress bar"

Quick answer no
 
Old 08-03-2007, 06:21 AM   #3
Maverick1182
Member
 
Registered: Aug 2004
Location: London
Distribution: Gentoo
Posts: 277

Original Poster
Rep: Reputation: 30
Ah, I tried that and it didn't yield anything helpful.

Will keep looking
 
Old 08-03-2007, 06:48 AM   #4
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 30
Quote:
Originally Posted by Maverick1182
Ah, I tried that and it didn't yield anything helpful.

Will keep looking

http://www.linuxquestions.org/questi...d.php?t=407381
 
Old 08-14-2007, 04:48 AM   #5
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 30
I've found a solution for all DD's and cp's that cry cause they don't got a progress bar.
http://invisible-insland.net/dialog
Licence: GPL 2.0
alternative CDK, Xdialog, Gtkdialog, Kdialog
 
Old 02-18-2012, 03:33 PM   #6
DanCard
LQ Newbie
 
Registered: Sep 2010
Posts: 3

Rep: Reputation: 0
rsync

rsync -rv <src> <dst> --progress
r = recursive
v = verbose
 
Old 03-03-2012, 12:55 AM   #7
the_gripmaster
Member
 
Registered: Jul 2004
Location: VIC, Australia
Distribution: RHEL, CentOS, Ubuntu Server, Ubuntu
Posts: 356

Rep: Reputation: 38
Ok, I have looked for a simple solution on the internet and it seems many people have come up with different not-so-simple ideas. Here's what I came up with on my quiet (and boring) workday on a Saturday:

Code:
$ pv original_file > copied_file
2.57GB 0:01:13 [35.9MB/s] [===============================================================================================================>] 100%
In the command above pv is reading the original_file and passing it to stdout. cat is grabbing the output from pv on its stdin (-) and redirecting it to the copied_file. Same apparent effect as copying the file using the cp command.

The pv utility should be available for almost all distros.

Last edited by the_gripmaster; 03-07-2012 at 06:06 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add copying progress bar in PHP? green_njk Linux - General 1 01-04-2006 09:10 AM
How to add copying progress bar in PHP? green_njk Programming 1 01-04-2006 05:26 AM
How to show a progress bar on the next line? Chowroc Programming 10 10-26-2005 10:27 PM


All times are GMT -5. The time now is 07:16 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration