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 7418435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T07:53:14+00:00 2026-05-29T07:53:14+00:00

I recently accidentally called rm -rf * on a directory an deleted some files

  • 0

I recently accidentally called “rm -rf *” on a directory an deleted some files that I needed. However, I was able to recover most of them using photorec. Apparently, “deleting” a file just removes references to said file and is not truly deleted until it is overwritten by something else.

So if I wanted to remove the file completely, couldn’t I just execute

mv myfile.txt /temp/myfile.txt

(or move to external storage)

  • 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-05-29T07:53:15+00:00Added an answer on May 29, 2026 at 7:53 am

    No. that won’t help either.

    A move when going between file systems is really still just a “copy + rm” internally. The original storage location of the file on the “source” media is still there, just marked as available. A moving WITHIN a file system doesn’t touch the file bytes at all, it just updates the bookkeeping to say “file X is now in location Y”.

    To truly wipe a file, you must overwriteall of its bytes. And yet again, technology gets in the way of that – if you’re using a solid state storage medium, there is a VERY high chance that writing ‘garbage’ to the file won’t touch the actual transistors the file’s stored in, but actually get written somewhere completely different.

    For magnetic media, repeated overwriting with alternating 0x00, 0xFF, and random bytes will eventually totally nuke the file. For SSD/flash systems, it either has to offer a “secure erase” option, or you have to smash the chips into dust. For optical media, it’s even more complicated. -r media cannot be erased, only destroyed. for -rw, I don’t know how many repeated-write cycles are required to truly erase the bits.

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

Sidebar

Related Questions

Recently I'm doing some work on RTMP streaming, that is using Flowplayer to integrate
Problem: I have web server that was recently compromised. They targeted javascript files. They
I recently deployed my rails app on Heroku. In the process I accidentally deleted
Hi guys : I recently (accidentally) removed all folders/files from my .vim folder in
Recently, I started changing some of our applications to support MS SQL Server as
Recently, while working on a shared host, I accidentally changed the permissions of my
Recently someone stated that they thought all Creates should be CreateOrUpdates. Instinctively i thought
Recently I've noticed that on occasion I do not get a mayorship notification when
recently I started using storyboard and I've the following situation: I want to set
I recently ran up against a problem that challenged my programming abilities, and it

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.