Can I list file names (or their parent directories) that were recently deleted using rm in OS X?
Posted
by
Andrew Grimm
on Super User
See other posts from Super User
or by Andrew Grimm
Published on 2010-12-30T08:35:56Z
Indexed on
2010/12/30
8:57 UTC
Read the original article
Hit count: 317
Is it possible to find out which files and directories have recently been deleted by rm
in OS X? Or failing that, is it possible to find which parent directories have had files or directories within it deleted?
The OS version is Snow Leopard.
Background: Last night, rvm (ruby version manager) did rm -rf
of the ~/ruby directory from the home directory. (This bug has since been fixed)
Ideally, I'd like to know what files within the ~/ruby directory were deleted, but failing that, I'd like to know if rvm deleted anything outside of ~/ruby .
In case anyone's wondering about backups...: Just about everything within ~/ruby is a git project that has a remote repo, and I have a fairly recent Time Machine backup (only 20 days old).
© Super User or respective owner