Question
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
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 /dev/null 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: ls lR / >system_list 2> /dev/null &
6. Type: jobs
7. Type: kill %[job id o f the ls c ommand]
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 dont have one, create a file users.sh that contains a command to list all users on the sy stem 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 c ommand to execute the file in the background 2 minutes from now
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started