All Practice Exams

199+ Free CompTIA Linux+ Practice Questions

Pass your CompTIA Linux+ Certification (XK0-005) exam on the first try — instant access, no signup required.

✓ No registration✓ No credit card✓ No hidden fees✓ Start practicing immediately
~60-70% Pass Rate
199+ Questions
100% Free
1 / 199
Question 1
Score: 0/0

Which command displays the current working directory in Linux?

A
B
C
D
to track
2026 Statistics

Key Facts: CompTIA Linux+ Exam

~60-70%

Estimated Pass Rate

Industry estimate

720/900

Passing Score

CompTIA

60-80 hrs

Study Time

Recommended

$96,750-125K

Linux Pro Salary

Glassdoor 2024

$358-414

Exam Cost

CompTIA

Lifetime

Cert Valid

No renewal required

CompTIA Linux+ (XK0-005) is the leading Linux certification validating skills in system management (32%), security (21%), scripting/automation (19%), and troubleshooting (28%). The 90-question exam requires 720/900 to pass with an estimated 60-70% first-attempt pass rate. Updated in 2022 with modern topics: containers, Kubernetes basics, Git, Ansible, and Infrastructure as Code. Linux professionals earn $96,750-125,000 annually. Lifetime certification - no renewal required.

Sample CompTIA Linux+ Practice Questions

Try these sample questions to test your CompTIA Linux+ exam readiness. Each question includes a detailed explanation. Start the interactive quiz above for the full 199+ question experience with AI tutoring.

1Which command displays the current working directory in Linux?
A.cd
B.pwd
C.ls
D.dir
Explanation: The pwd (print working directory) command displays the full pathname of the current directory you are in. The cd command changes directories, ls lists directory contents, and dir is a Windows command (though some Linux distributions alias it to ls).
2A system administrator needs to create a new directory structure /opt/app/data/logs. Which command will create all necessary parent directories if they do not exist?
A.mkdir /opt/app/data/logs
B.mkdir -p /opt/app/data/logs
C.mkdir --parents /opt/app/data/logs
D.Both B and C are correct
Explanation: The mkdir -p (or --parents) option creates parent directories as needed. If any component of the path does not exist, it will be created. Without this option, mkdir would fail if parent directories do not exist. Both -p and --parents are equivalent options.
3What is the default file system type used by most modern Linux distributions?
A.ext3
B.ext4
C.XFS
D.NTFS
Explanation: ext4 (fourth extended filesystem) is the default file system for most modern Linux distributions, including Ubuntu, Debian, and Fedora. It offers improvements over ext3 including larger file and volume sizes, extents, and faster file system checking. XFS is also common on enterprise systems, particularly RHEL. NTFS is a Windows file system.
4Which command is used to display disk space usage for all mounted filesystems in human-readable format?
A.du -h
B.df -h
C.ls -lh
D.fdisk -l
Explanation: The df -h command displays disk space usage for all mounted filesystems in human-readable format (KB, MB, GB). The du command shows directory space usage, ls -lh lists files with human-readable sizes, and fdisk -l lists partition tables.
5An administrator needs to find all files in /home that are larger than 100MB. Which command should be used?
A.find /home -size +100M
B.find /home -size 100M
C.locate /home -size +100M
D.grep -r "100M" /home
Explanation: The find /home -size +100M command searches for files larger than 100MB. The + prefix means "greater than," while - would mean "less than." Without a prefix, it means "exactly." The locate command searches a database and does not support size filtering. grep searches file contents, not metadata.
6Which directory in the Linux filesystem hierarchy contains variable data files such as logs, spool files, and temporary email files?
A./etc
B./var
C./tmp
D./opt
Explanation: /var contains variable data files that are expected to change during system operation, including log files (/var/log), mail spools (/var/mail), print queues, and cached data. /etc contains configuration files, /tmp contains temporary files (cleared on reboot), and /opt contains optional application software.
7What is the purpose of the /proc filesystem in Linux?
A.Store permanent system configuration files
B.Provide an interface to kernel data structures
C.Store user home directories
D.Store temporary files
Explanation: The /proc filesystem is a virtual filesystem that provides an interface to kernel data structures. It contains information about running processes (each PID has a directory) and system information (CPU, memory, kernel parameters). It does not exist on disk but is generated dynamically by the kernel.
8Which command will recursively copy the directory /etc/nginx and all its contents to /backup/?
A.cp /etc/nginx /backup/
B.cp -r /etc/nginx /backup/
C.cp -a /etc/nginx /backup/
D.Both B and C are correct
Explanation: Both cp -r (recursive) and cp -a (archive, which implies recursive plus preserves permissions, timestamps, and symbolic links) will recursively copy directories. The -a option is generally preferred for backups as it preserves all file attributes.
9Which command is used to display information about all block devices attached to the system?
A.fdisk -l
B.lsblk
C.blkid
D.All of the above
Explanation: All three commands can display block device information. lsblk lists block devices in a tree format showing mount points. fdisk -l lists partition tables and requires root privileges. blkid displays UUIDs and filesystem types. Each provides different information useful for storage management.
10What is the purpose of the LVM (Logical Volume Manager) in Linux?
A.To encrypt disk partitions
B.To provide flexible disk space management
C.To compress files on disk
D.To create network shares
Explanation: LVM provides flexible disk space management by abstracting physical storage into logical volumes. It allows administrators to resize volumes, create snapshots, and span volumes across multiple physical disks without repartitioning. LVM does not provide encryption (use LUKS for that) or compression.

