Operating System - Linux
1752679 Members
5446 Online
108789 Solutions
New Discussion юеВ

Re: "mv" command make a mistake

 
SOLVED
Go to solution
Gary L
Super Advisor

"mv" command make a mistake

Hi urgent

just now I run a mistake "mv" command on my redhat linux ES server how to recovery detail as below:
1. i wanna use "mv" command move a very important 1.tar file to another directory, correct command should be: #mv 1.tar /u01/1.tar
but I ran: # mv 1.tar /u01/, I could not find 1.tar at /u01 dir, and through find it disappear, it is a very important tar file, how to recovery it?
thanks
3 REPLIES 3
Gary L
Super Advisor

Re: "mv" command make a mistake

hi

I find it, the wrong command #mv 1.tar /u01 move my 1.tar file to / root dir and change 1.tar name to u01,
haha
thx
Francisco J. Soler
Honored Contributor
Solution

Re: "mv" command make a mistake

Exactly, if the dir /u01 does not exist, the mv command create a new file in root directory, if /u01 exists, then a new file 1.tar is created inside /u01.

Frank.
Linux?. Yes, of course.
Gary L
Super Advisor

Re: "mv" command make a mistake

thanks Francisco soler, have a great day.

-Gary