All commands like LS and VI are invalidated under Linux

Source: Internet
Author: User

Problem Description: Due to my misoperation, the Red Hat Linux environment variables have changed, if the general environment variables have changed can be found on the Internet many solutions, but the hero is on the Linux system to cover the environment variables, such as

650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M02/8E/0A/wKiom1iz4cCCGs-mAAAhWYGXEpM676.png-wh_500x0-wm_ 3-wmp_4-s_755218499.png "title=" xrgkm597~ $G) 82B ' k7xes}d.png "alt=" Wkiom1iz4cccgs-maaahwygxepm676.png-wh_50 "/>


When you perform the Echo $PATH view global variables, the global variables shown are/opt/soft/r-3.3.2


Solution:

    1. If this is the error I made above, then in the/root/.bash_profile folder can see the environment variable, the previous addition to remove it, I have removed the file after

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M00/8E/0A/wKiom1iz4zHxBHdGAAB9KHNz_lI421.png-wh_500x0-wm_ 3-wmp_4-s_1218812757.png "title=" [7h_8%c) f{ixtehr8iqq) 8m.png "alt=" wkiom1iz4zhxbhdgaab9khnz_li421.png-wh_50 "/ >

2. If it is not a serious situation, you can modify it on Etc/profile and ETC/BASHRC,/ROOT/.BASHRC files.

This article is from the "8812323" blog, please be sure to keep this source http://8822323.blog.51cto.com/8812323/1901709

All commands like LS and VI are invalidated under Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.