Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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 at 11:08
    
Can't you recover it from your backup? –  patrix Feb 18 at 12:51
    
@Buscar웃 i can not find skel folder under /etc :( –  Chancy Feb 18 at 14:31
    
@patrix no backup:(. –  Chancy Feb 18 at 14:34
add comment

1 Answer

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 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 at 16:12
add comment

Your Answer

 
discard

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.