p******m 发帖数: 154 | 1 Because of the mv operation, one of my existing files is replaced. Then is
it possible to cancel that operation? 3Q. | B*******s 发帖数: 403 | | L*1 发帖数: 11537 | 3 I redefine "rm" to "rm -i", so each time it will ask me to confirm when I
want to remove a file. You can do similarly for "mv".
For what already happened, sorry, there is no way out. Try find a backup.
Also, if you are a Windows user, you may consider to use the drag and drop
file management available on Linux. | c****f 发帖数: 1102 | 4 alias 就可以了
默认root删除操作会有-i 普通用户是没的... | L*1 发帖数: 11537 | 5 Add it yourself.
【在 c****f 的大作中提到】 : alias 就可以了 : 默认root删除操作会有-i 普通用户是没的...
| a*******e 发帖数: 3021 | 6 there *MAY* be a way to work around.
I guess it is similar to recover a deleted file.
Try some data recovery softwaers such as Stellar_Phoenix_Linux
【在 L*1 的大作中提到】 : I redefine "rm" to "rm -i", so each time it will ask me to confirm when I : want to remove a file. You can do similarly for "mv". : For what already happened, sorry, there is no way out. Try find a backup. : Also, if you are a Windows user, you may consider to use the drag and drop : file management available on Linux.
| v*****r 发帖数: 1119 | 7 Yes or no, depending on how busy the disk the removed file (rm or mv) is
sitting on and how long ago did that incident happen?
When you rm/mv a file, you just removed the file reference, the actual data
is still sitting on the disk unless it is overwritten by other I/O
operations. If this just happens in the last couple of days and the disk is
not very i/o intensive, you might be lucky and here are the steps to try
your luck.
You need two perl scripts and also you need to know a string of data i | v*****r 发帖数: 1119 | 8 One correction, in the example of the second script, you want to read in
2000 bytes instead of 1000 bytes since we stepped back 1000 bytes. |
|