Accidentally removed file using the Terminal.  Is there a way to recover?

I accidentally deleted a file using the rm utility in the Terminal. Is there a way to recover this file or is it gone for good?

Odds are it's gone for good. When you delete a file only the directory entry is actually cleared or erased. The physical data still remains on the hard drive until it is overwritten. Because the directory entry is cleared the operating system considers the space on the hard drive is free. When the OS needs free space for a file it will use space that has been marked as free in the directory.
If the hard drive continues in use after a file is deleted, then the longer the drive is in use and the more data that are written to the drive, the greater the likelihood that the deleted file will be overwritten. Once overwritten the file cannot be recovered.
Assuming the file you deleted has not yet been overwritten, then you may be able to restore it with special recovery software such as Data Rescue II or File Salvage (www.prosofteng.com and www.subrosasoft.com, respectively.)

Similar Messages

  • I have an external hard drive 1 TB - it says that 559GB has been used , but I can't see any files at all.   Is there a way to recover those files. I have a lot of photos on it. I have an IMac and running MAC OSX versuib 10.7.5   I am new to Mac.

    I have an external hard drive 1 TB - it says that 559GB has been used , but I can't see any files at all.
    Is there a way to recover those files. I have a lot of photos on it. I have an IMac and running MAC OSX versuib 10.7.5   I am new to Mac, so I hope somebody can give me some advice.
    Cheers

    if it's ntfs microsofts filesystem then you need a windows machine to recover them

  • Okay so my computer shut off randomly and lost all the files i had open- is there any way to recover these? like some sort of back up? i thought macs autosaved?

    okay so my computer shut off randomly and lost all the files i had open- is there any way to recover these? like some sort of back up? i thought macs autosaved?
    pleasee help

    WIll the window software Wondershare Dr.Fone not recover the photos from the phone if you download or upload it to iTunes? It states it does?

  • I have accidentally deleted a Numbers spreadsheet. Is there any way to recover it?

    I have accidentally deleted a Numbers spreadsheet. Is there any way to recover it?

    Hi ilpchow,
    Ok, Undo does't work.
    Try Step 2:
    Menu > File > Revert To > Last Saved
    If that doesn't work, try the other suggestions.
    I hope you did Save sometime .
    Regards,
    Ian.

  • Hello, my question is to forget the questions to buy in the store is there any way to recover it, because hey tried but there is only option to reset the password and no questions

    hello, my question is to forget the questions to buy in the store is there any way to recover it, because hey tried but there is only option to reset the password and no questions

    Didn't the link to contact the iTunes Store staff in the 'Additional Information' section of that article work for you? If you don't already have a valid rescue email address, only Apple itself can reset the questions.
    (90961)

  • I did the os6 update on my iphone 4 then changed to the 4s but lost my text messages due to the 4s did not have the os6, is there a way to recover them?

    I had a iphone 4, backed it up and downloaded the os6. I then activated a 4s but due to the os was not the 6 it would not download my recent backup. Is there a way to recover my text messages?

    If you install iOS 6 on the 4S, you can follow this by restoring the 4S from the iPhone 4 backup, or select Restore for the 4S which will install iOS 6 and after iOS 6 is installed, you will be prompted to restore from a backup. You will need to manually select the backup for the iPhone 4 since the backup for the 4S will be selected by default.

  • HT4848 I think I have erased to trash and also from trash My File system,. can anyone help me? I use Lion. Is there any way to recover files and automatically reinstall them to their proper place?

    I try to install my new La cie tripple rugged. So I thought: maybe for Mac and windows.(just if in future need to share something) The 1 TB was partitioned in 860 Gb hfs+ Guid, journaled + windows Fat 32 the other part. but what happens next is terrible.
    After that, i though this is weird, nothing is happenning and by nothing I meant I couldnt see the 2 partitions. ...
    WELL.
    tO MAKE IT SIMPLER... i erase it send evrything first to check the disk if it was properly funtioning, veryfied the disk. everything was ok.
    until I noticed that in my finder, In my Home has sevral folder, one of them is Applications that before I think it used to have a lot of things ...
    NOW EVERYTHING´S GONE. GONE LIKE THE WIND.
    I WAS TIRED, HEADACHE, HAD TO READ FOR HOURS AND ERASE FINALLY MY TRASH.
    NOW IM HOPELESS..
    Where and how can I reinstall and find those files? since there were from the applications.
    I have all my applications under my hard drive root. but not in Home I cant find my templates, or parts of the programs like ADOBE.
    Another thing: All my mail has stopped. I use Mail in my machine, now i cant receive any mail since it keeps telling me that the server smtp. has rejected my password. I preetty sure of what i write. i have them written  in a secure place.
    I NEED TO RECOVER THOSE FILES. IS THERE A WAY?
    PLEASE, I REALLY NEED HELP HERE..
    THANKS.

    Restore your backup.

  • Accidently deleted photos from my iphone 5c, not using the cloud, is there any way to get my pics back?

    Just got a new iphone 5c and have not activated the cloud. Took pictures Saturday night and copied them to a separate file. Went to the camera roll and deleted them,not knowing that also deletes the file i created.  I have no backup or anything. Is there anyway that I can recover these pics?

    No.

  • Is there a way to separate raw files from jpegs that are in one folder after downloading from camera when you shoot both together. I tried arrange or sort  by kind but that does not work. It arranges all folders but not the files in the folder., Is there

    Is there a way to separate raw files from jpegs that are in one folder after downloading from camera when you shoot both together. I tried arrange or sort  by kind but that does not work. It arranges all folders but not the files in the folder., Is there a way to separate raw files from jpegs that are in one folder after downloading from camera when you shoot both together. I tried arrange or sort  by kind but that does not work. It arranges all folders but not the files in the folder.

    Bridge will do the job. View > Sort > ByType. Then you can choose a group of one type and put the files in a separate folder.

  • Where are temp files for Photoshop CS4? Is there any way to recover from themM?

    Hi. My Mac crashed with all my work. I forgot to do Cmd S and now I lost 2 days worth of work in Photoshop CS4. Any chance the work is still in temp files? If yes, is there any way to recover files from them? Best, Caldvin

    If you had any smart objects involved, you might be able to get to them. But no, not your main file.
    How did you manage to work for two days without a save!?!
    We all have to suffer these every now and again, teaches you to hit “save” every thirty seconds. You’ll be obsessive about it for eight months, then forget, loose hours of work and repeat. Perfectly natural.
    On the plus side doing something the second time is usually quicker…

  • HT201250 I had files stored on a hard drive that were not on my Mac. I used the hard drive for my first Time Machine back up, but it was not enough hard drive space to finish. Now those stored files are gone. Is there any way I can recover them?

    I had files stored on a hard drive that were not on my Mac. I used the hard drive for my first Time Machine back up, but it was not enough hard drive space to finish. Now those stored files are gone. Is there any way I can recover them?  No, they were not part of previous Time Machine backups, and I have checked both the hard drive the documents were lost on and the new one that I now use for backups. Any suggestions would be helpful, as the lost files are old pictures that are gone forever. :[ Thanks!

    1. Yes, if both drives are formatted as Mac OS Extended (Journaled).
    2. Reformat the drives if needed, open the Time Machine pane of System Preferences, and remove the drive with the pictures from the list of items set to be excluded.
    (110331)

  • Newbie question: Why is "learn sound model" greyed out when trying to remove background sounds in a file using the Spectral Frequency display?

    I am trying to remove background sounds in a file using the Spectral Frequency display. The first edit on a new file, this process works fine:
    1. use brush to cover sound
    2. right click, learn sound model
    3. effects/noise-reduction-restoration/Sound Remover
    The next time I try to remove another sound in the file, "learn sound model" is greyed out. I have to close the file and reopen to be able to make another edit. What on earth is going on? Can it only learn one sound model or something?
    I'm a newbie, so thanks in advance for your advice!

    My daughter has had her Razr for about 9 months now.  About two weeks ago she picked up her phone in the morning on her way to school when she noticed two cracks, both starting at the camera lens. One goes completely to the bottom and the other goes sharply to the side. She has never dropped it and me and my husband went over it with a fine tooth comb. We looked under a magnifying glass and could no find any reason for the glass to crack. Not one ding, scratch or bang. Our daughter really takes good care of her stuff, but we still wanted to make sure before we sent it in for repairs. Well we did and we got a reply from Motorola with a picture of the cracks saying this was customer abuse and that it is not covered under warranty. Even though they did not find any physical damage to back it up. Well I e-mailed them back and told them I did a little research and found pages of people having the same problems. Well I did not hear from them until I received a notice from Fed Ex that they were sending the phone back. NOT FIXED!!! I went to look up why and guess what there is no case open any more for the phone. It has been wiped clean. I put in the RMA # it comes back not found, I put in the ID #, the SN# and all comes back not found. Yet a day earlier all the info was there. I know there is a lot more people like me and all of you, but they just don't want to be bothered so they pay to have it fix, just to have it do it again. Unless they have found the problem and only fixing it on a customer pay only set up. I am furious and will not be recommending this phone to anyone. And to think I was considering this phone for my next up grade! NOT!!!!

  • Updated to Mavericks OS X but can't use my external drive by WD My Passport. The Mac reads it but I can't add/remove files to the external drive. Help?!

    Updated to Mavericks OS X but can't use my external drive by WD My Passport. The Mac reads it but I can't add/remove files to the external drive. Help?!
    The WD My Passport, I purchased back in early December 2013 & I just used it the other day after I updated my Macbook... & of course it says in the online manual it works for Mac Lion, Mountain Lion, Snow Leopard but not this new Maverick update. Is there anything I can do?

    I like the free demo of SuperDuper to make clones. It's free, Tiger and Leopard ready and is easy to use. If you buy the full version you can do incremental backups.
    You should use Disk Utility to do a Disk Repair, as shown in this link, booted up on your install disk, before you make a clone of it.
    I then partition my external disk, in Disk Utility, with a partition that is the same size , actually a tad bigger, as my system disk. I then use SuperDuper to clone my system disk over to that partition.
    With a clone on an external FireWire drive (USB drives are not bootable on some Macs) you can bootup on it to do your repairs or just run your Mac anytime you have trouble with your main drive. Be careful, there are a few external FireWire drives out there that are not bootable on Macs. Check the drive's manual to be sure.
     DALE

  • I put my ibook author file in the trash and then accidentally emptied my trash. Is there a way to recover the file? Does iBooks Author have a backup?

    I put my ibook author file in the trash and then accidentally emptied my trash. Is there a way to recover the file? Does iBooks Author have a backup?

    if you use time machine, you should be able to get it back that way. Although IBA saves changes on an ongoing basis, it doesn't create a back up or supplemental copy elsewhere on your drive.

  • My iphone was stolen, I used find my iphone app, and found that it was offline, however when tried locking mode option, I pressed remove device by mistake. Is there any way I can restore the iphone to my icloud/ apple Id again? No manual backup on laptop

    My iphone was stolen, I used find my iphone app, and found that it was offline, however when tried locking mode option, I pressed remove device by mistake. Is there any way I can restore the iphone to my icloud/ apple Id again? No manual backup on laptop

    The phone will automatically re-appear when it connects to the Internet. However, don't get your hopes up, as thieves know this & will make sure your phone never re-connects so you can locate it.

Maybe you are looking for

  • Problem with lower thirds.

    Hi, I've created a lower third with 5/6 titles played consecutively on one video track over about 2 minutes. I would like to repeat the titles of my lower thirds to play over my 20 minute video. I've tried to group the titles copy them and paste but

  • Certain Internet Explorer versions crash on clicking of datepicker icon

    Hi, I am using sun's web ui calendar tag to display the date field as well as the datepicker icons. However, on certain internet explorer versions, a crash occurs on clicking the datepicker link. The IE version is as follows:- **Version: 6.0.2900.218

  • Stylesheet issue in MSS page

    Hi, I am getting stylesheet issue with MSS page after Support Pack Upgrade in our SAP system. Prior to upgrade the button was appearing with yellow background color.This has changed after upgrade and now there is no backgroud color for the button.Ple

  • Please help with Overdrive reader

    I use Overdrive to read digital books from my library. After changing to a new iPhone, I was not able to download any books using the Adobe ID. The message I get is "This Adobe ID has been authorized too many times". Does anyone know why this happene

  • My mac happens to be running slow.

    WHY IN THE HECK IS MY COMPUTER SO SLOW ITS FREAKING NEW