Under Linux, if you download and install an application, it is very likely that when you start it, you will get a "command not found" message when you type its name. If you go to the installation target folder every time and find the executable file It is too cumbersome to perform the operation. In this case, it involves the setting of the environment variable PATH, and the setting of PATH is also an integral part of customizing environment variables under Linux. Two methods of environment variable configuration: 1) Modify the /etc/profile file This method is recommended because all users' shells have access to these environment variables. The disadvantage is that it may cause security problems to the system. This is for all users, all shells;
It should be noted that: When setting system environment variables in /etc/profile, the path cannot end with "/", otherwise the entire PATH variable will be incorrect.
The difference between .bash_profile and .bashrc:
========================Set terminal login timeout================
Summarize This concludes this article about the summary of Linux environment variable configuration methods (the difference between .bash_profile and .bashrc). For more relevant Linux environment variable configuration content, please search 123WORDPRESS.COM's previous articles or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Using jQuery to implement the carousel effect
>>: Analysis of the usage of loop statements (WHILE, REPEAT and LOOP) in MySQL stored procedures
mysql basic data types Overview of common MySQL d...
CSS: Copy code The code is as follows: html,body{ ...
The information on Baidu is so diverse that it...
Preface Recently I found that my friend's met...
Time flies, and in just six days, 2013 will becom...
The previous article introduced the installation ...
Jupyter notebook is configured under the docker c...
The method of obtaining the position of the point...
This article shares with you a detailed tutorial ...
In fact, this is very simple. We add an a tag to ...
1. Background execution Generally, programs on Li...
Table of contents Why update the auto-increment i...
The process of installing MySQL database and conf...
According to Chinese custom, we are still celebra...
Nginx first decides which server{} block in the c...