From the course: Unix Essential Training

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Setting the PATH variable

Setting the PATH variable - Unix Tutorial

From the course: Unix Essential Training

Start my 1-month free trial

Setting the PATH variable

- [Instructor] In this movie, we're going to learn about environment variables and how to set the PATH Variable. Environment variables are dynamic named values in Unix. And they're used by commands and applications. The fact that we can set them to different values means that they function a bit like settings for the Unix environment, and they can affect the way that commands and applications do their work. If we want to have them work differently, we can set different environment variables. Setting environment variable is very easy. We just set the name of the variable in all capital letters equal to something in quotes. It's a best practice to put export in front of it to ensure that the variable is available in the current running program, as well as any subprograms that might get launched. So for example, I could create a new environment variable called FULL_NAME, set equal to my name and export that. Now setting this…

Contents