Setting the PATH variable


show more Setting the PATH variable provides you with in-depth training on IT. Taught by Kevin Skoglund as part of the Unix for Mac OS X Users show less
please wait ...

Setting the PATH variable

We first took a look at the path variable back in Chapter 5. You can jump back there if you need a quick refresher. Path is a colon delimited list of file paths that Unix uses when it's trying to locate a command that you want it to run. And we can take a look at that with echo $PATH. There you see each of the paths that it's going to check in. For example, /usr/bin and then a colon followed by the next path /bin and then a colon and so on down the line. And Unix will look in each of those directories, trying to locate a command in that order. So for example, if we type less unix_ files/lorem_ipsum.txt, then the process that Unix went through when trying to run the LESS command was to first look for it in this directory and then if it didn't find it, to look for it in this directory, and so on all the way down the line.

In this movie I want to still learn to modify our path variable using what we just learned in the last movie about setting environment variables. To begin with, ...

Setting the PATH variable
Video duration: 6m 10s 6h 35m Beginner

Viewers:

Setting the PATH variable provides you with in-depth training on IT. Taught by Kevin Skoglund as part of the Unix for Mac OS X Users

Subject:
IT
Software:
Mac OS X Unix
Author:
please wait ...