Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have deleted my .bash_profile with rm command and copied another one to use. But now i remember there is some PATH thing in the previous file :(. Can i find the deleted .bash_profile in some place like Trash?

share|improve this question
Possible recovery by /etc/skel/.bash_profile – Buscar웃 Feb 18 '14 at 11:08
Can't you recover it from your backup? – patrix Feb 18 '14 at 12:51
@Buscar웃 i can not find skel folder under /etc :( – Chancy Feb 18 '14 at 14:31
@patrix no backup:(. – Chancy Feb 18 '14 at 14:34
up vote 4 down vote accepted

When you do rm on a file, it is immediately unlinked from the file system and gone for good.

The Trash is a Finder Idiom that is not available in a unix terminal session. The only way to restore your file is by restoring it from a backup.

share|improve this answer
you means if there is no backup, then cannot restore it? – Chancy Feb 18 '14 at 14:32
No. It is (most probably) gone. The data may still be on the disk, but then we are talking data recovery. This in turn will only yield a result if the disk was taken offline immediately. If it was written to for an extended time the data will have been overwritten by new data. – itsafire Feb 18 '14 at 16:12

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.