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
npm uninstall sudo npm uninstall npm -g If you en...
MySQL green version setting code, and 1067 error ...
Table of contents 1. Date 2. RegExp 3. Original p...
Preface The master-slave replication relationship...
MYSQL commonly used query commands: mysql> sel...
clip-path CSS properties use clipping to create t...
Put your own web project in the webapps directory...
This article example shares the specific code of ...
Table of contents 1. Usage of DATETIME and TIMEST...
Preface Recently, during an interview, I was aske...
background Sometimes we need to get the creation ...
Table of contents 1. Introduction 2. Use 1. Diffe...
Quickstart Guide The Foreman installer is a colle...
The format is simple: proxy_pass URL; The URL inc...
Table of contents Tomcat Introduction Tomcat depl...