This article is a solution to the Linux system prompt that the command cannot be found under ordinary users.
It is preferred to enter the following content in the terminal:
vi ~/.bash_profile
The following content appears:
# .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs export PATH
At this time, just add your own path in front of the export PATH, for example My modifications are as follows:
PATH=$PATH:$HOME/bin:/sbin:/usr/bin:/usr/sbin
Recommended tutorial: linux tutorial
The above is the detailed content of Linux system prompts that the command cannot be found. For more information, please follow other related articles on the PHP Chinese website!