Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Question #6 Lnux processes and Process administration Unix identifies every proc

ID: 3602471 • Letter: Q

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

Explanation / Answer

The Answers for your questions are given below :

Question 6
unix identifies the every process by a process id which is assigned when the process is created. when we want to perform an operation on a process, we refer to it by its pid ot processid.

Ans) TRUE
becaue unix identifies the every process by a process id which is assigned when the process is created. when we want to perform an operation on a process, we refer to it by its pid ot processid

Q)In /bin/bash script, what string that identified the current pid

ANS)$$ is the string that identified the current pid in a /bin/bash.

Q)if the process/PID is a memory hog and you want to terminate it, what command do you issue?

Ans) Kill <pid>
so by issuing the above command kill process id number of a process we can terminate the process with a memory hog.

Q) what user can issue the command in the above question?

ANs) Super user is the one who can issue the command and another one is system administrator who can issue the command als the third one is who created the process he can issue the command too.

Question 7


shell exit code are numeric how many exit codes are there and what is their numerical range

Ans)
There are totally 255 exit codes and each and every code will have separate menaing based on their code and for example if the exit code is 127 then it's meaning is command not found.
the numerical range of exit codes is 0-255

Q)

what is standard exit code for SUCCESS

Ans)
The standard exit code for SUCCESS is 0
and an Exit code is also known as a return code and it will be returned by the parent process of a code which is executing.

Hope This Helps, if you have any doubts Please comment i will get back to you, thank you and please thumbs up