WorksheetsF1 Linux Services and Scheduling
Total questions: 15
Worksheet time: 8mins
What are some common problems associated with user login issues?
Issues related to file attributes such as ownership and timestamps.
Difficulties users face when trying to access files in the wrong context.
Problems with forgotten passwords, weak password policies, or password expiration.
Problems like username/password issues, authentication methods, or account lockouts due to multiple failed login attempts.
What is the primary purpose of the `systemctl` command in Linux?
To create cron jobs
To mask a service
To interact with crontab files
To manage system services
Which `systemctl` command is used to stop a running service?
`systemctl restart
`systemctl disable
`systemctl stop
`systemctl status
How is the restart command used with `systemctl` to restart a service?
`systemctl restart
`systemctl stop
`systemctl enable
What does the status command in `systemctl` provide information about?
The cron syntax
The intervals between cron jobs
Whether a service is running or stopped
The crontab commands
Which `systemctl` command is used to enable a service to start automatically at boot time?
`systemctl start
`systemctl enable
`systemctl mask
`systemctl disable
What does the mask command in `systemctl` do?
Enables a service
Disables a service
Stops a service
Prevents a service from running or starting
What is cron used for in Unix-like operating systems?
Enabling and disabling services
Scheduling recurring tasks at fixed times, dates, or intervals
Managing system stability
Interacting with crontab files
What does the `at` command do in Unix-like systems?
Manages cron jobs
Prevents services from running
Schedules one-time job execution
Enables and disables services
Explain how you would troubleshoot a service that fails to start using `systemctl`.
Check the service status using `systemctl status
Immediately restart the service using `systemctl restart
Disable the service using `systemctl disable
Mask the service using `systemctl mask
Describe a scenario where using the `mask` command in `systemctl` would be appropriate.
When a service needs to be temporarily stopped.
When a service should never be started, even manually.
When a service needs to be restarted.
When a service should start automatically at boot.
How would you plan a maintenance task using `cron` to minimize system downtime?
Schedule the task during peak hours to ensure it runs.
Schedule the task during off-peak hours to minimize impact.
Schedule the task randomly to avoid predictability.
Schedule the task to run continuously.
What steps would you take to ensure a secure password policy in a Linux system?
Allow users to set any password they choose.
Implement password expiration and complexity requirements.
Disable password authentication entirely.
Use the same password for all accounts.
How can you verify if a service is enabled to start at boot using `systemctl`?
Use `systemctl start
Use `systemctl is-enabled
Use `systemctl stop
Use `systemctl mask
What is the difference between `systemctl stop` and `systemctl disable`?
`systemctl stop` stops a service temporarily, while `systemctl disable` prevents it from starting at boot.
`systemctl stop` enables a service, while `systemctl disable` starts it.
`systemctl stop` masks a service, while `systemctl disable` restarts it.
`systemctl stop` starts a service, while `systemctl disable` stops it.
