Free practice · No sign-up required

Linux+ free practice test

15 questions with answer explanations. Choose an answer below to begin.

Question 1 of 15

What is the primary purpose of the GRUB bootloader in a Linux system?

Show hint

Boot Process and Initialization

0/15 answered · Bookmark questions to review later. Focus the practice area to use keys 1–9 and Enter.

Learn by doing

Put your answers into practice

Use official documentation and hands-on labs to work through topics you missed.

Explore all study resources →

All questions and explanations

Prefer to read at your own pace? Work through each question below, then open its answer to check your reasoning. You can link directly to a question or print this reference.

  1. What is the primary purpose of the GRUB bootloader in a Linux system?

    1. To manage user permissions

    2. To initialize hardware and load the operating system kernel

    3. To schedule system tasks

    4. To provide a graphical user interface

    Show answer and explanation

    Correct answer

    • To initialize hardware and load the operating system kernel

    GRUB (Grand Unified Bootloader) is responsible for loading the kernel and initializing core system components during boot.

  2. Which command is used to create a new directory in Linux?

    1. rmdir

    2. mkdir

    3. mkfile

    4. dir

    Show answer and explanation

    Correct answer

    • mkdir

    The mkdir command creates a new directory. rmdir removes empty directories, and dir is not a standard Linux command.

  3. What does the Linux kernel manage to allow multiple programs to share CPU time?

    1. Memory allocation

    2. Process scheduling

    3. File permissions

    4. Network routing

    Show answer and explanation

    Correct answer

    • Process scheduling

    The kernel uses process scheduling to allocate CPU time among running processes, enabling multitasking.

  4. Which file extension commonly indicates a compressed archive in Linux?

    1. .txt

    2. .tar.gz

    3. .conf

    4. .log

    Show answer and explanation

    Correct answer

    • .tar.gz

    .tar.gz is a common extension for compressed and archived files in Linux using tar and gzip.

  5. What is the default numeric user ID (UID) for the root account?

    1. 1000

    2. 0

    3. 1

    4. 999

    Show answer and explanation

    Correct answer

    • 0

    The root user has a UID of 0, which grants full administrative privileges in Linux.

  6. Which command displays the current working directory path?

    1. pwd

    2. cd

    3. ls

    4. echo $PATH

    Show answer and explanation

    Correct answer

    • pwd

    The pwd (print working directory) command outputs the full path of the current directory.

  7. What is the role of systemd in modern Linux distributions?

    1. To manage user files

    2. To initialize and manage system services

    3. To compile software from source

    4. To provide a command-line interface

    Show answer and explanation

    Correct answer

    • To initialize and manage system services

    systemd is the system and service manager responsible for booting and managing background services (daemons).

  8. Which directory is the standard location for system-wide configuration files?

    1. /home

    2. /etc

    3. /var

    4. /tmp

    Show answer and explanation

    Correct answer

    • /etc

    /etc contains configuration files for the system and installed applications.

  9. What does the chmod command primarily modify?

    1. File ownership

    2. File permissions

    3. File content

    4. File location

    Show answer and explanation

    Correct answer

    • File permissions

    chmod changes the read, write, and execute permissions for user, group, and others on a file or directory.

  10. Question 10

    Link to question

    Which command is used to update the package index on Debian-based systems?

    1. yum update

    2. apt update

    3. dnf refresh

    4. pacman -Syu

    Show answer and explanation

    Correct answer

    • apt update

    apt update refreshes the list of available packages and their versions from configured repositories.

  11. Question 11

    Link to question

    What is the purpose of the /tmp directory in Linux?

    1. To store system logs

    2. To hold temporary files

    3. To manage user home directories

    4. To store kernel modules

    Show answer and explanation

    Correct answer

    • To hold temporary files

    /tmp is designated for temporary files that may be deleted automatically during system maintenance or reboot.

  12. Question 12

    Link to question

    Which command is used to display the contents of a text file line by line?

    1. cat

    2. less

    3. head

    4. tail

    Show answer and explanation

    Correct answer

    • less

    less allows viewing file contents page by page, making it suitable for large text files.

  13. Question 13

    Link to question

    What is the function of the sudo command in Linux?

    1. To switch user accounts

    2. To execute commands with elevated privileges

    3. To list directory contents

    4. To compress files

    Show answer and explanation

    Correct answer

    • To execute commands with elevated privileges

    sudo allows a permitted user to run a command as the superuser or another user, as defined in the sudoers file.

  14. Question 14

    Link to question

    Which network utility is used to test the reachability of a host?

    1. ftp

    2. ping

    3. ssh

    4. telnet

    Show answer and explanation

    Correct answer

    • ping

    ping sends ICMP echo requests to a target host to verify connectivity and measure response time.

  15. Question 15

    Link to question

    What is the default shell for many Linux distributions?

    1. sh

    2. bash

    3. zsh

    4. fish

    Show answer and explanation

    Correct answer

    • bash

    Bash (Bourne Again SHell) is the default shell on most modern Linux distributions due to its widespread adoption and features.

