Home >Operation and Maintenance >Linux Operation and Maintenance >What to do if Linux does not support all commands

What to do if Linux does not support all commands

藏色散人
藏色散人Original
2020-02-04 09:31:563108browse

What to do if Linux does not support all commands

What should I do if Linux does not support all commands? Solve the problem that all Linux commands cannot be used

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 source /etc/profile to solve the problem.

Recommended: "Linux Tutorial"

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.

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

Then execute in a new window

source /etc/profile

The above is the detailed content of What to do if Linux does not support all commands. 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