Tag Archives: -bash: ls: command not found

-bash: ls: command not found [How to Solve]

reason: when setting environment variables, the edit profile file is not written correctly, resulting in LS and other commands not being recognized on the command line. Maybe we are writing Java_ Path
was modified when home and other environment paths were created

solution:
export path =/usr/local/SBIN/usr/local/bin/SBIN/bin/usr/SBIN/usr/bin/root/bin