O'Reilly logo

SAMS Teach Yourself Unix in 10 Minutes by Robert Shimonski

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Environment Variables

Earlier in this book, we touched on the concept of environmental variables in Unix. In Lesson 14, “Shell Scripting Fundamentals,” variables used in the shell were discussed. To explain how environment variables are used, consider how your Unix system runs. Most of the programs are configured to run based on text files that help build the command into the environment for use. If you don't have a file, then most likely you will be setting a program up with an environmental variable. The environmental variable will essentially be where the program draws its essential configuration information from.

Environment variables are used by programs to pick up specific pieces of information that are needed when the program is run. For ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required