Background:

I think I messed up … Wanted to get a lot of files out of a nested folderstructure 3 levels deep and used mv /*/*/* ./ somewhere deep in my personal folders. I got a lot of errors and quick as I could stopped it. Now that folder is is messed up with a lot of stuff (see below) which I dont know the origin of. The good news: I have fairly recent backups

Questions:

  • Could they be from subdirectories in my home folder?
  • Could they be from subdirectories outside my home folder? Especially grubenv caught my eye.
  • Could it be potentially dangerous to reboot? I leave my PC on untill I know more.
  • Would it be possible to reverse the moving in some way, to put them back where they belong, even manually?

Any help greatly appreciated.

Files:

Sorry for the long list

0 1 10 10:1 10:125 10:126 10:127 10:130 10:183 10:224 10:228 10:229 10:231 … 116:8 116:9 … 13:81 … 8 81:0 81:1 81:2 81:3 9 arch_status attr autogroup by-diskseq by-id by-label by-partlabel by-partuuid by-path by-uuid cgroup cmdline comm coredump_filter cpu_resctrl_groups cpuset fd fdinfo fonts gid_map grubenv limits list.txt locale loginuid map_files maps mountinfo mounts net ns numa_maps nvme0n1p8_crypt oom_adj oom_score oom_score_adj projid_map sched schedstat sessionid setgroups smaps smaps_rollup stat statm status task timens_offsets timers timerslack_ns uid_map unicode.pf2 usb wchan x86_64-efi

    • Joël de BruijnOP
      link
      fedilink
      6
      edit-2
      23 hours ago

      Yeah, I see, command wildcard asterix being markdown bold. Original command:

          • @atzanteol@sh.itjust.works
            link
            fedilink
            English
            418 hours ago

            I once ran ‘chown -R root:root /’ in a misguided attempt to solve some permissions issues I was having. 0/10, do not recommend. It turns out a lot of system things aren’t root owned…

            Running a stupid command and learning from it is part of the learning process.

            • @johntash@eviltoast.org
              link
              fedilink
              English
              15 hours ago

              If it makes you feel better, I’ve dealt with so many servers where someone ran chmod -R 777 / thinking it’d solve all of their permission issues.

      • @mina86@lemmy.wtf
        link
        fedilink
        English
        318 hours ago

        What you have in title of the post, body of the post and in this screenshot all disagree with each other.

        • Joël de BruijnOP
          link
          fedilink
          118 hours ago

          Ah, keen eye, corrected the title and body text to match the screenshot. (From terminal history so I think thats what I actually ran)

      • @mina86@lemmy.wtf
        link
        fedilink
        English
        320 hours ago

        Use backtics to quote code fragments. Tripple backtics to block quote. You should be able to edit your post.