Sub topic 11
Practicing operating system administration
This chapter assumes you have a working virtual machine lab with one Windows guest and one Linux guest, and that you know how to take and restore snapshots. The A+ Core 2 exam tests operating system tasks heavily, and reading about them is a poor substitute for doing them. Here you will build a repeatable practice routine on your lab guests.
What to practice and why
The Core 2 operating system objectives reward muscle memory. Many exam questions ask where a setting lives, which tool fits a symptom, or what a command does. Practicing on a real system gives you that recall.
Group your practice into five areas:
| Area | Windows tools | Linux tools |
|---|---|---|
| Users and permissions | Settings, Computer Management, `net user` | `useradd`, `chmod`, `chown`, `id` |
| Processes and services | Task Manager, `services.msc` | `ps`, `top`, `systemctl` |
| Storage | Disk Management, `chkdsk` | `df`, `lsblk`, `mount` |
| Logs and diagnosis | Event Viewer, Reliability Monitor | `journalctl`, `/var/log` |
| Updates and repair | Windows Update, `sfc`, `DISM` | `apt` or `dnf`, package logs |
Treat the table as a checklist. Tick off each cell only after you have used the tool to change or inspect something on a guest.
A safe practice loop
Every exercise in this chapter follows one loop. You snapshot the guest, change or break something on purpose, diagnose it, fix it, and then revert to the snapshot so the next attempt starts clean.
Reverting matters because it removes the temptation to leave a half-fixed guest around. It also lets you repeat the same fault until you can fix it without notes.
Windows administration tasks
Work through these tasks on the Windows guest. For each one, do it first in the graphical tool and then from the command line if a command exists.
- Create a standard user and an administrator account. Log in as each and note what the standard user cannot do, such as installing software for all users.
- Open Task Manager. Sort by memory, find the Startup tab, and disable one startup item. Reboot and confirm the change.
- Open
services.msc. Stop a non-critical service, such as Print Spooler, and note its startup type options: Automatic, Manual, and Disabled. - Open Disk Management and read the partition layout. Note which partition is the boot or system partition and which is the recovery partition.
- Open Event Viewer. Find the most recent error in the System log and read its source and event ID.
- Open
msconfigandregeditjust to read them. Know what each is for before you change anything.
This elevated PowerShell session covers accounts, services, and logs:
net user labuser * /add
net localgroup Users
Get-Service | Where-Object Status -eq Running | Select-Object -First 5
Get-WinEvent -LogName System -MaxEvents 5The * after the user name makes net user prompt you for a password instead of putting it in the command history. net localgroup Users lists the members of the Users group, so you can confirm the account exists.
Repair commands
The exam expects you to know the order of the repair tools and what each one checks. Run these from an elevated prompt in the lab VM:
sfc /scannow
DISM /Online /Cleanup-Image /RestoreHealth
chkdsk C: /scansfc /scannowchecks protected system files and replaces damaged ones from a local cache.DISM /Online /Cleanup-Image /RestoreHealthrepairs the component store thatsfcdraws from. Ifsfcreports files it cannot fix, runDISMand then runsfcagain.chkdsk C: /scanscans the file system online for errors. Without/scan,chkdskmay ask to schedule a check at the next restart.
To practice, take a snapshot, run all three commands on a healthy guest, and record how long each takes and what the output says. A healthy baseline makes abnormal output easier to recognize later.
Linux administration tasks
The A+ exam covers Linux at a basic level: file and directory commands, permissions, package management, and process inspection. Practice these on the Linux guest:
sudo groupadd labgrp
sudo useradd -m -G labgrp labuser
sudo mkdir /srv/labshare
sudo chgrp labgrp /srv/labshare
sudo chmod 770 /srv/labshare
ls -ld /srv/labshare
sudo -u labuser touch /srv/labshare/test.txt
id labuser
df -h
ps aux --sort=-%mem | head -5This script creates a group and a user, then builds a shared directory that only the owner and the group can use. The mode 770 gives the owner and group full access and gives everyone else none. ls -ld shows the result, and the sudo -u labuser touch line proves the new user can write there. The last two commands show disk usage and the five largest memory consumers.
Next, break the permissions. Run sudo chmod 700 /srv/labshare, then repeat the touch command as labuser. You should get "Permission denied". Fix it by restoring 770. This single exercise teaches the symptom, the diagnostic command (ls -ld), and the fix.
Updates and package management
Practice updates on both guests, because the exam asks about patching and about the risks of updating.
- On Windows, open Windows Update, pause updates, check the update history, and find the option to uninstall a recent update.
- On Linux, refresh package lists and upgrade. On Debian-based guests that is
sudo apt updatefollowed bysudo apt upgrade. On Fedora-based guests it issudo dnf upgrade.
Take a snapshot first. A snapshot is your rollback plan, and the exam expects you to know that a backup or restore point comes before risky changes.
Turning tasks into fault scenarios
After you can do each task, start creating faults for yourself. Here are a few that map to common exam symptoms:
- Set a needed service to Disabled and see which feature stops working.
- Fill a virtual disk until
df -hor Disk Management shows almost no free space, then find what is using it. - Change a folder's permissions so a standard user cannot open it.
- Add too many startup items and compare boot time before and after.
Log each fault in a short table with the symptom, the tool that revealed the cause, the fix, and the time it took. The next chapters build on this log when you apply the formal troubleshooting methodology.
Exercise
On the Windows guest, sfc /scannow reports that it found corrupt files but could not repair some of them. Which command do you run next, and what do you do after it finishes?
Show answer
Run DISM /Online /Cleanup-Image /RestoreHealth to repair the component store that sfc uses as its source. When it finishes, run sfc /scannow again to repair the protected system files.
Exercise
A user named labuser gets "Permission denied" when writing to /srv/labshare. The command ls -ld /srv/labshare shows drwx------ 2 root labgrp. What is wrong, and what command fixes it?
Show answer
The mode is 700, so only the owner (root) has access and the group gets none. sudo chmod 770 /srv/labshare gives the owner and the labgrp group full access, so labuser can write if the user is a member of labgrp.