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:
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