a way to tell what was removed after rm -rf ?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers a way to tell what was removed after rm -rf ?
# 1  
Old 06-13-2008
a way to tell what was removed after rm -rf ?

Hello all!

I ran rm -rf on a wrong directory, noticed it and hit ctrl-c.
Is there any way on a debian machine to tell what actually got deleted?

As there were many dirs and files in this directory that I don't care for, I'd like to see if anything important was removed.
Or do you know in what order rm removes stuff (e.g. does it remove files from the dir that is first in alphabet)?

Thanks for your consideration!
Thomas
# 2  
Old 06-13-2008
You ran a recursive rm. This means it went down into the bottommost subdirectories alphabetically, deleted files, the went up a level, deleted files again, and so on.
# 3  
Old 06-23-2008
Thanks for your answer - just to make sure i got it right:

Suppose I rm -fr data/ and there are these directories

data/alpha
data/alpha/x
data/alpha/y
data/beta
data/beta/aaa
data/beta/0

It would delete everthing in alpha/x first?
# 4  
Old 06-30-2008
after some testing with rm -rfv I can only say, that it doesn't remove folders in any alphabetical order.
I can't see in which order rm progresses, but it does remove a given folder structure always in the same order.
# 5  
Old 06-30-2008
Sorry to say but you have less than no chance of finding out what has gone! One of the problems of using rm -r is it is very destructive with no way back apart from a backup! Again sorry for the bad news.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Linux

file removed

Hi Team, I have deleted a file accidentally by using rm command. I am not the root(admin) user. Can you please let me know how to get that .tex file? (2 Replies)
Discussion started by: darling
2 Replies

2. Shell Programming and Scripting

Accidentally removed a script

I accidentally rm a script (typo) and it doesn't even show up in the trash. Is there any way I can recover? (3 Replies)
Discussion started by: stevenswj
3 Replies

3. Shell Programming and Scripting

Removed Lines

Hi Guys, I am using SunOS 5.9 running Oracle Databases on it... I have log files that I suspect that some lines within the logs where removed. How do I tell if indeed some lines within a particular file where removed and by whom? Thanks in advance (2 Replies)
Discussion started by: Phuti
2 Replies

4. UNIX for Advanced & Expert Users

Removed ^M from Libraries

I used the following to remove ^M in all files - I guess i did it in haste :mad: find / -name "*" | xargs perl -p -i -e 's/^M//g' * It changed all my LIBRABRIES since i used -- perl -p -i -e 's/^M//g' * Is there some way to revert this from my libraries . Does any revert command... (10 Replies)
Discussion started by: telecomics
10 Replies

5. Shell Programming and Scripting

Duplicates to be removed

Hi, I have a text file with 2000 rows and 2000 columns (number of columns might vary from row to row) and "comma" is the delimiter. In every row, there maybe few duplicates and we need to remove those duplicates and "shift left" the consequent values. ex: 111 222 111 555 444 999 666... (6 Replies)
Discussion started by: prvnrk
6 Replies

6. Shell Programming and Scripting

directories are not getting removed

hello Everyone. I'm having the following problem: I have number of installation in the directory. each installation consists of executable file and directory. when I do the new installation I move old one to File_name-Time_stamp. this is done for executable and for directory. Everything is done... (6 Replies)
Discussion started by: slavam
6 Replies

7. UNIX for Dummies Questions & Answers

Will Old Files Be Removed

I have windows Xp installed, and decided to install Solaris Sun Unix 10. The hard disk was previousely partitioned into 5 partition. C: = Win98 D = WinXP and e,f,g,h are applications and so on. When istalling Sun Unix, will all the drives be removed, or I will specify where to install it. Thanks... (5 Replies)
Discussion started by: sunsation
5 Replies
Login or Register to Ask a Question