• plantsmakemehappy@lemmy.zip
    link
    fedilink
    arrow-up
    14
    ·
    edit-2
    18 hours ago

    You didn’t append this to your path, you just overwrote the whole value. You’ll need to use pull paths to commands to edit the file and fix it like export PATH="$PATH:/the/new/path/to/add"

      • 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 😄