LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 07-29-2009, 01:03 AM   #1
Qu3ry
LQ Newbie
 
Registered: Jul 2009
Distribution: ubuntu, fedora, OpenSolaris
Posts: 21

Rep: Reputation: 15
Resume with mv or midnight commander??


I had a bunch of files being moved to a directory when it's cancelled on accident. How Can I resume it rather than overwriting all of them ? How does Linux tell, if any, whether a files need to be overwrite or resume?

For instance, A.mp3 is 30MB and only 10MB of them has moved to the target directory. Now they both have the same name. Does Linux know whether to resume it?

If it's not possible to resume it with the mv command or midnight commander, How such thing is possible with other softwares? Using a mirroring utility next time instead of the mv command?

BTW, Is there a way to show progress while moving files? mv -v doesn't help.

Last edited by Qu3ry; 07-29-2009 at 09:00 PM.
 
Old 07-29-2009, 01:57 AM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Quote:
Originally Posted by Qu3ry View Post
I had a butch of files being moved to a directory when it's cancelled on accident. How Can I resume it rather than overwriting all of them ? How does Linux tell, if any, whether a files need to be overwrite or resume?

For instance, A.mp3 is 30MB and only 10MB of them has moved to the target directory. Now they both have the same name. Does Linux know whether to resume it?

If it's not possible to resume it with the mv command or midnight commander, How such thing is possible with other softwares? Using a mirroring utility next time instead of the mv command?

BTW, Is there a way to show progress while moving files? mv -v doesn't help.
I don't understand the first part of your question. Are both files now 30MB? 10MB? or somewhere in between?

If you use Konqueror, it shows your progress while moving files.
cheers,
jdk
 
Old 07-29-2009, 02:51 AM   #3
karamarisan
Member
 
Registered: Jul 2009
Location: Illinois, US
Distribution: Fedora 11
Posts: 374

Rep: Reputation: 55
Try `mv -u`. You can manually delete the source files after that. Copy the one file that's half done manually or `touch A.mp3` first (that being the original) to make sure mv moves it. Linux applications generally make this decision based on mtime or ctime, which is when the file's contents or attributes were last modified, respectively.
 
Old 07-29-2009, 02:57 AM   #4
mk27
Member
 
Registered: Sep 2008
Distribution: fedora, gentoo, ubuntu
Posts: 148

Rep: Reputation: 23
Vis. "midnight commander" it will ask if you want to replace files with duplicate names when doing a batch move.
 
  


Reply



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
Midnight Commander 4.6.2 guanx Slackware 8 02-07-2009 03:53 AM
Midnight Commander matombo Fedora 3 11-30-2005 12:41 PM
midnight commander archlyric Linux - Software 2 02-28-2004 02:04 AM
midnight commander enigma1 Linux - Software 6 12-10-2003 02:47 PM
Midnight Commander XPediTioN Slackware 2 07-12-2003 11:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:36 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration