The openeuler server ls and ll commands report an error command not found...

Execute the ls and ll commands on the openeuler server and report an error command not found...

 Probably the problem caused by system environment variables.

This happened after I installed redis whether it was not installed successfully. Editing the profile file is not written correctly, resulting in the inability to recognize commands such as ls and ll on the command line.

Reset the environment variable.

export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

After execution.

 The ll command is ready to use.

Or add the above content to /etc/profile

Execute source /etc/profile.

Guess you like

Origin blog.csdn.net/wochunyang/article/details/132235194