Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Question I moved a file through the terminal to unknown location


    Hello, I'm pretty new to Linux so I don't entirely sure how to use the tools and the terminal in the OS.
    I'm using Kali Linux and I accidentally moved the SAM file of my computer that located at root/Media/Windows/Windows/System32/config/SAM
    to an incorrect path, I tried to move it to Desktop but I accidentally typed in the terminal
    Code:
    mv SAM Desktio
    which suppose to move it to a folder named "Desktio" the problem is that such a folder don't exist and now my windows don't start because it's missing the SAM file and I don't know where it is.
    Does somebody know where I moved the SAM file?

  2. #2
    Linux User
    Join Date
    Dec 2017
    Location
    Argentina
    Posts
    271
    In what directory did you type this?

    I suggest you read the "mv" man page to understand the syntax.

    If you were in /roo/Media/... Then what happened was that you renamed SAM to Desktio. Changing to that directory and typing

    Code:
    mv Desktio SAM
    should fix the issue.

    Sent from my Moto G Play using Tapatalk

  3. #3
    Quote Originally Posted by CarterCox View Post
    In what directory did you type this?

    I suggest you read the "mv" man page to understand the syntax.

    If you were in /roo/Media/... Then what happened was that you renamed SAM to Desktio. Changing to that directory and typing

    Code:
    mv Desktio SAM
    should fix the issue.

    Sent from my Moto G Play using Tapatalk
    Ok, I'll check if I indeed renamed the file but anyway,
    I was at /root/Media/Windows/Windows/System32/config directory while I was running this command.
    Thanks for the help.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux User
    Join Date
    Dec 2017
    Location
    Argentina
    Posts
    271
    -->
    If you were then most likely that's what happened.

    Sent from my Moto G Play using Tapatalk

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •