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 the errors in the added content, then restart a new window and execute source /etc/profile to solve the problem. When all commands are disabled, vi becomes useless. At this time, you need to use the absolute path of the shell command to call the command. # Edit the profile file /usr/bin/vim /etc/profile Then execute in a new window source /etc/profile All linux commands cannot be used When configuring nginx, all linux commands cannot be used after the error export This problem occurs because the system's environment variables are not configured correctly. There are many reasons for this, such as system upgrades, improper operations, etc., which cause the environment variables to be overwritten and modified. There are two ways to solve it. First: Enter the following directly in the Linux command line interface and press Enter (import environment variables and the storage address of common shell commands): export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin Second: If all system commands cannot be used, you can also use the absolute command vi to open the profile Add the environment variable address in the system configuration file export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin The above is the result of the editor combining multiple articles. I hope it can help everyone. You may also be interested in:
|
<<: Solution to the Multiple primary key defined error in MySQL
>>: Use Angular CDK to implement a Service pop-up Toast component function
Table of contents 1. When the mouse passes over t...
How to view linux files Command to view file cont...
Is it the effect below? If so, please continue re...
background: Since the company's projects seem...
This article example shares the specific code of ...
1.html part Copy code The code is as follows: <...
In actual projects, the database needs to be back...
This article example shares the specific code of ...
Table of contents Overview 1. Dependency Injectio...
cause When executing the docker script, an error ...
Table of contents 1. Deploy consul cluster 1. Pre...
The default time type (datetime and timestamp) in...
1. Introduction When writing animation effects fo...
Because if there is no forward slash at the end of...
1. Introduction to LVM When we manage Linux disks...