Working with the Environment Variables
Welcome to the Working with the Environment Variables Practice Lab. In this module you will be provided with the instructions and devices needed to develop your hands-on skills.
Already have an account? Sign In »

Introduction
Welcome to the Working with the Environment Variables Practice Lab. In this module you will be provided with the instructions and devices needed to develop your hands-on skills.
Learning Outcomes
In this module, you will complete the following exercises:
- Exercise 1 - Working with the Environment Variables
After completing this lab, you will be able to:
- Log into a Linux System
- Read environment variables
- Set environment variables including the permanent ones
Exam Objectives
The following exam objectives are covered in this lab:
- LPI: 103.8 Basic file editing
- CompTIA: 2.3 Given a scenario, create, modify, and redirect files.
Lab Duration
It will take approximately 1 hour to complete this lab.
Exercise 1 - Working with the Environment Variables
A variable is mainly used for storing data on a temporary basis in memory. A variable can hold different types of data, such as characters, white spaces, alphanumeric characters, special characters and so on. Variables are of two types:
Environmental variables are defined for the current shell. These variables are then inherited and used by the child shells and the processes. On the other hand, shell variables work within the shell in which they are defined.
In this exercise, you will work with the environment variables.
Learning Outcomes
After completing this exercise, you will be able to:
- Log into a Linux System
- Read environment variables
- Set environment variables including the permanent ones
See the full benefits of our immersive learning experience with interactive courses and guided career paths.