• @unmagical@lemmy.ml
    link
    fedilink
    74
    edit-2
    9 months ago

    NEVER run a command you don’t know the purpose of. That being said, “sfc” stands for “System File Checker.” It is a utility that can help restore corrupted windows files. sfc /scannow checks your protected files and restores corrupted files from a local cache. The process can take some time and you MUST let it finish it’s entirely.

    In conclusion, this command is generally safe to run.

    • @Prunebutt@slrpnk.net
      link
      fedilink
      34
      edit-2
      9 months ago

      NEVER run a command you don’t know the purpose of

      lol. Someone never followed along in a linux tutorial. /j

      • @unmagical@lemmy.ml
        link
        fedilink
        89 months ago

        Well, I try to understand why something is included. I’ve run arch for years (BTW), though my current computers are running Fedora and Debian. I won’t say I know everything about Linux or even installing it or booting it, but I do know more than I would if I just followed step by step.

    • @Aquila@sh.itjust.works
      link
      fedilink
      249 months ago

      Rm stands for remove

      -fr stands for the French language

      / stands for your entire system

      Don’t trust random internet strangers either

    • Ephera
      link
      fedilink
      199 months ago

      Does it also remove the French language pack?

  • @BakedCatboy@lemmy.ml
    link
    fedilink
    English
    119 months ago

    Also add DISM to that - if it’s corrupted it could cause you to be unable to install windows updates.

    DISM /Online /Cleanup-Image /CheckHealth

    It’s also possible that fixing it may require the original windows installation media matching your windows version build number - which means if you’ve since installed a major windows update there may not be an available installation iso that meets the requirement. Happened to me and I was lucky enough to coax an iso out of the windows installer download page that satisfied the repair tool (oddly enough downloading an iso using the Windows Media creation tool didn’t work, but spoofing Linux on the page to directly download an iso gave me a different iso that worked)

    These are the things I do to maintain my last windows machine.

  • @saigot@lemmy.ca
    link
    fedilink
    29 months ago

    If sfc is finding anything with any regularity then your hard drive is probably failing (or maybe malware).