Environmental variables, PATH. vi (vim)
Learning outcomes:
- Show the use of vi to create, edit and save a text file
- Explain how the environmental variable PATH is displayed and why it is important
- Describe two environmental variables other than PATH
Would you like to download my PowerPoint to follow along?
- VI
- Modal editor, which means you need to be in the correct mode to change the file, and a different one to save the file
- A Beginner's Guide to Editing Text Files With Vi
- Learn VI through VIM adventures
- VI Cheat Sheet
- Environmental Variables
- Used to keep track of things on system
- Global variables are all upper case
- PATH places to look for files
- HOME the home directory
- printenv displays environmental variables
- set can change values, DANGER HERE Linux will let you be stupid and not give warnings
- Guide to Linux Environment Variables
- How To Read and Set Environmental and Shell Variables on Linux
Suggested Activities and Discussion Topics:
- Lab assignment: PDF version (accessible HTML version)
- Activity: Watch my video on YouTube for VI and follow along with me
- Activity: Listen to This Podcast That was created using AI from these materials. Transcript for the Podcast What are your thoughts? Did the AI do a good job representing the materials? Did you find any mistakes?
- Go through This AI generated study guide, what do you think? Did it capture the week materials well? How did you do on the self quiz? Do you know all the vocab used?
- Go through This AI generated briefing document, what do you think? Did it capture the week materials well? Was there anything it missed? Do you know all the vocab used?
Would you like to see some more classes? Click here