• itsjustachairmary@lemmy.world
    link
    fedilink
    arrow-up
    28
    ·
    1 month ago

    I wanted to remove an Adobe file because it wouldn’t let me uninstall Adobe through the program management. It said it was being used. By explorer apparently. Checked online, all I had to do was rename the file, then delete it. Worked. But it’s so dumb.

    • far_university1990@reddthat.com
      link
      fedilink
      arrow-up
      3
      arrow-down
      1
      ·
      1 month ago

      Btw this also method to prevent file/dir be automatic created: for dir make file with same name, for file other way.

      Usually rename only replace other file, not dir. And if path exist but file, cannot open as dir, but also not create.

      • scutiger@lemmy.world
        link
        fedilink
        arrow-up
        10
        ·
        1 month ago

        This was how you could prevent Cortana and some other stuff from being automatically reinstalled when Windows forced if. Uninstall the app via appx, or just delete the folder instead if it’s not in use, and then replace it with a file with the same name so it can’t remake the folder.

        • tempest@lemmy.ca
          link
          fedilink
          arrow-up
          5
          ·
          1 month ago

          Cortana being reinstalled after I “deleted” it was the impetus for me to swap to Linux in the first place.

          That and I was a CS student and our assignments had to run on Solaris which is closer to Linux than Windows.

            • tempest@lemmy.ca
              link
              fedilink
              arrow-up
              2
              ·
              1 month ago

              No Canada, and even then it was a bit of a relic.

              It was slowly being replaced by vagrant in some courses and I think after I left I’m pretty sure they replaced whatever hardware it was on with something running Linux.

              I remember it was mildly annoying because the Java compiler on it was a bit old and different in some way, though I can’t really remember how.

              • Victor@lemmy.world
                link
                fedilink
                arrow-up
                1
                ·
                1 month ago

                Alright. 😄 We also had a couple Solaris servers at my uni. They had the names “itchy” and “scratchy”.

                • tempest@lemmy.ca
                  link
                  fedilink
                  arrow-up
                  2
                  ·
                  1 month ago

                  Ours didn’t have fun names., or at least not ones that were exposed to students. I honestly didn’t know too much about about them but I suspect at the time Sparc systems were one of the larger machines compute wise you could get outside of mainframes. So very suitable for a university multiuser setup.

    • tal@lemmy.today
      link
      fedilink
      English
      arrow-up
      7
      ·
      1 month ago

      You almost always want to pair lsof with -n, as by default, it (slowly) lists a bunch of things that require name resolution.

      $ time lsof >/dev/null
      
      real    2m12.352s
      user    0m0.499s
      sys     0m1.217s
      $ time lsof -n >/dev/null
      
      real    0m1.600s
      user    0m0.523s
      sys     0m1.029s
      $
      
  • SkaveRat@discuss.tchncs.de
    link
    fedilink
    arrow-up
    21
    ·
    1 month ago

    meanwhile, me getting annoyed that a network mount whose endpoint is not available anymore just completely refuses to unmount, no matter what I do

  • [object Object]@lemmy.ca
    link
    fedilink
    arrow-up
    16
    ·
    1 month ago

    At some point macOS introduced a bug that ejecting a usb drive that is open in the file viewer used to eject it doesn’t work

  • Supercrunchy@programming.dev
    link
    fedilink
    arrow-up
    3
    ·
    1 month ago

    The trick for windows is to rename the file and kill the process that’s using it / reboot (if it’s some unkillable service). The service won’t then be able to find the file after reatarting and you can delete the renamed copy.

    On linux this whole thing is done automatically by the OS: if a file is open and you delete it, it will disappear from the folder but its data won’t actually be deleted from the disk until it’s closed by every program. Some programs even use this trick to create invisible temporary files to offload some data from RAM to disk!

  • MrKoyun@lemmy.world
    link
    fedilink
    arrow-up
    3
    arrow-down
    1
    ·
    edit-2
    1 month ago

    the windows command system is so dumb and unintuitive. what takes like a command and 2 arguments on Windows takes 3 times the effort and an unnecessarily long command syntax