adplus-dvertising
frame-decoration

Question

To know the PID of your current shell, which command will be used?

a.

echo $$

b.

echo $

c.

$SHELL

d.

$PATH

Posted under UNIX

Answer: (a).echo $$

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. To know the PID of your current shell, which command will be used?

Similar Questions

Discover Related MCQs

Q. The PID of our login shell doesn’t change.

Q. What is the PID of the first process that is set up when the system is booted?

Q. Which of the following command doesn’t create a process?

Q. Which command shows some attributes of a process?

Q. Which of the following attribute is not shown by ps command?

Q. Which option is used by ps command to get a detailed listing of process attributes?

Q. Which system call is used by the parent process to wait for the child process to complete?

Q. We can run the jobs in the background in UNIX.

Q. Shell ___ operator is used for running jobs in the background.

Q. Which command is used for running jobs in the background?

Q. nice command is a ______ command in C shell.

Q. Which option can be used explicitly to reduce the priority of any process.

Q. Which command is used for premature termination of a process?

Q. What is a job?

Q. Which of the following command is used to suspend a job?

Q. Which command will push the current foreground job to the background?

Q. ____ command will bring the background jobs to the foreground.

Q. We can list the jobs queued using at command by using ____ option.

Q. UNIX supports preemptive multitasking.

Q. The collection of memory locations that the process can access is called _______