how to copy a directory (local) from terminal with progress bar showing
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.
how to copy a directory (local) from terminal with progress bar showing
Hello everyone,
I am new both here and in Linux. As the subject says, I would like to learn how to copy a directory (not a file) from terminal with progress bar showing. The copy is local, i.e., not to another computer.
My distro is CentOS 5.5.
I know that if I do it with nautilus I would see the progress, but I want to learn how to do it from the terminal.
I know that PV command can show a progress bar, but from what I saw, it works well for files, but not for directories (recursive). Is it possible to use PV for directories? If yes, could you please show me the syntax?
I also saw that some people mentioned that rsync can also show a progress bar, I tried to do it, but it didn't work out - perhaps I got the syntax wrong. If rsync can really be used to copy directories with progress bar, could you please show me the syntax?
Any other ideas on how to do it? I would like ideas that do not involve using any script, i.e., just something that I can do using the regular commands.
Many thanks in advance.
Linux.Girl
Last edited by Linux.Girl; 08-19-2010 at 08:10 AM.
Thanks sem007. I saw this thread before, but it didn't help me.
As I mentioned in my question, I do not want to use a script, I want to use the regular commands available.
The thread also mentions PV and rsync, but without much detail. I am very very new and I need someone to show me the exact syntax to copy a directory (localy) using PV. I still don't understand well enough what rsync does and how does it work, hence the PV preference.
Another quick question, if you don't mind: Can you please explain to me what the "user@localhost" means in the scp example that you gave? i.e., why the syntax is
ahhh, ok, no, I don't need to copy it to a remote host, just locally in my computer. So I guess rsync would be the best option (to copy directory locally with progress bar)?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.