Understanding Linux and Unix Environmental Variables

Posted by dtevault on Mar 9, 2026 1:33 AM EDT
BeginLinux Guru; By Donald A. Tevault
Mail this story
Print this story

Variables are an important part of shell scripting, just as they are for every programming language. Simply put, a variable defines a location in system memory that holds a value for later use. This value can be a text string, a number, a filename, or the output of a command. The nice thing about variables is that you can assign a value to one once, and then re-use that value as many times as you like by simply referencing the name of the variable. There are several types of variables, and in this post we'll look at environmental variables.

Full Story

  Nav
» Read more about: Story Type: Tutorial; Groups: Linux

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.