Question
UNIX ADMIN REVIEW 1 COMMANDS (How would you write the program in UNIX) 1. Use the script command to capture the actual command entered and
UNIX ADMIN REVIEW 1 COMMANDS (How would you write the program in UNIX)
1. Use the script command to capture the actual command entered and the resulting output in a file named MAJOR_IDS.txt Write a command that produce a sorted list of ECU ID NUMBERS ( only for every user in /etc/passwd that has a home directory under majors. Just need to know the command for it) 2. Review the following commands: enscript Plab02 filename Print specified file on printer lab02 lpstat o Show all jobs queued for every printer available cancel lab01-12345 Cancel print request with id lab01-12345 Follow these steps to build and test your command to cancel all print requests you own queued on a specified printer. 1. Send two print requests to printer mx1 and two print requests to lab02. Note: Do NOT print to lab printer named lab01 because it will actually print them instead of leaving in queue for this exercise. 2. Use lpstat o to verify your requests are in the print queue. 3. Write a command that will provide the REQUEST ID only for your print jobs on printer mx1 only. For example, although I have one job queued on each printer, my REQUEST ID list should only contain mx1-49386. Note: Make sure you are not seeing every REQUEST ID instead of just those that belong to you and make sure it is for printer mx1 only. 4. Modify your command to cancel those print requests as follows: cancel `your original command from step 3 above` Note: those are back ticks not apostrophes or quotations. 5. Use lpstat o to verify all of your requests on mx1 were canceled. Finally, using the script command to capture the commands and the resulting output in a file named PRINT_JOBS.txt: 1. Use lpstat o to show current jobs queued on all printers 2. Run the cancel command your built above using printer lab02 instead of mx1 3. Use lpstat o to show current jobs queued Note: You should not have any print requests remaining.
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