• halfdane@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    3 hours ago

    I’m a little late to the party, but PATH should only consist of the directories, so it should look like this:

    export PATH=$PATH:/usr/sbin/

    • jokro@feddit.org
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      2 hours ago

      Also use “…”, i.e. export PATH="$PATH:.." so that it won’t break with whitespace in paths involved

      • halfdane@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        1 hour ago

        That’s true, although I thought you’re talking about including the dots into the path, which is absolutely not what anyone wants 😄