Display your home directory using a shell variable


Question:

Shell script for Knoppix

Convert the pseudocode given below into an executable shell script for Knoppix, following the same order.

Pseudo-code:

· Change to the /tmp directory.

· Change to your home directory.

· Display the previous working directory using a shell variable.

· Display your home directory using a shell variable.

· Display your home directory using an alternate method to using a shell variable.

· Display the amount of time the shell will wait for user input before the current shell is terminated using a shell variable.

· Set the previous variable to 120.

· Display the amount of time the shell will wait for user input before the current shell is terminated using a shell variable.

· Set the previous variable to 0.

Solution Preview :

Prepared by a verified Expert
Software Engineering: Display your home directory using a shell variable
Reference No:- TGS01936367

Now Priced at $20 (50% Discount)

Recommended (95%)

Rated (4.7/5)