Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What does path mean in linux

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly explains "what does path refer to in linux". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "what does path mean in linux"?

In linux, path means environment variable. Environment variable generally refers to the operating system specified operating system operating environment parameters, equivalent to a pointer, want to see the value of the variable need to add "$", use the "echo $PATH" command to view the current environment variable.

The operating environment of this tutorial: linux7.3 system, Dell G3 computer.

What does path mean in linux

PATH is an environment variable. You can view the current environment variable by using the command echo $PATH. If you need to modify it, you can append it later. For example, if you want to add / etc/apache2/bin as an environment variable, you can write:

PATH=$PATH;/etc/apache2/bin

And then enter the car.

1.1 meaning of environmental variables

Environment variables generally refer to some parameters in the operating system that specify the operating system environment. It is equivalent to a pointer, and to see the value of a variable, you need to add "$".

1.2 Classification of environmental variables

1.2.1 according to the scope of action

Variables in Linux can be divided into environment variables and local variables:

1) Environment variables: equivalent to global variables, exist in all Shell and have inheritance

2) Local variables: equivalent to local variables only exist in the current Shell, local variables contain environment variables, and non-environment variables do not have inheritance.

1.2.2 by life cycle

1) permanent: the configuration file needs to be modified and the variable takes effect permanently.

2) temporarily: use export definition to disable Shell.

At this point, I believe you have a deeper understanding of "what path refers to in linux". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report