Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Chapter 7 Hands-On Assignment: Before you try the assignment, read through the chapter on the textbook to see what these shell commands do and why

image text in transcribed
Chapter 7 Hands-On Assignment: Before you try the assignment, read through the chapter on the textbook to see what these shell commands do and why you need to use it. Do not delete any files that have been created while you work on assignments. I also check you home directory for these files. 1. Run script to create a file named Ch7/hands-on 7 2. Run the find command searching all directories beginning with root and search for a file named whereis. Send standard error to /devull and the standard output to Ch7/where. As soon as you submit the command, press Ctrl-z. 3. Note the number that appears on the screen (job id) that appears on the screen. 4. Type: jobs 5. Run the command: Is-IR/ >system_list 2> /devull & 6. Type: jobs 7. Type: kill %[job id of the Is command] 8. Submit the same job you submitted in step 2 with the & following the command line. Change the standard output to Ch7/what 9. Type: jobs 10. Enter the foreground command, fg, followed by the job id of the job you suspended. 11. Send the job to the background by thing: bg %[job id) 12. Type: jobs 13. Bring all background jobs to the foreground and allow them to complete. 14. If you don't have one, create a file users.sh that contains a command to list all users on the system and save the output to Ch7/users. (hint: using vi, create users.sh with following command: awk-F':' '{print $1y' /etc/passwd) 15. Use the at command to run the file in the background 1 minute from now. 16. Use the batch command to execute the file in the background 2 minutes from now. 17. Create a shell script named cron.sh that will a. Save all output to a file named Ch7/cron b. Add the current system date to Ch7/cron C. Add a list the users on the system and store the list in Ch7/cron d. Add a count the lines in the user list to Ch7/cron 18. Use cron to run the shell script cron.sh three minutes from now. 19. Send Ch7/hands-on 7 to jkim3 using mailx as usual. (2.pts.) 20. Attach this hands-on 7 file to the Blackboard link. (18.pts)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

10. What is meant by a feed rate?

Answered: 1 week ago

Question

7. List behaviors to improve effective leadership in meetings

Answered: 1 week ago

Question

6. Explain the six-step group decision process

Answered: 1 week ago