How to solve command could not be located because '/bin' is not included in the path environment variable - Cloud Network

Networking | Support | Tricks | Troubleshoot | Tips

Buymecoffe

Buy Me A Coffee

Wednesday, June 10, 2020

How to solve command could not be located because '/bin' is not included in the path environment variable

ERROR
command could not be located because '/bin' is not included in the path environment variable


SOLUTION 1
cat /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"

ls -l /etc/environment
-rw-r--r-- 1 root root 79 2010-03-16 14:44 /etc/environment

JUST TYPE
export PATH=/usr/bin:/bin

=========================================
SOLUTION 2
sudo nano ~/.bashrc
CP & PST AT LAST LINE OR BOTTOM
export PATH=/usr/bin:$PATH

source ~/.bashrc
==========================================