How can I tell whether an interrupted rm -r removed any files?
Posted
by
Jake Petroules
on Super User
See other posts from Super User
or by Jake Petroules
Published on 2012-12-20T04:05:05Z
Indexed on
2012/12/20
5:05 UTC
Read the original article
Hit count: 467
filesystems
|rm
I installed sshfs a Linux box and then mounted my Mac home directory. In the middle of troubleshooting a configuration issue, I did an ls -l
on the mount directory (as normal user), receiving:
total 0
d????????? ? ? ? ? ? sl
I then ran sudo rm -r
on that directory but pressed Ctrl+C
to terminate it immediately before it (looks) like the command did anything. I notice no files missing but I want to be sure - is there a way I can somehow inspect the filesystem log on my Mac to see if any files were actually removed?
© Super User or respective owner