Some links on PCFix411 may earn a commission from GearReady, software partners, or Amazon Associates at no extra cost to you.
One of the fastest ways to learn Linux is to practice on a system you are not afraid to break. A virtual machine gives you exactly that. With VMware Workstation, you can build a disposable Linux lab, take snapshots before risky changes, clone known-good machines and practice administration without turning your main computer into the experiment.
This guide focuses on the lab method rather than memorizing a giant command list. The goal is to create repeatable exercises for files, permissions, processes, networking, software management, shell scripting and troubleshooting.
1. Build one clean Linux virtual machine first
Start with a mainstream distribution whose documentation is easy to find. Ubuntu or Debian is a strong beginner choice; Fedora is useful for learning a Red Hat-style environment. More advanced users can add Arch or another distribution later.
If you need help with the VMware host setup itself, PCFix411’s VMware Workstation on Linux testing guide covers virtual-machine creation, networking modes and snapshots in more detail.
2. Give the VM enough resources, not all your resources
| Resource | Practical starting point | Watch for |
|---|---|---|
| CPU | 2 virtual cores for basic CLI work | Do not starve the host by assigning every core |
| RAM | 2-4 GB for a light desktop/server lab | Increase only if the guest workload needs it |
| Storage | 30-50 GB thin-provisioned for a learning VM | Snapshots consume host storage over time |
| Network | NAT for ordinary internet access | Use host-only when you want an isolated lab |
A command-line lab does not need gaming-class hardware. Stable storage and enough RAM for both host and guest matter more than assigning excessive resources.
3. Take a baseline snapshot before experimenting
After the guest OS is installed, updated and working, shut down unnecessary applications and take a clearly named baseline snapshot such as Clean Install – Updated. This becomes your recovery point.
Snapshots are excellent for short-term rollback before a lab exercise, but they are not a backup strategy. Keep important scripts and notes outside the VM or in a separate backup location.
4. Learn navigation before administration
Practice moving around the filesystem until these commands are automatic:
pwd— show the current directoryls— list files and directoriescd— change directoriesmkdirandrmdir— create and remove directoriescp,mvandrm— copy, move and remove filestouch— create an empty file or update timestampsfind— search the filesystem
Create a directory tree specifically for practice. Do not learn destructive commands inside important folders.
5. Practice reading files and command output
Linux administration involves reading text constantly. Learn:
catfor short fileslessfor paging through longer outputheadandtailfor beginning/end viewsgrepfor matching text- pipes such as
|to pass one command’s output into another - redirection with
>and>>
A useful drill is to create a text file, search it with grep, sort output, redirect results to another file and then inspect that file with less.

6. Learn users, groups and permissions with a controlled lab
Permissions make more sense when you create test users and files yourself. Practice:
whoamiandidsudofor administrative commandschmodfor permission changeschownandchgrpfor ownership- creating users/groups with your distribution’s supported tools
Create two test users, a shared group and a folder that only group members can modify. Then deliberately remove access and restore it. This teaches more than memorizing numeric modes without context.
7. Practice process management
Start a harmless long-running command or application and learn how to inspect and stop it. Useful tools include:
pstoporhtopif installedpgrepkillandkillallused carefullyjobs,bgandfgfor shell jobs
Do not jump immediately to force-killing processes. Learn the difference between a normal termination request and an ungraceful forced stop.
8. Learn service management
On most modern mainstream distributions, systemd manages services. Practice with a noncritical service:
systemctl statussystemctl startsystemctl stopsystemctl restartsystemctl enableanddisablejournalctlfor logs
Before changing a service, take a snapshot and note its original state. Recovery is part of the exercise.
9. Build a networking lab
Networking skills become easier when you can see both sides. Clone the VM so you have two Linux guests and place them on the same host-only network. Then practice:
ip addrandip routepingssfor listening sockets/connectionscurlfor HTTP requestssshbetween the two guests- hostname and DNS lookup tools available on your distribution
| VMware network mode | Good lab use |
|---|---|
| NAT | Guest needs internet access while staying behind the host’s connection |
| Bridged | Guest should appear as another device on the physical LAN |
| Host-only | Isolated host/VM or multi-VM practice network |
For security-sensitive experiments, host-only networking can help keep the lab isolated from the rest of your network.
10. Learn the package manager for each distribution family
Package management differs by distribution. Debian/Ubuntu systems commonly use APT, while Fedora uses DNF. Practice searching, installing, updating and removing a harmless package.
Do not blindly paste repository commands from random websites. Package trust is part of Linux administration. The PCFix411 Linux privacy and security guide explains why trusted repositories and controlled software sources matter.
11. Learn storage without risking real disks
Add a small secondary virtual disk to the VM and practice storage commands on that disk rather than on your host. Depending on the exercise, learn:
lsblkblkiddfanddu- partitioning tools appropriate for the distribution
mountandumount- filesystem creation on the disposable virtual disk
Take a snapshot first. Partitioning and filesystem commands can destroy data when aimed at the wrong device, which is exactly why a virtual lab is valuable.
12. Learn shell scripting by automating boring tasks
Do not begin with a 500-line script. Start with tasks you already understand manually. Examples:
- create a dated backup folder
- report disk usage
- search logs for a keyword
- check whether a service is running
- loop through files and rename copies
Learn variables, quoting, exit codes, if statements, loops and functions gradually. Use shellcheck if available to catch common shell-script mistakes.
13. Deliberately break a safe VM and repair it
Troubleshooting is where Linux skills become practical. Create controlled failures:
- change a file permission so an application cannot read it
- stop a service and diagnose why the application is unavailable
- fill a small disposable filesystem
- configure an incorrect hostname entry and repair it
- break a shell script and debug the exit status
Write down the symptom, the command used to diagnose it, the root cause and the fix. This creates your own troubleshooting playbook.
14. Use snapshots as checkpoints, not a substitute for thinking
Before a risky module, create a snapshot such as Before Permissions Lab. After you successfully complete and understand the exercise, delete unnecessary snapshots according to your storage plan and move forward.
If every mistake is solved by instantly reverting, you miss the troubleshooting practice. Try to repair the problem first; use the snapshot when the lab is genuinely unrecoverable or when you need a clean repeat.
15. Build a 30-day Linux practice ladder
| Week | Focus | Outcome |
|---|---|---|
| 1 | Navigation, files, text, permissions | Comfort moving around and managing basic files safely |
| 2 | Processes, services, logs, packages | Basic system administration confidence |
| 3 | Networking, SSH, storage | Diagnose connectivity and manage disposable disks |
| 4 | Shell scripting and troubleshooting drills | Automate tasks and solve controlled failures |
Practice-lab rules that prevent bad habits
- Read the command before you run it.
- Know which directory and device you are operating on.
- Use
sudoonly when the task requires it. - Take a snapshot before destructive storage/network exercises.
- Keep notes on what failed and how you fixed it.
- Repeat labs from memory instead of only copying commands.
- Use official distribution documentation when syntax or behavior changes.
- Do not treat a VM snapshot as your only backup.
Bottom line
VMware Workstation turns Linux learning into a low-risk, repeatable lab. Build one clean VM, snapshot it, add a clone for networking, attach disposable virtual disks for storage exercises and deliberately create failures you can diagnose. The goal is not to memorize every Linux command; it is to understand what the commands change and how to recover when something goes wrong.
Featured photography: Matthew Fournier / Unsplash. In-article photography: Arnold Francisca / Unsplash.






