Unix Script

1. Create a shell script located in your home directory.
2. Convert the pseudocode below into an executable script. Following the same order
3. Save the file.
4. Execute the script.
5. Provide script and captured output for assignment.

Pseudocode
• 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

Leave a Reply

Your email address will not be published. Required fields are marked *