I am facing issues with linux command execution:
root@PGStaging:/etc# ls
Command 'ls' is available in '/bin/ls'
The command could not be located because '/bin' is not included in the PATH environment variable.
ls: command not found
root@PGStaging:~# ps
Command 'ps' is available in '/bin/ps'
The command could not be located because '/bin' is not included in the PATH environment variable.
ps: command not found
How to solve above issues?
.bashrc
file, and addPATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/bin:/usr/games"
to the end of the file and see what happens – Qazi Fahim Farhan Nov 18 '19 at 12:46