13,420
edits
Changes
→Using Variables in Shell Scripts
'''Environment Variables'''
[[Image:environment.png|thumb|right|500px|Examples of using '''Environment''' and '''User Defined''' variables.]]Shell '''environment variables''' shape the working environment whenever you are logged in Common shell. Some of these variables are displayed via Linux commands in the diagram displayed on the right-side.<br><br>You can issue the pipeline command '''<span style="font-family:courier;font-weight:bold">set | more'''</span><br>to view all variables.<br><br>Placing a dollar sign ('''$''') prior to the variable name will cause the variable to expand to the value contained in the variable.