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