Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Linux environment variable configuration     - MySQL 5.7.10 source code for the latest version of the installation process in detail (Database)

- VMware virtual machines to install virt-manager unable to connect to libvirt's approach (Linux)

- Use Docker containers (Linux)

- VirtualBox - Linux system virtual machine shared folders (Linux)

- PHP CURL get cookies simulated login (Database)

- Ubuntu Server security risk checks (Linux)

- Ubuntu under shadowsocks configuration instructions (Linux)

- ORA-12547: TNS: lost contact error Solution (Database)

- Java abstract class instantiation (Programming)

- DM9000 timing settings (Programming)

- The FreeBSD zfs: failed with error 6 Error Resolution (Linux)

- Linux operating system set up to effectively prevent ARP attacks (Linux)

- NFS installation process under the CentOS (Linux)

- Examples of RAID levels and achieve Operational Details (Linux)

- Sublime Text 3 shortcuts summary (Linux)

- Ubuntu 14.04 forget solution root password (Linux)

- ORA-00020: No more process state objects available (Database)

- TL-WR703N to install OpenWrt process notes (Linux)

- Optimized to minimize the installation of CentOS 5.8 (Linux)

- C ++ based socket communication TCP and UDP (Programming)

 
         
  Linux environment variable configuration
     
  Add Date : 2018-11-21      
         
         
         
  Linux environment, the user through the shell, the system will enable users early environment variables, such as the system of public resource path: path, include, bin and other directories. Shell mode, execute export, view the user environment variables, echo $ key query an environment variable.

Set environment variables, there are two ways, into a temporary setting, and permanently set.
a. Temporary settings (with immediate effect)
shell mode execution:
export PATH = "$ PATH: / opt / au1200_rm / build_tools / bin"

b. Permanent settings
# End of the line an additional export ...
vi / etc / profile
export PATH = "$ PATH: / opt / au1200_rm / build_tools / bin"

vi /root/.bashrc
export PATH = "$ PATH: / opt / au1200_rm / build_tools / bin"

The above can be seen in several ways, set the environment variable in the process is the same. shell mode, direct execution of the script, the environment variables into memory so that with immediate effect, the other shell environment can not use this environment variable (isolation). Permanently set, append the / etc / profile, /root/.bashrc end of the file export key = "value" of these two files when a user opens a shell client, automatically, which takes precedence over /root/.bashrc / etc / profile. Do the following test:

vi / etc / profile
export TEST = "test1"

vi /root/.bashrc
export TEST = "$ TEST: test2"

Enter the export, the results in the new shell mode:
declare -x TEST = "test1: test2"

Therefore, / etc / profile script prior to the beginning of /root/.bashrc make, which can cover the former.
     
         
         
         
  More:      
 
- Different between Linux file path and the windows (Linux)
- PL / SQL data types (Database)
- How to install Docker and basic usage on Ubuntu 15.04 (Server)
- Java threads and thread pools (Programming)
- WordPress blog installation Redis Cache (Server)
- Linux system performance analysis and top command ps.pstree Comments (Linux)
- Using FTPClient to upload and download files in Java (Programming)
- Binary search -Java achieve (Programming)
- Linux System Getting Started Learning: On Linux how to convert text files to PDF (Linux)
- The Java ThreadLocal (Programming)
- MySQL 5.6 master-slave replication configuration (Database)
- Log device files under Linux - logger (Linux)
- Source encountered problems and solutions when installing SaltStack (Server)
- Linux smart small switch rfkill (Linux)
- You really do need to know a variety of programming languages (Programming)
- jQuery plugin dynamic label generation (Linux)
- Java to create a table in the database SYBase (Database)
- Let's Encrypt with semiautomatic into Nginx configuration https (Server)
- Shell Programming Regular Expressions (Programming)
- Linux network security probing tools Hping2 (Linux)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.