How To Check The Environment Variables In Linux?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1. Enter the command “printenv” in the terminal to view all the environment variables.
2. Enter “echo $VARIABLE_NAME” to view a specific environment variable.
3. Enter “env” to view all the environment variables in a list.
4. Enter “set” to view all the variables that are set in the current shell.