LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-22-2009, 08:02 AM   #1
baldurpet
Member
 
Registered: Dec 2008
Location: Iceland
Distribution: Ubuntu, freeBSD
Posts: 110

Rep: Reputation: 15
Is it possible to see a progress bar when I move files with the command line?


When I move files with the mv command, it simply waits until the file has moved and then the command prompt appears again.

This is fine, but there are two things which are rather annoying
  • There is no progress bar: When moving really large files, you have no idea how long the move is going to take. Is there possible to produce a progress bar to show how much has finished?
  • You can't do anything while you're moving: You can't use the command prompt while you're moving the file/files.
I'm currently not using a Linux computer (I'm at school) but maybe it's possible to write mv <file> <location> &, I just thought of that just now (yaya, noob).

Is it maybe possible to use another program than mv to move you files?
 
Old 01-22-2009, 08:18 AM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,821

Rep: Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636
Quote:
Originally Posted by baldurpet View Post
When I move files with the mv command, it simply waits until the file has moved and then the command prompt appears again.

This is fine, but there are two things which are rather annoying
  • There is no progress bar: When moving really large files, you have no idea how long the move is going to take. Is there possible to produce a progress bar to show how much has finished?
  • You can't do anything while you're moving: You can't use the command prompt while you're moving the file/files.
I'm currently not using a Linux computer (I'm at school) but maybe it's possible to write mv <file> <location> &, I just thought of that just now (yaya, noob).

Is it maybe possible to use another program than mv to move you files?
No, if you look at the man page for CP, there is no option to put a 'progress bar' on the screen. You can turn on verbose logging, which will tell you what's being moved, and what it's doing, but that's about it.

There are other programs like midnight commander that may give you this option. You can also use a GUI based tool like Dolphin or Konqueror, which will give you your progress bar.

As far as not being able to use the command prompt, you can put the task into the background with the "&" (like "cp -R /myhome/* /newhome/ &"), and have the command prompt free. Or, you can start up as many other terminal windows as you'd like.....
 
Old 01-22-2009, 08:49 AM   #3
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Rep: Reputation: 43
you can use rsync to move the files and it has a progress flag.
 
  


Reply

Tags
move, mv


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
Command line progress bar for copying Maverick1182 Linux - Newbie 6 03-03-2012 12:55 AM
cannot using FTP move command to move files adrianmak Linux - Networking 4 04-21-2009 12:01 PM
Command-line progress meter in C++ JMJ_coder Programming 12 03-18-2008 12:31 PM
How to show a progress bar on the next line? Chowroc Programming 10 10-26-2005 10:27 PM
CLI progress bar for mv and cp command??? Lleb_KCir Linux - General 4 03-12-2005 09:12 PM


All times are GMT -5. The time now is 12:50 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