How to view linux environment variables

王林
Release: 2020-02-15 13:57:20
Original
3540 people have browsed it

How to view linux environment variables

First execute the following command:

[root@zcwyou ~]# echo $PATH
Copy after login

The output content is as follows:

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
Copy after login

(Free learning video sharing: linux video tutorial)

If there are two executable files with the same name in two different directories, then the shell will run the directory located in the environment variable included in the PATH, you can use the ¨C2C or ¨C3C command: ¨G0G, the output result is similar to the following:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin

If in two different If there are two executable files with the same name in a directory, the shell will run the file located in the first directory in the PATH environment variable.

How to view linux environment variables

Related tutorial recommendations: linux tutorial

The above is the detailed content of How to view linux environment variables. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template