Question
Provide the one-line commands to perform the tasks below Create the var1 shell variable, and initialize it to twenty: Create the var2 shell variable, and
Provide the one-line commands to perform the tasks below
Create the var1 shell variable, and initialize it to twenty:
Create the var2 shell variable, and initialize it to 21:
Create the var3 shell variable, and initialize it to temp:
Display the values of all three variables:
Display the list of local shell variables, and determine if either var1, var2, or var3 is in the listing:
Display the list of environmental variables, and determine if either var1, var2, or var3 is in the listing:
Use the export command to make var1 and var3 environmental variables.
Display the list of environmental variables, and determine if either var1 or var3 is in the listing.
Remove the var3 variable with the unset command:
Display the list of local shell variables, and determine if either var1, var2, or var3 is in the listing:
Display the list of environmental variables, and determine if either var1, var2, or var3 is in the listing:
Start a child tcsh shell:
In the new (child) shell, display the list of local shell variables, and determine if either var1 or var2 is in the listing:
In the new (child) shell, display the list of environmental variables, and determine if either var1 or var2 is in the listing:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started