RHEL Linux - Red Hat System Administration Practice Exam

Disable ads (and more) with a membership for a one time $4.99 payment

Study for the RHEL Linux - Red Hat System Administration Exam. Enhance your knowledge with flashcards and multiple-choice questions, complete with hints and explanations. Prepare for your certification!

Practice this question and more.


Which command will allow the atd service to start at boot if it is not already configured that way?

  1. sudo systemctl enable atd

  2. sudo ctlsystem disable atd

  3. sudo service atd disable

  4. sudo systemctl atd enable

The correct answer is: sudo systemctl enable atd

The command that allows the atd service to start at boot is correctly identified. Using `sudo systemctl enable atd` performs the function of configuring the system to automatically start the atd service during the boot process. When the `enable` command is executed with systemctl, it sets up the necessary symlinks in the default target directory (usually `/etc/systemd/system/multi-user.target.wants/`) to ensure that the service starts up when the system reaches the specified run level or target. This is an essential part of managing services in a modern Linux environment that uses systemd for service management. In contrast, the other options involve either incorrect syntax or commands that do not serve the purpose of enabling a service at boot. For example, disabling a service or using a nonexistent command will not achieve the goal of ensuring that the atd service starts automatically when the system boots. Understanding the structure and usage of systemd commands is crucial for effective system administration in RHEL Linux.