CHAPTER - 8 : CONTROLLING SERVICES AND DAEMONS

 

CHAPTER : 8 

CONTROLLING SERVICES AND DAEMONS

Questions:

1. To show status of   ssh  service –

        a. systemctl   status  ssh

        b. systemctl   status  sshd

        c. systemctl   status  sshd.service

        d. systemd   status  sshd


2. ---are processes that wait or run in the background performing various tasks

        a. systemd          b. daemons       c. unit            d. services       e. socket


3. To listen for connections, a daemon uses a ---------------

     a. systemd          b. deamons       c. unit            d. services       e. socket


4. What is the primary communication channel with local or remote clients

        a. systemd          b. daemons       c. unit            d. services       e. socket


5. The ----- is passed to the daemon when a connection is established by the client.

        a. systemd             b. daemons       c. unit            d. services       e. socket


6. A service often refers to one or more -----------

        a. systemd          b. daemons       c. unit            d. services       e. socket


7. In Red Hat Enterprise Linux 7, process ID 1 is  ---------

        a. systemd          b. daemons       c. unit            d. services       e. socket


8. The systemctl command is used to manage different types of systemd objects, called -------

        a. systemd              b. daemons       c. unit            d. services       e. socket


9. Query the state of all units to verify a system startup   

        a. Systemd         b. systemctl        c. service list d. systemctl all


10. View only failed services

        a. systemctl  --failed  --type=service

        b. systemctl  -failed  -type=service

        c. systemctl  --failed  --type=services

        d. systemctl  --fail  --type=service


11. To see ssh service is active or not?

        a. systemctl  is-active  ssh

        b. systemctl  is-active  sshd

        c. systemctl  is-active  sshd.service

        d. systemctl  --is-active  sshd


12. To see ssh service is enable or not?

        a. systemctl  is-enable  sshd 

        b. systemctl  is-enabled  sshd 

        c. systemctl  is-enable  sshd.service 

        d. systemctl  is-enable  ssh


13. Verify that the process is running by PID.

        a. ps  -up   PID

        b. ps    PID

        c. ps    up   PID


14. To stop  ssh service  --

        a. systemctl  stop  sshd

        b. systemctl   end  sshd

        c. systemctl  stop ssh

        d. systemctl   destroy   sshd


15. If you reload the service by deamon, process ID of that service is not changed.

        a. True b. False


16. To stop print service, what command you will use?

        a. systemctl    stop   cups

        b. systemctl  stop  print.service

        c. systemctl  break  print.service

        d. systemctl end cups


17. A disabled service will not be started automatically at boot or by other unit files, but can be started manually.

        a. True b. false


18. A masked service cannot be started manually or automatically

        a. True b. False


19. After disabling/stopping the ssh service, how you can protect to start the ssh service accidentally?

        a. systemctl  mask   sshd

        b. systemctl  unmask  sshd

        c. systemctl  mask   ssh

        d. systemctl    unmask  ssh


20. Now if you want to start the ssh service, what you will do?

        a. systemctl    unmask  ssh

        b. systemctl  unmask  sshd

        c. systemctl mask  sshd

        d. systemctl  mask  ssh


21. Completely disable a service from being started, both manually and at boot.

        a. systemctl mask UNIT

        b. systemctl unmask UNIT

        c. systemctl disable UNIT

        d. systemctl stop UNIT


22. To Make a masked service available

        a. systemctl mask UNIT

        b. systemctl unmask UNIT

        c. systemctl disable UNIT

        d. systemctl stop UNIT


23. Disable a service from starting at boot time

        a. systemctl mask UNIT

        b. systemctl unmask UNIT

        c. systemctl disable UNIT

        d. systemctl stop UNIT


24. View detailed information about a unit state

        a. systemctl mask UNIT

        b. systemctl status UNIT

        c. systemctl list UNIT

        d. systemctl all  UNIT


25. Determine the status of system daemons and network services started by systemd.

        a. True b. False


Comments

  1. Red Prism Group ins one of the best Django coaching in Noida. Learn Django from industry expert with practical training, live projects and got your certificate.

    ReplyDelete

Post a Comment

Popular posts from this blog

Some Questions for MTCNA Exam

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