1

I accidentally typed

$ rm -rf /*

(backslash was NOT intended). Fortunately it was without sudo and I aborted it quickly. Nonetheless, it removed a number of files.

Most of things seems to work (it did uninstall and application or two).

As I don't want to restore all from Time Machine (a week old thing), how to check which system files were removed (and to restore them)?

  • I would use Time Machine and only choose to restore if file does not exist. (This is what TM is designed for) If really just system files I would get the combo update from Apple and apply that. – Mark Oct 12 '14 at 12:39
  • @Mark And how to restore removed files without changing existing files? – Piotr Migdal Oct 12 '14 at 12:42
  • Time machine will ask if you want to overwrite files Anyway if they are system files then they won't have changed unless you applied an update - if the latter reapply the update – Mark Oct 12 '14 at 12:43
  • @Mark "Anyway if they are system files then they won't have changed unless you applied an update - if the latter reapply the update" - I am not sure if I understand you. I guess most systems files are not updated with each system update (think e.g. printer drivers or anything). – Piotr Migdal Oct 14 '14 at 13:33
  • My comment was that system files won't have changed in the last week so use the Time Machine backup - or if they have then that was due to system update, if so rerun the system update – Mark Oct 14 '14 at 14:33

You must log in to answer this question.

Browse other questions tagged .