• ArmchairAce1944@discuss.online
    link
    fedilink
    arrow-up
    7
    ·
    7 hours ago

    I ran into that same issue. When case sensitive stuff hits for rhe first time.

    Also I love linux’s cmd line. I grew up on MS-DOS and I feel like the computer hacker that I always dreamed I would be.

  • sircac@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    5 hours ago

    My home is so populated of symlinks of similar namings: capital leters, other languages,…

  • Frezik@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    9
    ·
    11 hours ago

    I once got into it with a dev who had written an Arduino library. I reported a compile bug, and he said my environment must be broken. In fact, it was because the headers in the library were set for #include 'arduino.h', not Arduino.h. Which would work fine on the default settings for Windows and Mac, but not Linux.

      • palordrolap@fedia.io
        link
        fedilink
        arrow-up
        2
        ·
        5 hours ago

        This wouldn’t work.

        Well, it kind of would if you did alias downloads="cd Downloads" but then you wouldn’t cd downloads you’d just type downloads on its own.

        As other comments here already point out, you can do it with a symlink if you really want it. i.e. ln -s Downloads downloads, then you can cd downloads.

        Nowhere near the same as making everything effectively case insensitive, but it works for the odd one that you always mistype.

        There are ways to patch command completion and/or write a variant cd that does the job intelligently too, but those are harder work.

  • nocturne@slrpnk.net
    link
    fedilink
    arrow-up
    14
    ·
    19 hours ago

    So I realize this is a joke, but, and I am legit asking, isn’t there a command where you can tell Linux to treat Downloads and downloads as the same thing?

    • angband@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      5 hours ago

      alias downloads=“cd ~/Downloads”

      edit: but if you want to get freaky in bash, alias downloads=“pushd ~/Downloads”

      probably works in some other shells too

      • nocturne@slrpnk.net
        link
        fedilink
        arrow-up
        3
        ·
        8 hours ago

        Thank you. I thought I remembered using something like this back when I ran OpenSUSE and redhat years ago.

    • overload@sopuli.xyz
      link
      fedilink
      arrow-up
      5
      ·
      12 hours ago

      I’ve kind of just accepted this is one of the differences between Linux and Windows that we as users need to understand is OS-specific.

    • communism@lemmy.ml
      link
      fedilink
      arrow-up
      5
      arrow-down
      1
      ·
      12 hours ago

      I guess you could use an ntfs filesystem… Or if you just mean for autocompletion, I’ve found that if there’s no completions matching e.g. readme then zsh will autocomplete README. But I’d say case sensitivity of files is a feature not a bug. People use it to make files starting with a capital letter appear at the top of a list of files in a directory.

    • TVA@thebrainbin.org
      link
      fedilink
      arrow-up
      28
      ·
      19 hours ago

      Maybe, but there is always the possibility that Downloads and downloads both exist in that path and in a case sensitive file system, those are going to be two completely different directories, so adding that obfuscation on top might wind up biting you later.

      • jonathan@piefed.social
        link
        fedilink
        English
        arrow-up
        8
        ·
        15 hours ago

        That’s where case-insensitive tab complete comes in. You can still tab through downloads and Downloads, and it doesn’t impact anything else.

        • TVA@thebrainbin.org
          link
          fedilink
          arrow-up
          3
          ·
          11 hours ago

          Absolutely! That’s probably the best compromise to make it easier without risking something breaking or not working as expected

    • jdnewmil@lemmy.ca
      link
      fedilink
      arrow-up
      12
      ·
      19 hours ago

      Sorta. If you put a FAT32 disk or sd card into a Linux system and mount it, it will ignore case because of the way the filenames are stored in that filesystem. However, there are a lot of important features you lose working on filesystems like that, so really it should be reserved for sneakernet with other operating systems.

    • KickMeElmo@sopuli.xyz
      link
      fedilink
      arrow-up
      6
      arrow-down
      2
      ·
      19 hours ago

      You can’t hardlink directories on a standard *nix filesystem. NTFS has that in the form of Junctions and it’s likely made more messes than it has prevented.

    • ViaFedi@lemmy.ml
      link
      fedilink
      arrow-up
      1
      arrow-down
      4
      ·
      edit-2
      17 hours ago

      $ ln -s ~/Downloads downloads

      ln -s is a symlink. You’re better off editing user-dirs.dirs anyway