Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Just need help with what the command line inputs would be. Using Unix for this exercise. Will be using mkdir to create CH7 and touch

Just need help with what the command line inputs would be. Using Unix for this exercise. Will be using mkdir to create CH7 and touch to create hands-on7.

image text in transcribed

1. Run script to create a file named Ch7/hands-on7 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 $1' /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. 1. Run script to create a file named Ch7/hands-on7 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 $1' /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

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

Database Management An Organizational Perspective

Authors: Richard T. Watson

1st Edition

0471305340, 978-0471305347

More Books

Students also viewed these Databases questions

Question

What should be described in a good title?

Answered: 1 week ago