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
Table of contents plan Install Dependencies Intro...
1. Some problems encountered I remember when we w...
Table of contents Preface Related Materials Vue p...
1. Introduction By enabling the slow query log, M...
I believe everyone has played scratch tickets. Wh...
Table of contents 1. Vue initialization vue entry...
Web forms are the primary communication channel b...
1. Going around in circles After going around in ...
Table of contents DML statements 1. Insert record...
This article example shares the specific code of ...
Preface Nginx 's built-in module supports lim...
Preface A requirement I had previously made, to s...
1. Docker imports local images Sometimes we copy ...
1. Official Introduction grep is a commonly used ...
Table of contents 1. Download MySQL 1.1 Download ...