• kevincox
    link
    fedilink
    arrow-up
    8
    ·
    3 years ago

    Everyone knows that the correct location is ~/.local/bin/

    • marmulak
      link
      fedilink
      arrow-up
      3
      arrow-down
      1
      ·
      3 years ago

      FreeBSD uses ~/bin/ which proves it’s correct

      • KSPAtlas
        link
        fedilink
        arrow-up
        2
        ·
        3 years ago

        FreeBSD also uses a serial init system which is horribly slow. Is that correct?

        • marmulak
          link
          fedilink
          arrow-up
          2
          ·
          3 years ago

          I don’t know but it boots faster than my Linux system…

  • adrianmalacoda
    link
    fedilink
    arrow-up
    6
    ·
    3 years ago

    As others have said it’s so the user can place their own executables on the PATH. Ubuntu supports this too, if you look in ~/.profile you will find this snippet

    # set PATH so it includes user's private bin if it exists
    if [ -d "$HOME/bin" ] ; then
        PATH="$HOME/bin:$PATH"
    fi
    

    I believe the current convention is to use ~/.local/bin for this purpose, and ~/bin is an older convention.

  • xarvos
    link
    fedilink
    arrow-up
    1
    ·
    3 years ago

    And there is no binary inside that folder

    • Ephera
      link
      fedilink
      arrow-up
      10
      ·
      edit-2
      3 years ago

      That folder is on the $PATH, so you can place an executable/script into there (or symlink to an executable), and then you can directly run that executable from your shell, with just the file name as the command name (not anymore the whole path).

      • xarvos
        link
        fedilink
        arrow-up
        1
        ·
        3 years ago

        There is already .local/bin for that purpose.

        • Ephera
          link
          fedilink
          arrow-up
          5
          ·
          3 years ago

          That’s not standardized across distros…