Read all flashcards

Recall the answer before opening each card.

What command creates a new directory?

mkdir – creates a new empty directory. Use rmdir to remove empty directories.

What is the UID of the root user?

0 – the root user has a UID of 0, granting full administrative privileges.

Which command displays your current directory?

pwd – prints the full path of the current working directory.

What is the role of GRUB?

GRUB loads the Linux kernel and initializes core system components during the boot process.

How does the kernel enable multitasking?

Through process scheduling – it allocates CPU time among multiple programs.

What file extension indicates a tar and gzip archive?

.tar.gz – combines tar for archiving and gzip for compression.

What is systemd responsible for?

systemd initializes and manages system services (daemons) after the kernel starts.

Which directory holds system-wide configuration files?

/etc – contains configuration files for the system and installed applications.

What does chmod modify?

File permissions – the read, write, and execute permissions for user, group, and others.

Which command updates the package index on Debian systems?

apt update – refreshes the list of available packages from repositories.

What is the purpose of /tmp?

To hold temporary files that may be deleted automatically during maintenance or reboot.

Which command views a text file page by page?

less – allows scrolling through a file one page at a time.

What does sudo allow you to do?

Execute commands with elevated (superuser) privileges, as permitted by /etc/sudoers.

Which utility tests host reachability?

ping – sends ICMP echo requests to verify network connectivity.

What is the default shell on most Linux distributions?

bash (Bourne Again SHell) – the most common default command interpreter.

What command removes an empty directory?

rmdir – removes an empty directory. For non-empty, use rm -r.

Which command copies files?

cp – copies files or directories from one location to another.

What does the .tar extension indicate?

A tape archive file – it bundles multiple files into one without compression.

How can you see all running processes?

Use ps aux or top – these display process information including PID and CPU usage.

What command shows disk usage of files and directories?

du – estimates file space usage. Use df for overall filesystem disk usage.

Active recall deck

Practice Linux+ with real flashcards

Read the prompt, commit to an answer, then flip the card. Move through the deck at your own pace and repeat any topic that does not come back quickly.

20 free cards

Card 1 of 20

1 reviewed this session

Connect the concepts

Your Linux+ study mind map

Open a branch to connect a topic with its practice questions and explanations. Use the map to choose your next review topic.

Exam-focused analysis

What this Linux+ practice set measures

This is an analysis of the practice bank, not a claim about the vendor's live exam blueprint. Use it to identify the knowledge, judgment, and recall patterns exercised here, then verify your coverage against the current official exam guide.

System Initialization and Boot Process

The boot process begins with the GRUB bootloader, which loads the Linux kernel. The kernel then initializes hardware and starts process scheduling to manage CPU time among programs. Modern distributions use systemd to manage services during and after boot. Understanding these components is critical for troubleshooting startup issues and service management on Linux systems.

  • GRUB (Grand Unified Bootloader) loads the kernel and initializes system components.
  • The kernel uses process scheduling to enable multitasking by sharing CPU time.
  • systemd is the system and service manager for modern Linux distributions.
  • The root user (UID 0) has full administrative privileges.

File System Navigation and Management

