• plantsmakemehappy@lemmy.zip
    link
    fedilink
    arrow-up
    16
    ·
    edit-2
    13 days ago

    You didn’t append this to your path, you just overwrote the whole value. You’ll need to use full 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
        4
        ·
        13 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
          2
          ·
          edit-2
          13 days ago

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