In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article is about how to modify the environment variables of linux. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Method: 1, execute the "export PATH=$PATH:/usr/local/MATLAB/R2013b/bin" command can be temporarily modified; 2, execute the "gedit / etc/profile" command and log out of the linux, you can permanently modify the linux environment variable.
The operating environment of this tutorial: linux7.3 system, Dell G3 computer.
How to modify the environment variables of linux
Temporary modification of environment variables
Open the Linux terminal command window and enter the following command:
Export PATH=$PATH:/usr/local/MATLAB/R2013b/bin
To verify that the modification is successful, you can continue to enter the command eport to view it. In the following figure, you can see the environment variables that have been successfully added to matlab.
After the above modification, if you exit the terminal and reopen to view the environment variables again, you will find that the environment variables added above have disappeared again. That is, it only temporarily modifies the environment variables.
Permanently modify environment variables
If you want the environment variable to take effect permanently, you can modify either of the following two files:
1 / etc/profile
2 .bash _ profile
Where / etc/profile is a global environment variable that takes effect for all users, while .bash _ profile is enabled only for the current user.
enter commands:
Gedit / etc/profile Open the profile file and add the following statement, save and exit gedit after the input is complete
After the above operation is completed, you need to log out of Linux for the environment variable setting to take effect.
Thank you for reading! This is the end of this article on "how to modify the environmental variables of linux". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.