Whenever I open a new bash terminal it begins with: bash: #: command not found bash: #:…
- User
Whenever I open a new bash terminal it begins with: bash: #: command not found bash: #: command not found [william@william-OS ~]$
When I try to run grub-mkconfig, it's complaining about: /etc/default/grub: line 1: GRUB_DEFAULT=1: command not found
All the other functions seem to work fine -at first glance-
Assistant
It appears that your $PATH environment variable is not set correctly. This can cause problems with running certain programs, such as grub-mkconfig.
To fix this, open the /etc/profile file in a text editor and add the following line to the end of the file:
export PATH=$PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
Once you have saved the file, close it and open a new terminal window. You should now be able to run grub-mkconfig without any problems.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.