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

Linux system prompts that the command cannot be found

王林
Release: 2019-11-06 10:24:11
Original
8775 people have browsed it

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
Copy after login

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
Copy after login

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template