Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8322867
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T23:31:43+00:00 2026-06-08T23:31:43+00:00

I accidentaly ran a find and mv command as per below to move some

  • 0

I accidentaly ran a find and mv command as per below to move some files with specific extensions to a directory. Unfortunately it was early and I was tired and I didn’t put and slash on the end and all the .ext files are gone and I am left with a file called ‘file’ with no extension.

   find /folder -iname "*.zip" -exec mv {} /home/zip \;

Question is : How can I reverse or extract my .zip files from this ‘file’

I have tried to open with archiver, cat, tail, head and it’s just abinary output and archiver can’t extract

Note: I am on a Imac

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T23:31:45+00:00Added an answer on June 8, 2026 at 11:31 pm

    You basically did this with your find:

    mv a.zip /home/zip
    mv b.zip /home/zip
    mv c.zip /home/zip
    

    And /home/zip wasn’t a pre-existing directory. So those are just regular file renames. Each one overwriting the previous. All files except the last are dead. rm‘ed, effectively.

    You should be able to rename /home/zip to something more reasonable like foo.zip and unzip it to get the last zip file’s contents back. The others are going to require more work.

    You may also be interested in this Superuser question about undelete

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I accidentaly created a table in PostgreSQL which contains, in its name, some double
I accidentally ran commit on a git project with lots of data files in
I ran across an interesting issue in some of my humanize_bytes() code. This loop
As stated accidently ran the org-column command and I manage to remove it from
I accidentally added a few files to my working copy directory, and when I
I accidentally committed too many files to an SVN repository and changed some things
I accidentally ran svn add * and added a bunch of files that shouldn't
Wow i was just playing around with sp_addlinkedserver and i accidentally ran this command:
I have a function like the below. I ran into a problem were i
I recently ran into an embarrassing situation with some Flash coding where I had

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.