Home  >  Article  >  Operation and Maintenance  >  Linux system prompts that the command cannot be found

Linux system prompts that the command cannot be found

王林
王林Original
2019-11-06 10:24:118692browse

Linux system prompts that the command cannot be found

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn