Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

F1 Linux Services and Scheduling

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

What are some common problems associated with user login issues?

a)

Issues related to file attributes such as ownership and timestamps.

b)

Difficulties users face when trying to access files in the wrong context.

c)

Problems with forgotten passwords, weak password policies, or password expiration.

d)

Problems like username/password issues, authentication methods, or account lockouts due to multiple failed login attempts.

2.

What is the primary purpose of the `systemctl` command in Linux?

a)

To create cron jobs

b)

To mask a service

c)

To interact with crontab files

d)

To manage system services

3.

Which `systemctl` command is used to stop a running service?

a)

`systemctl restart `

b)

`systemctl disable `

c)

`systemctl stop `

d)

`systemctl status `

4.

How is the restart command used with `systemctl` to restart a service?

a)

`systemctl restart `

b)

`systemctl stop `

c)

`systemctl enable `

5.

What does the status command in `systemctl` provide information about?

a)

The cron syntax

b)

The intervals between cron jobs

c)

Whether a service is running or stopped

d)

The crontab commands

6.

Which `systemctl` command is used to enable a service to start automatically at boot time?

a)

`systemctl start `

b)

`systemctl enable `

c)

`systemctl mask `

d)

`systemctl disable `

7.

What does the mask command in `systemctl` do?

a)

Enables a service

b)

Disables a service

c)

Stops a service

d)

Prevents a service from running or starting

8.

What is cron used for in Unix-like operating systems?

a)

Enabling and disabling services

b)

Scheduling recurring tasks at fixed times, dates, or intervals

c)

Managing system stability

d)

Interacting with crontab files

9.

What does the `at` command do in Unix-like systems?

a)

Manages cron jobs

b)

Prevents services from running

c)

Schedules one-time job execution

d)

Enables and disables services

10.

Explain how you would troubleshoot a service that fails to start using `systemctl`.

a)

Check the service status using `systemctl status ` and review logs for errors.

b)

Immediately restart the service using `systemctl restart `.

c)

Disable the service using `systemctl disable ` and try again.

d)

Mask the service using `systemctl mask ` to prevent it from starting.

11.

Describe a scenario where using the `mask` command in `systemctl` would be appropriate.

a)

When a service needs to be temporarily stopped.

b)

When a service should never be started, even manually.

c)

When a service needs to be restarted.

d)

When a service should start automatically at boot.

12.

How would you plan a maintenance task using `cron` to minimize system downtime?

a)

Schedule the task during peak hours to ensure it runs.

b)

Schedule the task during off-peak hours to minimize impact.

c)

Schedule the task randomly to avoid predictability.

d)

Schedule the task to run continuously.

13.

What steps would you take to ensure a secure password policy in a Linux system?

a)

Allow users to set any password they choose.

b)

Implement password expiration and complexity requirements.

c)

Disable password authentication entirely.

d)

Use the same password for all accounts.

14.

How can you verify if a service is enabled to start at boot using `systemctl`?

a)

Use `systemctl start `.

b)

Use `systemctl is-enabled `.

c)

Use `systemctl stop `.

d)

Use `systemctl mask `.

15.

What is the difference between `systemctl stop` and `systemctl disable`?

a)

`systemctl stop` stops a service temporarily, while `systemctl disable` prevents it from starting at boot.

b)

`systemctl stop` enables a service, while `systemctl disable` starts it.

c)

`systemctl stop` masks a service, while `systemctl disable` restarts it.

d)

`systemctl stop` starts a service, while `systemctl disable` stops it.