Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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
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:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.