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
When installing in MySQL 8.0.16, some errors may ...
This article shares the installation and configur...
Preface In the application of database, programme...
Table of contents Directory Structure bin directo...
[Solution 1: padding implementation] principle: I...
The party that creates a new connection is equiva...
I use Navicat as my database tool. Others are sim...
Linux system version: CentOS7.4 MySQL version: 5....
This article introduces the sample code of advanc...
Table of contents 1. Introduction to built-in obj...
For example, users who need screen reading softwar...
Native JS implements the click number game for yo...
Defining the type of data fields in MySQL is very...
1. Introduction ● Random writing will cause the h...
1. Check the MySQL database encoding mysql -u use...