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
Opening a new terminal should work, since those commands you posted affect just the running shell. If not, you broke something else.
Edit: Assuming you pit that export line into
~/.bashrc, just remove it. You might need to enable showing hidden files in your file explorer, them edit it as a text file.was able to remove the edit i made and commands are work
big thanks :)
Try opening a new terminal. If the commands don’t work, type “export PATH=/usr/bin” not quotes and try again and fix what you did.
sorry forgot i edited the .bashrc file with
export PATH=/usr/sbin/grub-install/grub-install :/usr/local/sbinthen ran
source ~/.bashrcThere should not be a space between the entries in $PATH, just
:. Plus, this is syntactically wrong:exportallows to set multiple variables separated by space, likeexport A=a B=b. You’re essentially doingexport A=a Bwhich makes it ignore the B part as it is nonsensical.Also path should contain directories, and
/usr/sbin/grub-install/grub-installisn’t a directory. In fact it almost certainly does not exist at all.Path should contain at least
/usr/bin. That’s why no command works, they’re all in/usr/bin. The shell looks through all the directories in $PATH (separated by:) to find commands.part of page i made mistake
Adding Directory to PATH:
https://www.devopsroles.com/fix-grub-install-command-not-found-in-linux/

