• halfdane@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      17 days 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
        0
        ·
        edit-2
        17 days 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
          0
          ·
          17 days ago

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