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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!