Chapter-7: Monitoring and Managing Linux Processes

 

 Monitoring and Managing Linux Processes 


1. Running instance of a launched ,executable program is called ----

2. A process consist of -

a. Address space

b. security properties

c. execution thread of program code

d. process state

3. For tracking & security, every new process is assigned

a. Unique PID

b. Unique User ID

c. Unique Parent PID(PPID)

4. what are elements of a new process ID?

a. PPID b. UID c.PID d.systemd

5. When an existing parent process duplicates its own address space is called --

a. systemd

b. child process

c. fork

d. zombie

6. All process are descendants of the first system process, which is called --

a. systemd

b. child process

c. fork

d. zombie

7. What is false Linux process state?

a. R=Running

b. S=Sleeping->Task_Interruptable

c. D=Sleeping->Task_UNInterruptable

d. K=Sleeping->Task_Interruptable

e.D=Sleeping->Task_Killable

f. X=Zombie->Exit_Zombie

8.what command is used for listing current process?

a. ps

b. ps aux

c. ps -ef

d. top

9. For displaying update process what command is used?

a. ps

b. ps aux

c. ps -ef

d. top

10. A Linux version of ps support show many options?

a. 2

b. 3

c. 5

d. 7

11. Which determines process privileges?

a. UID

b. PID

c. Controlling terminal

d. memory space of the process

e. process state

f. update process dispaly

12. ps command can provide detailed process information, excluding

a. UID

b. PID

c. Controlling terminal

d. memory space of the process

e. process state

f. update process dispaly

13. Which options are not supported by ps?

a. UNIX (POSIX)

b. BSD

c. GNU long

d. GNU short

e. FSD

14. What are zombies process in a ps listing?

a. state showing are existing

b. state showing are defuncting

c. state showing are running

d. state showing are DEAD

15. If you want to show the output of ps command by chronologically what option should you use?

a. -o b. --sort c. -c d. -t

16.  Which command is used to   view users currently logged into the system and their cumulative activities?

a. whoami b. w c. users d.tty


17. Which columes are used to determine the users location?

a. TTY     b. FROM c. LOGIN d. USER


18. A root user has been logged in into your system named "itbd" graphically . What will be the TTY value by w command?

a. :0    b. tty/0 c. pts/0 d. tty/0


19. A root user has been logged in into your system named "itbd" from your graphical terminal after first logging. What will be the TTY value by w command?

a. :0    b. tty/0 c. pts/0 d. tty/1


20. A root user has been logged in into your system named "itbd" from your virtual console terminal by "CTRL+ALT+F2" after first logging. What will be the TTY value by w command?

a. :0    b. tty/1 c. pts/2 d. tty/2


21. If any one login into your system from remote machine, which option tells that to you - from which machine user has been logged in?

a. TTY     b. FROM c. LOGIN d. USER


22. A root user/any user from another remote machine has been logged in into your system named "itbd" from your graphical terminal after first logging. What will be the TTY value by w command?

a. :0        b. tty/0      c. pts/0     d. tty/1


23. When situations occur in which users ca nnot be contacted or have unresponsive sessions,

runaway resource consumption, or improper system access, their sessions may need to be

administratively terminated using ----------


24. ------------  is the default signal


25. To terminate all processes for one user, use the ------- command

a. sigkill             b.kill     c. pkill


26. To view all process of user "mushfiq", what command should you use?

a. grep -p -u mushfiq

b.pgrep -l -u mushfiq

c. pgrep -u mushfiq

d. grep -p mushfiq


27. To kill all process of user "mushfiq",what command should you use?

a.  pkill   -SIGKILL   -u  mushfiq

b.  pkill   -SIGKILL   mushfiq

c.  pkill    -u  mushfiq

d. pkill  mushfiq


28. The bash command shell tracks jobs, per session, in a table displayed with the -------- command

a. ps             b. job     c. jobs         d. bg     e. fg         f. top


29. Any command can be started in the background by appending an ---- to the command  line

a. !         b. @ c. #     d. % e. $         f. &


30. The ps option -------- displays job information, including the initial command shell of each session. 

a. a     b. u     c. j     d. X         e. T


31. suppose you have suspended the 'sleep' command by pressing Ctrl+Z, the state flag of  'sleep'  will be displayed by

a. a     b. u     c. j     d. X         e. T


32. If you want to see the background process, use

a. ps     b. job c. jobs d. bg e. fg


33.  If you want to restart the process in the background, use the ---command with the same job ID(5)

a. fg  &5      b. bg  &5        c. jobs  %5 d. bg   %5      e. fg  %5    


34. To suspend the running process, use --

a. ctrl+c     b. ctrl+z     c. alt+z     d. alt+c


35. The kill command sends a signal to a process by ID.

a. True b. False


36. Use killall to send a signal to one or more processes matching selection criteria 

a. True b. False


37. pkill command  use which option

a. command

b. parent

c. terminal

d. UID

e. GID 


38. Sorts process listing by memory usage, in descending order from 'top' command by---

a. B     b. m     c. M d. P     e. r     f. k     g. q


39. which do not  display load average values. 

a. top

b. uptime

c. w

d. gnome-system-monitor 

e. jobs


40. Which command continuously refreshes at a configurable interval, and provides capabilities for column reordering, sorting, and highlighting.

a. ps  b. job c. jobs d. bg e. fg        f. top


41. Sorts process listing by processor utilization, in descending order from 'top' command by---

a. B    b. m       c. M      d. P    e. r   f. U g. q


42.  Renice a process from 'top' command by---

a. B    b. m       c. M      d. P    e. r   f. U g. q


43. Quit from 'top' command by---

a. B    b. m       c. M      d. P    e. r   f. U g. q


44. See the specific user's(effective user) info from 'top' command by---

a. B    b. m       c. M      d. P    e. r   f. U g. q


45. Default  signal number is --- 

a. 10 b. 15 c. 5         d. 13 e. 9         f. 20         g. 19


46. Forcefully terminate a process, which signal number will be sent?

a. 10 b. 15 c. 5         d. 13 e. 9         f. 20         g. 19


47. The STOP signal instructs the operating system to stop a process for later resumption, which signal number will be sent?

a. 10 b. 15 c. 5         d. 13 e. 9         f. 20         g. 19


48. The TSTP signal is sent to a process by its controlling terminal to request it to stop temporarily, which signal number will be sent?

a. 10 b. 15 c. 5         d. 13 e. 9         f. 20         g. 19



Comments

  1. Red Prism Group is one of the best Data Science coaching in Noida, offering services from training to placement as part of the Data Science training program.

    ReplyDelete

Post a Comment

Popular posts from this blog

Some Questions for MTCNA Exam

ডিপ্লোমা লেভেল এর ইন্ডাস্ট্রিয়াল এটাচমেন্ট এ আসার পূর্বে একটু ভেবে আসার অনুরোধ রইলো

Basic Router & Switch IOS commands