Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

question 7 (1 point) which command in linux is commonly used to display…

Question

question 7 (1 point)
which command in linux is commonly used to display information about currently running processes?
which
whoami
ps
ls
question 8 (1 point)
which process state indicates that a process has completed execution?
new
running
terminated
waiting

Explanation:

Brief Explanations

For Question 7:

  • The which command is used to locate the binary file associated with a given command.
  • The whoami command displays the username of the current user.
  • The ps (process status) command is used to display information about currently running processes.
  • The ls command lists directory contents.

For Question 8:

  • The "New" state means the process is being created.
  • The "Running" state means the process is executing instructions.
  • The "Terminated" state means the process has completed execution.
  • The "Waiting" state means the process is waiting for an event (e.g., I/O completion).

Answer:

Question 7: C. ps
Question 8: C. Terminated