由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Linux版 - 急急急!请问如何撤消mv操作?
相关主题
linux克隆搞不定紧急求助!how to undo Chown?
请教怎么把输出保存在变量里?Mono Wins Product of the Year Award
奇怪的swap,一部分不见了 (转载)how to copy one file into another?
请问这个系统怎么两个swapNew google search infrasturcture
linux mount question考验一下大家的浏览器
linux系统transfer问个swap space的问题
请推荐几款linux下的数据恢复软件C 89的话,怎么方便的把一个文件的行重排
gnu screen issueping的问题
相关话题的讨论汇总
话题: mv话题: operation话题: file话题: rm话题: try
进入Linux版参与讨论
1 (共1页)
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
2
no.
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.
1 (共1页)
进入Linux版参与讨论
相关主题
ping的问题linux mount question
问题:如何打开搜索二进制文件linux系统transfer
再问个linux 的partition 问题请推荐几款linux下的数据恢复软件
rsync errorgnu screen issue
linux克隆搞不定紧急求助!how to undo Chown?
请教怎么把输出保存在变量里?Mono Wins Product of the Year Award
奇怪的swap,一部分不见了 (转载)how to copy one file into another?
请问这个系统怎么两个swapNew google search infrasturcture
相关话题的讨论汇总
话题: mv话题: operation话题: file话题: rm话题: try