2
rated 0 times
[
2]
[
0]
/ answers: 1 / hits: 3081
/ 2 Years ago, thu, may 13, 2021, 4:38:52
so I was trying to set JAVA_HOME variable and some how I ended up facing this error every time I want to use terminal
Command 'poweroff' is available in the following places
* /sbin/poweroff
* /usr/sbin/poweroff
The command could not be located because '/sbin:/usr/sbin' is not included in the
PATH environment variable.
This is most likely caused by the lack of administrative privileges associated with
your user account.
poweroff: command not found
I can fix it with this command:
export PATH="/usr/bin:$PATH"
but every time I open new terminal I face the error again and I have to use this command again.
I would appreciate it if you could help.
by the way I use Ubuntu 22.04.1 LTS
More From » bashrc