Question: Writing a BASH script !!! Start this part of your script with a comment # Response to PC 2, Task 1 echo Response to PC

Writing a BASH script !!!

Start this part of your script with a comment # Response to PC 2, Task 1 echo Response to PC 2,

Task 1 Write script commands that displays on/to a terminal/screen:

1. In one command, display your first and last names on the terminal and save them to a file (use tee command and redirection

) 2. Current working directory (do not hardcode but use Linux command)

3. Current date and time (date and time when the script is executed, hence do not hard code it but use appropriate Linux commands to display it at the time someone runs your script)

4. Users home directory (working directory of the user who runs the script)

5. Runs sleep command for 5 seconds (select duration by yourself)

6. Content of the PATH variable

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!