On a Debian- or Ubuntu-based system, which sequence follows the recommended practice before upgrading installed packages?
Linux Administration Essentials Quiz Online Quiz Questions
Use this free practice quiz with 20 questions to review Linux Administration Essentials, test your knowledge, and prepare for your next test or exam.
Which statements correctly describe ways to use journalctl? Select all that apply.
- A
Filter journal entries by service, for example with
journalctl -u ssh.service. - B
Follow new journal entries with
journalctl -f. - C
Limit results to the current boot with
-b. - D
Select errors and more severe priorities with
-p err. - E
Use
-n 50to show only error-priority entries.
For commands that require administrator privileges, it is preferable to use sudo for those specific commands rather than working as root unnecessarily.
- A
True
- B
False
Which command checks inode use when a system cannot create files even though filesystem space may remain?
On a system that uses systemd, systemctl configures a service to start at boot. Adding also starts it immediately.
Describe a safe sequence for terminating a process by PID, including how to verify the target, which command to try first, and when to escalate.
Which command follows new journal entries for ssh.service while you reproduce a problem?
- A
journalctl -b -p err - B
journalctl -u ssh.service -f - C
journalctl -n 50 - D
systemctl status ssh.service
Which statements describe recommended package-management practices? Select all that apply.
- A
Use the package manager provided by the distribution and its configured repositories.
- B
Treat
aptand DNF commands as interchangeable across distributions. - C
Review the proposed transaction before confirming, especially when removing software or upgrading a production system.
- D
Install packages from untrusted sources if the package manager does not list them.
- E
Rely on package managers to resolve dependencies and track installed software.
On a system using systemd, running systemctl enable ssh.service by itself also starts the service immediately.
- A
True
- B
False
What command prefix should you put before a specific command that requires administrator privileges, instead of working as root?
When kill PID is used without specifying a signal, it sends by default. If the process does not exit, kill -KILL PID sends .
A Linux service is not behaving as expected. Which approach best follows a careful routine troubleshooting process?
- A
Change the service configuration immediately, then check its logs if the change fails.
- B
Check service state, inspect recent logs, and examine system resources before making a targeted change.
- C
Delete old log files and restart the service repeatedly.
- D
Make broad permission changes before checking the reported symptom.
On a system using systemd, journalctl -b -p err selects errors and more severe priorities from the current boot.
- A
True
- B
False
What command should you use for a specific command that requires administrator privileges, rather than working as root unnecessarily? Enter the command name only.
On a Debian- or Ubuntu-based system, which command should you run to refresh package metadata before upgrading?
- A
sudo apt update - B
sudo apt upgrade - C
sudo dnf upgrade - D
sudo apt remove PACKAGE
If a process needs to be stopped, the recommended first step is to send SIGKILL because it allows the process to shut down cleanly.
- A
True
- B
False
What systemctl subcommand and option configure a service to start at boot and also start it immediately? Enter them exactly as shown, without sudo systemctl.
A system has free disk space but cannot create new files. Which command checks inode use, which can prevent file creation even when disk space remains?
- A
df -h - B
free -h - C
df -i - D
systemctl --failed
What three-letter abbreviation names the identifier you should check to confirm that a process is the intended target before using kill?
On a system using systemd, which command filters journal entries for ssh.service and limits the output to 50 recent entries?
- A
sudo journalctl -b -p err - B
sudo journalctl -u ssh.service -n 50 - C
sudo journalctl -u ssh.service -f - D
sudo systemctl status ssh.service
Related study packs and tools
2 Mobile Hardware and Components
Learn how mobile-device components work together, how their designs differ, and what their capabilities and serviceability depend on.
2 Professionalism in IT Practice
Learn how integrity, communication, confidentiality, and structured judgment guide responsible conduct in IT work.
2 Virtual Machines
A medium-difficulty quiz on virtual machine architecture, provisioning, networking, storage, and operations.
3 Network Connectivity Diagnosis
A medium-difficulty quiz on diagnosing network connectivity in stages, interpreting test results, and choosing appropriate next checks.
4 Mobile Connectivity
A 14-question quiz on applying mobile connectivity concepts to common settings, usage, and troubleshooting situations.
5 Cloud Service Models
A medium-difficulty quiz on applying and distinguishing IaaS, PaaS, and SaaS, including their responsibilities, trade-offs, and appropriate uses.
5 Mobile Device Configuration
Learn how to personalize a phone or tablet, configure accessibility and notifications, install operating-system updates, and maintain backups that can support recovery.
5 Network Operations and Reliability
A medium-difficulty quiz on network operations, monitoring, configuration management, resilience, and recovery planning.
5 Network Services and Name Resolution
A medium-difficulty quiz on diagnosing DHCP, DNS, and network-service problems, progressing from core concepts to multi-step troubleshooting.
6 Security Operations and Incident Response
Learn how security teams monitor activity, manage vulnerabilities, respond to incidents, preserve digital evidence, and restore services safely.
7 Integrated Troubleshooting Practice
A practical workflow for isolating mixed hardware, display, storage, mobile-device, and network problems, protecting data, and verifying repairs.
8 Comprehensive Security+ Practice and Review
A scenario-focused guide to Security+ SY0-701 concepts, emphasizing evidence-based incident response, access control, cryptography, vulnerability handling, recovery objectives, and risk governance.