Home >Operation and Maintenance >Linux Operation and Maintenance >The command cannot be used in linux

The command cannot be used in linux

王林
王林Original
2020-02-15 15:32:472718browse

The command cannot be used in linux

Problem analysis:

The occurrence of this problem indicates that there is a problem with your /etc/profile configuration, usually because there is a problem with the path configuration. Eliminate errors in the added content, then restart a new window and execute the source /etc/profile command to solve the problem.

When all commands cannot be used, vi will also lose its function. At this time, you need to use the absolute path of the shell command to call the command.

(Related learning video sharing: linux video tutorial)

The specific method is as follows:

# 编辑profile文件
/usr/bin/vim /etc/profile

Then execute the following command in a new window:

source /etc/profile

Recommended related articles and tutorials: linux tutorial

The above is the detailed content of The command cannot be used in linux. 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