Efficient Linux administration requires familiarity with file system commands and the Filesystem Hierarchy Standard. Commands like mkdir create directories, pwd shows the current path, and less displays file contents page by page. Key directories include /etc for configuration files, /tmp for temporary files, and the use of .tar.gz for compressed archives. Mastery of these commands enables effective file management.

  • mkdir creates a new directory; rmdir removes empty directories.
  • pwd prints the current working directory path.
  • less allows viewing text files line by line, suitable for large files.
  • /etc stores system-wide configuration files; /tmp holds temporary files.
  • .tar.gz is a common extension for compressed archives using tar and gzip.

User and Permission Management

User accounts and file permissions are central to Linux security. The root account has UID 0 and unlimited access. The chmod command modifies file permissions (read, write, execute) for user, group, and others. The sudo command allows authorized users to execute commands with elevated privileges, as defined in the /etc/sudoers file. These tools ensure proper access control.

  • The root user is identified by UID 0.
  • chmod changes permissions on files or directories.
  • sudo lets permitted users run commands as the superuser.
  • Permissions include read (r), write (w), and execute (x) for three classes.

System Services and Networking

Linux systems rely on package managers and network utilities for software installation and connectivity. On Debian-based systems, apt update refreshes the package index from repositories. The ping command tests host reachability using ICMP echo requests. The default shell, bash, provides the command-line interface for executing these tools. Understanding these components is essential for system maintenance and troubleshooting.

  • apt update updates the package list on Debian-based distributions.
  • ping sends ICMP packets to verify network connectivity to a host.
  • bash (Bourne Again SHell) is the default shell on most Linux distributions.
  • Compressed archives often have .tar.gz extensions using tar and gzip.

Study workflow

Turn one Linux+ attempt into a study plan

  1. 1

    Set Up a Lab Environment

    Install a Linux distribution (e.g., Ubuntu Server) in a virtual machine or on a spare system. This provides a safe space to practice commands without affecting your main system. Use snapshots to revert to a clean state after experiments.

  2. 2

    Practice Command Syntax Daily

    Dedicate 15 minutes each day to typing commands from the practice bank: mkdir, pwd, chmod, sudo, apt, ping, less, etc. Focus on options and common arguments. Use the man pages to explore additional flags.

  3. 3

    Understand the Boot Process

    Reboot your lab system and observe GRUB menu. Then check systemd services with systemctl status. Trace the sequence from BIOS/UEFI to GRUB to kernel to systemd. This reinforces the initialization flow tested in the practice bank.

  4. 4

    Create a Study Schedule for Weak Areas

    Identify topics where you answer incorrectly in practice tests. For example, if you struggle with permissions, create files and chmod them with different numeric and symbolic modes until you are comfortable. Group related commands together.

  5. 5

    Simulate Exam Conditions

    Set a timer and answer 15 random questions from the practice bank without notes. Afterward, review explanations for any mistakes. Repeat this process to build recall speed and accuracy under time pressure.

FAQ

Questions about this exam practice page

Clear boundaries on what the bank covers, how to use it, and where official vendor information still matters.

What is the difference between GRUB and systemd in the boot process?+

GRUB is the bootloader that loads the Linux kernel into memory and initializes basic hardware. After the kernel starts, systemd takes over as the system and service manager, handling the startup of daemons and services. Together, they form the boot sequence.

Why is the root user's UID 0 important?+

UID 0 is reserved for the superuser, granting unrestricted access to all system resources. This UID allows root to bypass permission checks on files and processes. CompTIA Linux+ expects you to know that UID 0 signifies the most privileged account.

How do I update package lists and upgrade packages on Debian-based systems?+

Use 'apt update' to refresh the package index from repositories, then 'apt upgrade' to install newer versions of installed packages. This two-step process ensures you get the latest updates without breaking dependencies.

What does the chmod 755 command do?+

chmod 755 sets permissions such that the owner has read, write, and execute (rwx), group has read and execute (r-x), and others have read and execute (r-x). This is common for executable scripts and directories where users need access but not write permission.

What is the purpose of the /tmp directory?+

/tmp holds temporary files created by applications or users. Files here may be deleted automatically on reboot or via system cleanup jobs. It is world-writable but often uses the sticky bit to prevent users from deleting others' files.

Keep studying

Build the next review session

Browse another free bank or use the study strategy guide to turn your misses into spaced review.