Timedora
Free Practice Quiz Question List

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.

20 questions
01
Choose one
1 point

On a Debian- or Ubuntu-based system, which sequence follows the recommended practice before upgrading installed packages?

  1. A

    Run sudo apt upgrade before refreshing metadata.

  2. B

    Run sudo apt update before sudo apt upgrade.

  3. C

    Use sudo dnf upgrade because DNF is the package manager for Debian-based systems.

  4. D

    Install packages from an untrusted source to ensure the latest versions.

02
Choose all
1 point

Which statements correctly describe ways to use journalctl? Select all that apply.

  1. A

    Filter journal entries by service, for example with journalctl -u ssh.service.

  2. B

    Follow new journal entries with journalctl -f.

  3. C

    Limit results to the current boot with -b.

  4. D

    Select errors and more severe priorities with -p err.

  5. E

    Use -n 50 to show only error-priority entries.

03
True or false
1 point

For commands that require administrator privileges, it is preferable to use sudo for those specific commands rather than working as root unnecessarily.

  1. A

    True

  2. B

    False

04
Written response
1 point

Which command checks inode use when a system cannot create files even though filesystem space may remain?

05
Fill in the blank
1 point

On a system that uses systemd, systemctl configures a service to start at boot. Adding also starts it immediately.

06
Open ended
1 point

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.

07
Choose one
1 point

Which command follows new journal entries for ssh.service while you reproduce a problem?

  1. A

    journalctl -b -p err

  2. B

    journalctl -u ssh.service -f

  3. C

    journalctl -n 50

  4. D

    systemctl status ssh.service

08
Choose all
1 point

Which statements describe recommended package-management practices? Select all that apply.

  1. A

    Use the package manager provided by the distribution and its configured repositories.

  2. B

    Treat apt and DNF commands as interchangeable across distributions.

  3. C

    Review the proposed transaction before confirming, especially when removing software or upgrading a production system.

  4. D

    Install packages from untrusted sources if the package manager does not list them.

  5. E

    Rely on package managers to resolve dependencies and track installed software.

09
True or false
1 point

On a system using systemd, running systemctl enable ssh.service by itself also starts the service immediately.

  1. A

    True

  2. B

    False

10
Written response
1 point

What command prefix should you put before a specific command that requires administrator privileges, instead of working as root?

11
Fill in the blank
1 point

When kill PID is used without specifying a signal, it sends by default. If the process does not exit, kill -KILL PID sends .

12
Choose one
1 point

A Linux service is not behaving as expected. Which approach best follows a careful routine troubleshooting process?

  1. A

    Change the service configuration immediately, then check its logs if the change fails.

  2. B

    Check service state, inspect recent logs, and examine system resources before making a targeted change.

  3. C

    Delete old log files and restart the service repeatedly.

  4. D

    Make broad permission changes before checking the reported symptom.

13
True or false
1 point

On a system using systemd, journalctl -b -p err selects errors and more severe priorities from the current boot.

  1. A

    True

  2. B

    False

14
Written response
1 point

What command should you use for a specific command that requires administrator privileges, rather than working as root unnecessarily? Enter the command name only.

15
Choose one
1 point

On a Debian- or Ubuntu-based system, which command should you run to refresh package metadata before upgrading?

  1. A

    sudo apt update

  2. B

    sudo apt upgrade

  3. C

    sudo dnf upgrade

  4. D

    sudo apt remove PACKAGE

16
True or false
1 point

If a process needs to be stopped, the recommended first step is to send SIGKILL because it allows the process to shut down cleanly.

  1. A

    True

  2. B

    False

17
Written response
1 point

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.

18
Choose one
1 point

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?

  1. A

    df -h

  2. B

    free -h

  3. C

    df -i

  4. D

    systemctl --failed

19
Written response
1 point

What three-letter abbreviation names the identifier you should check to confirm that a process is the intended target before using kill?

20
Choose one
1 point

On a system using systemd, which command filters journal entries for ssh.service and limits the output to 50 recent entries?

  1. A

    sudo journalctl -b -p err

  2. B

    sudo journalctl -u ssh.service -n 50

  3. C

    sudo journalctl -u ssh.service -f

  4. D

    sudo systemctl status ssh.service