Learn how to set environment variables that can affect the execution of commands that use them. The PATH variable can be modified for the working environment. Learn how to add paths while keeping the default paths.
- [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 environment variable won't have any effect …
Skill Level Intermediate
1. Introduction to Unix
2. Files and Directories
3. Ownership and Permissions
4. Commands and Processes
5. Directing Input and Output
6. Configure Your Working Environment
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.