What should I do if the Shell command cannot be used after the Linux system is installed?

  
                

After installing the Linux system, I suddenly found that the shell command could not be used. I believe many people have encountered such problems. Some commands cannot be used. Some commands cannot be used, such as ifconfig, shutdown, etc. Let me introduce the solution that the shell command cannot be used after the Linux system is installed.

The essential problem: Open the Shell command

Solution:

/profile file added to the end in /etc: [plain] view plaincopyprint?

export PATH=$PATH:/sbin

export PATH=$PATH:/sbin file is modified and kept, run: [plain] view plaincopyprint?

source /etc/profile

source /etc/profileOK! The modification action takes effect immediately ……

The above is an introduction to the solution that Linux can't use the shell command. If you encounter problems that the shell command can't use, you can try to solve it by using the method described in this article.

Copyright © Windows knowledge All Rights Reserved