46.0k views
2 votes
Determined that you need to enable and disable a few services. in this lab, your task is to:

a. use the systemctl command to enable anaconda.
b. service.
c. use the systemctl command to disable vmtoolsd.
d. after each command, check the service status with the systemctl is-enabled command.

User Vrajesh
by
7.6k points

1 Answer

3 votes

To enable the "anaconda" service, use `sudo systemctl enable anaconda.service` and check its status with `sudo systemctl is-enabled anaconda.service`. Similarly, disable "vmtoolsd" using `sudo systemctl disable vmtoolsd.service` and check its status.

Below are the commands for the tasks described:

a. To enable the "anaconda" service:

sudo systemctl enable anaconda.service

sudo systemctl is-enabled anaconda.service

b. To check the status of the "anaconda" service:

sudo systemctl is-enabled anaconda.service

c. To disable the "vmtoolsd" service:

sudo systemctl disable vmtoolsd.service

sudo systemctl is-enabled vmtoolsd.service

d. To check the status of the "vmtoolsd" service:

sudo systemctl is-enabled vmtoolsd.service

These commands use systemctl to enable/disable services and check their status.

User Tjs
by
8.0k points