Practise in a virtual machine.
One commenter recommends an Ubuntu virtual machine in free VirtualBox, adding that yum and rpm work much like apt. They stress that output-based questions rarely make sense unless you have run the commands.

Validates knowledge of Linux system management, services and users, security, automation and scripting, and troubleshooting.
Linux+ tests whether you can run Linux servers from the command line, covering storage, services, users, security, scripting and troubleshooting. Expect command output, logs and configuration files. Learn the objectives with one course or book, practise every task in your own virtual machines, then use timed tests to find gaps.
Example scenario: A new disk has been added to a server running out of space in /var. How would you make the extra space available without reinstalling?
Example scenario: A web service fails to start after a reboot. Which commands would you run to see why?
Example scenario: SSH logs show thousands of failed root logins from the internet. Which settings would you change first?
Example scenario: You need to create the same ten user accounts on twenty servers. How would you automate it and keep the script under version control?
Example scenario: A server responds slowly and the load average is high, but CPU use is low. What would you check next?
Official XK0-006 exam objectives · XK0-006 (V8)
Choose the best answer from the options, or the stated number of answers when a question asks for more than one.
A shell script must stop as soon as any command in it fails. Which line near the top does this?
A. set -e exits the script when a command returns an error. set -x only prints each command as it runs.
Complete a hands-on task in a simulated environment, such as configuring a setting, reading output or putting steps in order.
Put these steps in order to add a new disk to a server and keep it mounted after a reboot.
Partition the disk, create a file system on the partition, mount it at a directory, then add an entry to /etc/fstab. The file system must exist before it can be mounted, and fstab makes the mount permanent.
Read the objectives and set up two virtual machines, one Debian-based and one Red Hat-based. Choose one main course or book, and practise every command as you learn it.
Most candidates spend 60–120 hours. Plan for the low end if you use Linux daily; plan for the high end if the command line is new to you.
Use one complete XK0-006 course or the Sybex book as your main resource, and the objectives as your checklist. Practise everything on your own Linux virtual machines.
Run every command yourself. Install a Debian-based and a Red Hat-based distribution in free virtualization software, and repeat each task on both until you can do it without notes.
Use timed tests to find weak domains, then go back to your virtual machines and run the commands you missed. Read the output carefully, because many questions depend on it.
See all 5 Linux+ practice tests →Buy a voucher and schedule with Pearson VUE. The voucher is valid for 12 months, subject to the exam retirement date.
One commenter recommends an Ubuntu virtual machine in free VirtualBox, adding that yum and rpm work much like apt. They stress that output-based questions rarely make sense unless you have run the commands.
One candidate who passed with the Sybex book and daily Linux use suggests building virtual machines for the labs and focusing on ACLs, logs, cron and scripting.