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 are the commands for the Linux system to view environment variables

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you what the Linux system to view environmental variables commands, I believe that most people do not know much, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

View of environment variabl

1. Use the echo command to view a single environment variable. For example:

Echo`` $PATH2. Use env to view all environment variables. For example:

Env3. Use set to view all locally defined environment variables.

Common environment variables:

PATH determines in which directories shell will look for commands or programs.

HOME current user home directory

Number of HISTSIZE history records

Login name of the current user of LOGNAME

HOSTNAME refers to the name of the host

SHELL current user Shell type

LANGUGE language-related environment variable, which can be modified by multiple languages

Email storage directory of the current user of MAIL

PS1 `basic prompt, for `root` users is` # `, for ordinary users is above` $is all the content of this article "what are the commands for Linux system to check environment variables?" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

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

Development

Wechat

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

12
Report