Question

Question #6 Lnux processes and Process administration Unix identifies every process by a Process Identification Number (pid) which is assigned when 8. the process is created. When we want to perform an operation on a process, we referto it by its pid or Processicd A. True False In a /bin/bash script, what string identifies the current PID? If the process/PID is a memory hog and you wantto terminate it, what command do you issue? What user can issue the command in the above question? (Hint: There are two or more, identify at least two) Question #7. /bin/bash exit codes Question Shell exit codes are numeric. How many exit codes are there and what is their numerical range? Answer What is standard exit code for SUCCESS? Task Automation Fall 2017

0 0
Add a comment Improve this question Transcribed image text
Answer #1

6.

  1. True In Unix each process is identified by their unique ID.
  2. "$$" and "PPID"
  3. Kill <pid>, PKill <process Name>

7.

1 - Catchall for general errors
2 - Misuse of shell builtins (according to Bash documentation)
126 - Command invoked cannot execute
127 - “command not found”
128 - Invalid argument to exit
128+n - Fatal error signal “n”
130 - Script terminated by Control-C
255\* - Exit status out of range

2. A successful command returns a 0, while an unsuccessful one returns a non-zero value that usually can be interpreted as an error code. Well-behaved UNIX commands, programs, and utilities return a 0 exit code upon successful completion, though there are some exceptions.

Add a comment
Know the answer?
Add Answer to:
Question #6 Lnux processes and Process administration Unix identifies every process by a Process Identification Number...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Hello all, I have a c++/unix (bash) question. I am struggling on starting this assignment. If...

    Hello all, I have a c++/unix (bash) question. I am struggling on starting this assignment. If you could start the assignment and tell me how to do the rest it would be greatly appreciated! (Quick thumbs up answer response if thorough and correct) Maintain automobile records in a database Write a shell script to create, view and modify a simple database that contains automobile records. The shell script has to be done in Bourne shell syntax (bash as a matter...

  • Hide Assignment Information Instructions Instructions for Lab 6 First, a little review on processes How to...

    Hide Assignment Information Instructions Instructions for Lab 6 First, a little review on processes How to view processes (6 minutes) On the top of all your documents, always include these items: your name: date: Lab number Repeat the process that you used to save the log file that will be produced by this lab. You can either use the log feature on putty or the script command at the shell prompt. Login to our system and follow these steps while...

  • Question 2 0/1 point (graded) What happens when you remove a directory using the command rm...

    Question 2 0/1 point (graded) What happens when you remove a directory using the command rm -r? You cannot remove a directory using the rm command. You permanently remove the entire directory, including all files and subdirectories. You move the entire directory to a trash folder, but it can be restored later. You get a warning message asking if you want to proceed, then you delete the directory. incorrect Answer Incorrect: Try again. Unix does not warn you before permanently...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT