The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Question about the PS command Nayas AIX 5 02-22-2008 10:26 AM
cp command Question? deal732 SUN Solaris 1 07-19-2007 11:17 AM
Command Question... DBoy12 UNIX for Dummies Questions & Answers 4 02-16-2007 03:14 PM
question about using tr command merliech UNIX for Dummies Questions & Answers 2 04-24-2006 03:26 PM
question about rm command IMPTRUE UNIX for Dummies Questions & Answers 1 09-04-2003 07:36 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-05-2008
mjdbouk mjdbouk is offline
Registered User
  
 

Join Date: Jun 2008
Posts: 4
mv command question

Hello,

i am trying to rename a file X to file Y on different location .

lets say the mv command started but for some reason system crashed while it did not finish.

will file Y be created physically with lets say half the records of what was in file X???

thanks in advance.
  #2 (permalink)  
Old 06-05-2008
zaxxon's Avatar
zaxxon zaxxon is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2007
Location: Germany
Posts: 2,285
From the AIX mv man page:
Quote:
... the mv command copies the file to the target and deletes the original file.
So it should delete the source only when the copying was successful. You can test it by moving a large file maybe and while it is copying, you send the mv a kill -9, which should bash it very hard, ie. like a crash.
  #3 (permalink)  
Old 06-05-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
However, yes, it's quite possible that the destination exists but only has a fraction of the complete file. Examine the file's size and maybe md5sum to be on the safe side.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:49 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0