no command are working after i did this. i can still use the desktop and yes i fell silly

Acer Aspire ES1-533 Debian os

thanks for help :)

https://www.devopsroles.com/fix-grub-install-command-not-found-in-linux/

export PATH=/usr/sbin/grub-install/grub-install :/usr/local/sbin

source ~/.bashrc

you are viewing a single comment's thread
view the rest of the comments
[–] 15 points 7 months ago* (1 child)

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"

  • source
  • hideshow 2 child comments
  • [–] [S] 2 points 7 months ago (1 child)

    should it look like this export PATH=$PATH:/usr/sbin/grub-install

    and should i edit the ~/.bashrc

  • source
  • parent
  • hideshow 2 child comments
  • [–] 4 points 7 months ago (1 child)

    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/

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 7 months ago* (2 children)

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

  • source
  • parent
  • hideshow 4 child comments