About the CompTIA Linux+ Exam

The premier Linux certification for IT professionals, covering system management, security, scripting/automation, and troubleshooting. XK0-005 was launched July 2022 with a focus on modern Linux administration including containers, orchestration, Git, and Infrastructure as Code.

Questions

90 scored questions

Time Limit

90 minutes

Passing Score

720/900

Exam Fee

$358-414 USD (CompTIA / Pearson VUE)

CompTIA Linux+ Exam Content Outline

32%

System Management

Storage, process management, kernel modules, networking, software packages, localization

21%

Security

Permissions, authentication, SELinux/AppArmor, firewalls, encryption, SSH

19%

Scripting, Containers & Automation

Bash scripting, Git, container basics, orchestration concepts, Infrastructure as Code

28%

Troubleshooting

System resources, network issues, storage problems, boot issues, hardware

How to Pass the CompTIA Linux+ Exam

What You Need to Know

  • Passing score: 720/900
  • Exam length: 90 questions
  • Time limit: 90 minutes
  • Exam fee: $358-414 USD

Keys to Passing

  • Complete 500+ practice questions
  • Score 80%+ consistently before scheduling
  • Focus on highest-weighted sections
  • Use our AI tutor for tough concepts

CompTIA Linux+ Study Tips from Top Performers

1Focus on System Management (32%) — the largest domain covering storage, processes, kernel, and networking
2Master command-line fundamentals: navigation, file operations, text processing, and package management
3Practice shell scripting: variables, conditionals, loops, functions, and exit codes
4Get hands-on with containers: Docker basics, images, containers, and Dockerfile concepts
5Understand security fundamentals: permissions (rwx, special bits), SELinux/AppArmor modes, and firewalls
6Learn troubleshooting methodology: systematic approach to resource, network, storage, and boot issues
7Use VMs or cloud instances: Install CentOS/RHEL and Ubuntu/Debian to learn both RPM and APT systems

Frequently Asked Questions

What is the CompTIA Linux+ pass rate?

CompTIA does not officially publish pass rates. Industry estimates suggest approximately 60-70% of well-prepared candidates pass on their first attempt. The exam uses scaled scoring with a passing threshold of 720/900. With 200+ practice questions and 60-80 hours of hands-on study, most candidates are well-prepared.

Does CompTIA Linux+ expire?

No — CompTIA Linux+ is a lifetime certification that does not require renewal. This makes it particularly valuable compared to other CompTIA certifications that require continuing education (CE) or recertification every 3 years.

What changed in XK0-005 vs XK0-004?

XK0-005 (July 2022) added modern topics: containers and container orchestration basics, Git version control, Ansible and Infrastructure as Code concepts, updated security with SELinux/AppArmor, and cloud-related Linux administration. The exam now focuses on modern DevOps practices and cloud-native Linux administration.

How long should I study for Linux+?

Plan for 60-80 hours of study with hands-on Linux practice over 6-8 weeks. You need practical experience with Linux commands, file systems, package management, and shell scripting. Use virtual machines or cloud instances for practice. Complete 200+ practice questions and score 85%+ consistently before scheduling.

Is Linux+ worth it in 2026?

Yes — Linux+ is highly valuable as Linux powers 96.3% of the world's top web servers, most cloud infrastructure, and all Android devices. Linux professionals earn $96,750-125,000 annually. The certification is DoD 8140 approved and demonstrates vendor-neutral Linux skills valued by employers in cloud, DevOps, cybersecurity, and system administration roles.

What jobs can I get with Linux+?

Linux+ qualifies you for: Linux System Administrator ($75-110K), DevOps Engineer ($95-145K), Cloud Engineer ($90-140K), Cybersecurity Analyst ($80-130K), Site Reliability Engineer ($100-160K), and Network Administrator ($70-100K). It's particularly valuable for roles involving AWS, Azure, GCP, and containerized applications.