I know there is $USER, $HOME, $PATH, etc.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & 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.
There are plenty: DBUS_SESSION_BUS_ADDRESS, XAUTHORITY, GDM_LANG, etc. You can view all your environment variables with the
envcommand – type it in inside a terminal.As far as I know, there’s no limitations on environment variables, they can be of any length, and anything can create them and add them to the environment (using
export, as you may have seen). Conceptually, environment variables act as “global variables” that are shared among all programs running in a terminal.