You probably have spaces in your filenames (perhaps your home directory). In this case, not using -rf would have mitigated the damage. But, you shouldn't use xargs with find. Instead, use the -exec option like this:
 $ find . -name '*.c' -exec rm {} \;
That way, you don't have to worry about spaces.

If you have a backup, just use that. Otherwise, try using photorec:

Reply via email to