Recover Files Deleted Via the Terminal?

So by accident while doing some stuff in Terminal (long story) everything in my Documents folder on my iMac at work got deleted. I have a backup of all but three subfolders (projects) that were in there.
I was just wondering if there's any way to get those files back? Most of the file recovery apps and utilities don't mention if they work with files that were deleted in Terminal...

Your best shot at recovery is Prosoft Data Rescue. There is a free trial to see if it can recover what you need. But don't do another process on that drive until you've downloaded and run it.
It doesn't matter whether or not they were deleted via GUI or via command line.
-mj

Similar Messages

  • Recover files deleted via terminal

    I used a terminal command and my dropbox, google drive folder and another documents were deleted from my computer. I dont know what the command means and dont know what to do. What i wanted to do whit this command was to resync a google drive folder because I had to reinstall google drive
    This is the command :
    find ~/ -maxdepth 1 -type d -iname '*google*drive*' 2> /dev/null -exec rm -Rf {} \;
    rm -Rf ~/Library/Application\ Support/Google/Drive
    I got it from this website http://www.knowitnot.com/2013/11/02/reset-google-drive-mac-os-x/
    Please help me i really need the info that i lost

    find ~/ -maxdepth 1 -type d -iname '*google*drive*' 2> /dev/null -exec rm -Rf {} \;
    rm -Rf ~/Library/Application\ Support/Google/Drive
    It is easier to start with the 2nd command.
    'rm' is remove, as in delete. the files in ~ (your home folder) -> Library (a hidden file so people do not go messing in it) -> Applications Support -> Google ->Drive (which is where I assume some Google Drive information is typically stored.
    The -f says remove the files without prompting.  The -R says recursive, so if the target folder (Drive) has any sub-folders, it will delete those as well, and keep walking down any additional sub-sub-sub-sub...folders until everything in "Drive" and under "Drive" is removed.
    So rm -Rf is a very dangerous command, especially if the target directory is something high enough up in the directory tree.  There have been people that have followed posts on the web that deleted their entire file system with just one 10 character rm command.
    The 'find' command will search the target folder and all sub-sub-sub...folders and using a huge array of selection options find files and allow other commands to operate on the found files.
    The target folder was your home directory (~ is the Unix shortcut for your home folder).
    The -maxdepth 1 say says stop at the current folder.  That is to say, do not look in any sub-folders.  A value of 2 would look in just the sub-folders under the target folder.  A value of 3 would go down another level, etc...  So -maxdepth 1 just looked for file in your home folder.
    The -type d said select folders (d for directory, aka a folder).  So it ignored anything that was not a folder.
    The -iname '*google*drive*' selected only folders that included "google" and "drive" in the name ignoring any upper/lower case differences.  So it was looking for your Google Drive folder in your home folder.
    The 2> /dev/null told the Terminal shell to send any error messages to the null device (basically hiding any error messages that would be issued).
    Now the fun part, as with the other rm command, the -exec rm -Rf {} \; deleted recursively all the files found by the 'find' command.  The -exec invokes the specified command (in this case rm -Rf) and substitutes the file name found for the {}, the \; is just to tell 'find' where the -exec command ends.
    So 'find' found your Google Drive folder in your home folder, then removed it and anything inside of it.
    Finally, the 'rm' command is final. There is no UnDo.  There is not Trash folder.  The file name is removed from the directory, the storage associated with the file is put on the file system free list, and the file is gone.  If another file needs storage, it will take that storage from the file system free list, and now the deleted file data is overwritten.  This is why a salvage recovery tool needs to be run as soon as possible after something like this happens to avoid stepping on the accidentally deleted files.  And even then it is often difficult to figure out if something on the free list is a file or just junk.
    The only comfort I can give you is that, you have joined a wide group of Unix uses that have done similar things, populated by users with a lot more command line experience than you, but they still typed the wrong thing at the wrong time and lost valuable data.  The lucky ones had a backup, or were able to find another copy, such as checking if the Google Drive online site keeps deleted files for a few weeks, just in case.

  • Is there a way to recover files deleted via rsync?

    I ran rsync to back up my files to an external drive, but I made an error and wiped out some stuff I'd like back from the external. To be specific, I synced a desktop folder to the root folder of the external HD, wiping out its contents.
    I do have a second external with backups on there, but it hadn't been updated since October, so I may lose some stuff. Any options for recovery?

    Maybe possible, maybe not. Above all, don't do anything else with your Mac in the meantime, as any time it needs to create a new file, it will potentially overwrite what's left of one of the files you deleted.
    Then you'll have to invest in an application like Data Rescue II or FileSalvage:
    http://www.prosofteng.com/products/datarescueinfo.php
    http://subrosasoft.com/OSXSoftware/index.php?mainpage=product_info&productsid=1
    (This is not a personal recommendation, I've never used them. They have a free demo that will probably tell you if the files you need are recoverable, but if you're lucky and they are, you'll have to buy the full version to actually recover them.)

  • Does Any one can indicate me how to delete recovered files found on the trash can?

    I´ll appreciate very much your help indicating me the best way to delete recovered files found on the trash can.

    The Getinfo pane has several sections. Next to the top is "General". At the bottom of that section, under the row of colored dots is a checkbox,  [√] Locked (and not checked means not locked).

  • Okay, i have 2 bugs with maverick.  First, when I delete a file within a window, the files deletes but the preview doesn't delete until I close the window and reopen it.  Second, I work on a network of computers and the search feature is now buggy...

    Okay, i have 2 bugs with maverick.  First, when I delete a file within a window, the files deletes but the preview doesn't delete until I close the window and reopen it.  Second, I work on a network of computers and the search feature is now buggy...  When I search for a file, A) it asks me if it's a name, or it wont produce anything, and B), its slower than in prior OS versions and in some instances I have to toggle to a different directory and go back to my original directory in the search: menu bar or the search wont produce anything...  Very buggy. 

    It appears to me that network file access is buggy in Maverick.
    In my case I have a USB Drive attached to airport extreme (new model) and when I open folders on that drive they all appear empty. If I right click and I select get info after a few minutes! I get a list of the content.
    It makes impossible navigate a directory tree.
    File access has been trashed in Maverick.
    They have improved (read broken) Finder. I need to manage a way to downgrade to Lion again.

  • What is the Command to disable Printer Sharing via the Terminal?

    What is the Command to disable Printer Sharing via the Terminal?

    cupsctl is the command.
    man cupsctl(8)
    Hope that helps.

  • Can i recover emails deleted from the cloud after reformating my HD

    can i recover emails deleted from the cloud after reformating my HD, these are very important emails, after reformatting my hard drive to fix some trouble i was having w/ maverics, these copies were deleted, and my icloud deletes messages more than a month old. help??

    Hi,
    If you use the iCloud.com login or the Mail App and "fetched" the Mail and deleted that way there is not way to get it back.
    You could have archived it or placed it in Folders (created in Mail or on the web Login) and that will have stored them on the IMAP server and they would have been retrievable.
    8:16 pm      Thursday; March 20, 2014
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • Was the emergency records file deleted with the Mountain Lion operating system?

    Was the emergency records file deleted with the Mountain Lion operating system?

    It's a Quicken file & I was able to open same.  Not used often & the copy in my documents wouldn't open, but it did in the Quicken app that's friendly with Mountain Lion.  Learned something new today!

  • Sending Mail to Local Users via the Terminal mail Command

    I am having trouble sending mail to other user account via the terminal mail command. It seems to work with some accounts i.e. guest, etc, but fails with others i.e. Dennis. It will fail with no error message. Has anyone had any experience using the unix mail command locally ?
    Dennis

    I don't know the answer to this but you might try the -v option on the mail command in order to get verbose output. Perhaps a useful message would pop up.
    Also, you might consider posting this message in the Unix Forum. There is a good chance that someone there can help you with this issue.
    EMAC G4 1.0 GHz   Mac OS X (10.4.6)  

  • Is there a way to recover files deleted from icloud?

    I inadvertently deleted a Pages document from my iPhone and it has disappeared from my iPad and iCloud.  Is there any way to recover it?

    Deleting won't make the files erased permanently.As long as those files are not overwritten by new data, it's highly possible to recover them.Those deleted files is still stored on the hard drive, it's just invisible or inaccessible.And the most effective
    way is to rely on some data recovery programs.
    Try this one called Tenorshare Data Recovery. I also encountered the same trouble before.Finally this program helped me recover the file I accidentally deleted from the recycle bin successfully.
    One tip here:Your files will be recovered into the recycle bin.So you'd better not to delete any other files into the recycle bin.Once the deleted files were overwritten by new deleted files,they are all historys!
    You can get it from:  http://www.any-data-recovery.com/product/index.htm

  • How do I recover photos deleted from the memory card?

    If you don't have any sucess with the free programs available Sandisk Rescue Pro can be downloaded for a test & if it finds the missing / damaged files you can then pay the licensing fee & retrieve your photos. I have used Rescue Pro more than once with excellent results. (Bailed out friends & relatives who either pulled the cable out while downloading or who formatted in camera by accident). Rescue Pro found files burried from more than 1 in camera format & reuse. Lexar also has a very good program for this but I don't remember it's name.  .

    You can try to google about how to recover deleted photos on your memory card:
     Access a USB port to connect your camera to your computer and recover deleted pictures
    on your memory card. Download a photo recovery program for memory cards. Run the program by double clicking on the downloaded executable file and clicking "Run". Choose the drive containing the deleted picture files from the available card reader drives or camera drives in the pull-down menu. Indicate the location on your computer where you want the recovered files to be stored. Begin the restoration process by clicking on "Start." Or you can use Photo Recovery to recover deleted photos.

  • How can i find an excel file deleted from the server

    In our office we all have access to the main server. Recently a document that we need was deleted from the server. It's not in the trash. Can and how would we be able to find and recover this deleted document? Specifically I am looking for an excel document, and I already checked the recent docs on excel.
    thanks!

    Have the admin for the server restore the file from the backup

  • Can I recover files deleted in trash and if so how?

    Hi everyone,
    Blown it this time! in my haste to do things I have lost 7 years of photos. Can anyone reccomend any data recovery software? Or ideas on how to get it without buying. I am looking at Data Rescue 3 at present.
    Cheers
    paul

    Basics of File Recovery
    Files in Trash
    If you simply put files in the Trash you can restore them by opening the Trash (left-click on the Trash icon) and drag the files from the Trash to your Desktop or other desired location. OS X also provides a short-cut to undo the last item moved to the Trash -press COMMAND-Z.
    If you empty the Trash the files are gone. If a program does an immediate delete rather than moving files to the Trash, then the files are gone. Recovery is possible but you must not allow any additional writes to the hard drive - shut it down. When files are deleted only the directory entries, not the files themselves, is modified. The space occupied by the files has been returned to the system as available for storage, but the files are still on the drive. Writing to the drive will then eventually overwrite the space once occupied by the deleted files in which case the files are lost permanently. Also if you save a file over an existing file of the same name, then the old file is overwritten and cannot be recovered.
    General File Recovery
    If you stop using the drive it's possible to recover deleted files that have not been overwritten with recovery software such as Data Rescue II, File Salvage or TechTool Pro. Each of the preceding come on bootable CDs to enable usage without risk of writing more data to the hard drive.
    The longer the hard drive remains in use and data are written to it, the greater the risk your deleted files will be overwritten.
    Also visit The XLab FAQs and read the FAQ on Data Recovery.

  • How to make a VR html file autoplay via the Web Content overlay

    Hello,
    We have created a VR using Object2VR and have loaded the .html file via the Web Content Overlay panel in InDesign CS5.5.
    We want this VR to play automatically on page load, so we have checked the box 'aut play' in the Web Content overlay panel, but it won't play automatically.
    We've tried switching the auto play off in Object 2VR and switching it on in the Web Content overlay and vice versa and also with both on, but still we cannot get it to autoplay.
    Any suggestions? Is this a bug?
    thanks,
    AG

    DPS is no longer supported in 5.5 you need Indesign 6 or Creative Cloud.
    Set you auto play delay for the web overlay to something other than zero seconds, 0.125 works, if it is set to zero seconds. Leave the auto play enabled for the VR.

  • Recover Accidentally Deleted Commands in Terminal

    I'm trying to do a certain set up on my Nintendo 3ds system using wifi on my Mac OS X desktop and in order to do it I'm suppose to put in certain commands in the terminal, but I made a mistake and pressed backspace and accidentally deleted my commands in my terminal box. I'm new to using terminal and I have not emptied my trash. What can I do to get it back?

    You typed something into the terminal and you have no idea where you got the original command from and you have no idea what you typed. Now the screen shot you post is pretty messed up. Not really sure what you expect especially if you wont answer the questions asked or try the steps suggested.
    The terminal can be a dangerous place especially if you are not sure what you are doing. Typing in commands that you have no idea what they do or where they came from is a recipe for disaster.
    Wish I had more
    Good luck
    regards

Maybe you are looking for

  • How to create a crystal Report using C# and SQL Server

    Hi, im new in creating crystal report using SQL Server, and im making a project.. and could someone help me how to connect your .sdf (SQL Server File) from the bin to your crystal report? thanks a lot.. i followed some instructions like this one (htt

  • Material posting

    Hi, While doing goods movement in MB1C the system show the following error"Maintain tolerance limits for tolerance key VP (CoCode ZWEL) Message no. M8215. Regards, Renuga.A

  • Why does iTunes say my iPad is "over capacity" when it isn't?

    Hi. I saw someone posted about there iPhone last night and added my question there, but since I've not had a response I will create a new question. I went to sync my iPad yesterday and I got an error saying it was "over capacity." I checked online an

  • How does one turn off link auto-update?

    When we have an ID file open in CS6 and make a Photoshop edit, the link seems to auto-update. We don't like this as we'd rather 'watch' the update so if comes in as expected, etc.. Can one turn off link auto-update? Thanks!

  • Table Fields of Product Analysis

    Hi All, I'm working on Product Analysis report for Inspection Lot. Unable to find the tables and fields for inspection parameters: 1.Valid till date field 2.weight 3.FFA 4.BCAR 5.DOBI Thank You,