Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ Linux three ways to set environment variables     - Customize own small private Linux system (Linux)

- Install Ubuntu 14.04 and Windows 8 / 8.1 dual-boot in UEFI mode (Linux)

- Monitor traffic Linux Shell Edition (Programming)

- Fedora 20 Installation and Configuration (Linux)

- Thinking in Java study notes - initialization and cleanup (Programming)

- To disable the function by pressing Ctrl-Alt-Del to restart the system in RHEL / CentOS 5/6 (Linux)

- Linux --- process tracking (Linux)

- Linux data recovery software efficiently practical application extundelete (Linux)

- Linux performance monitoring and common commands Introduction (Linux)

- Linux system security Comments (Linux)

- SecureCRT session buffer size settings (Linux)

- Linux into single user mode to modify the administrator password (Linux)

- How to use the on-screen keyboard in Linux (Linux)

- Oracle 11g contraction table space error ORA-03297: file contains used data beyondrequested RESIZE value (Database)

- Examples of safety testing system notes for RedHat Linux (Linux)

- Use IP address spoofing Intrusion Prevention Firewall (Linux)

- Linux Operating System Security Management Experience (Linux)

- Linux System Tutorial: How to browse the Linux command line, weather forecast (Linux)

- CentOS terminal display Chinese (Linux)

- DDOS Attacks and Prevention (Linux)

  Linux three ways to set environment variables
  Add Date : 2017-04-13      
  1, In the Windows system, a lot of software installation is required to configure the environment variables, such as installation of jdk, if you do not configure the environment variables, run the javac command in non-software installation directory, the report will not find the file, similar errors.

2, what is the environment variable? Simply put, is to specify a directory and run the software, the program will look for relevant documents in accordance with the directory. Setting variables for the average person the most useful features is this: do not copy some dll files to the system directory, while the path of the system variable is a series of route search system dll file

In the Linux system, if you download and install the application, it is likely "command not found" prompt content appears when typing its name. If every time to the installation directory folder, find the executable file for the operation would be too cumbersome. This involves setting the environment variable path problem, and Path setting is an integral part of the custom environment variables under Linux

Linux are three ways to set environment variables:

If you want to join a path to $ PATH, you can do this as follows:

1, set up the console, not in favor of this approach, because he works only for the current shell, for a shell set is invalid:

$ PATH = "$ PATH": / NEW_PATH (closed shell Path will revert to the original path)

2, edit / etc / profile file, if your computer is only as developers keep pushing the use of this approach, since all users have the right to use the shell environment variables, it may give the system security issues. This is for all users, all of the shell

In the / etc / profile of the bottom add: export PATH = "$ PATH: / NEW_PATH"

3, modify bashrc files, this method is more secure, it can have permission to use these environmental variables to control user level, here is tied to a specific user, if you need to give a user permission to use these environment variables, you only you need to modify the .bashrc file their personal user home directory on it.

Add the following:

Export PATH = "$ PATH: / NEW_PATH"
- Create your own YUM repository (Linux)
- RMAN backup file is much larger than the size of the database Cause Analysis (Database)
- To create a problem by the statement date comparison of the difference between MySQL and Oracle (Database)
- Oracle PL / SQL based cursor (Database)
- 15 things to do after installing Ubuntu 15.04 Desktop (Linux)
- Linux System Getting Started Learning: rename multiple files in Linux (Linux)
- To install the iNode client on UbuntuKylin 13.10 (Linux)
- ARP Linux-related operations (Linux)
- Linux kernel programming parameter passing between modules and function calls (Programming)
- Java how to achieve bubble sort the problem Arraylist (Programming)
- Reset CentOS / RHEL root account password 7 (Linux)
- To create and manage virtual machines on Ubuntu Redhat (Linux)
- Connect to the Oracle Database Help class (Database)
- Android memory optimization of the optimal load Bitmap (Linux)
- Asynchronous communication mechanism between the Android source code analysis thread (Programming)
- Guide: Trickle restrict application bandwidth usage (Linux)
- Spring AOP for logging (Programming)
- CentOS7 build GlusterFS (Linux)
- Running into the site-wide HTTPS (Server)
- VMware virtual machine to install CentOS 6.2 (Linux)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.