CompTIA A+ guideCore 2 skills
macOS and Linux for A+ Core 2: Commands, Files, and Features
Learn the 27 Linux commands and 5 configuration files on 220-1202 by task, with the Windows tool you already know, then map each macOS feature to the job it does.
Short answer
Core 2 objective 1.9 lists 27 Linux commands, from ls, chmod, and grep to apt, dnf, ip, dig, and nano, plus five configuration files (/etc/passwd, /etc/shadow, /etc/hosts, /etc/fstab, /etc/resolv.conf), systemd, the kernel, the bootloader, and the root account. Objective 1.8 covers macOS: installing apps from .dmg, .pkg, and .app files, system folders, Apple ID, and features such as Time Machine, FileVault, Keychain, Spotlight, Disk Utility, and Force Quit. Learn each one by the task it does and the Windows tool that does the same job.
What Core 2 asks about Linux and macOS
Three 220-1202 objectives cover non-Windows systems. Objective 1.9 identifies Linux client features and tools. Objective 1.8 explains macOS features and tools. Objective 1.1 lists the operating system types and filesystems you need to recognize. None of them expects you to administer a server. The level is a support tech who can find a file, check a disk, install a package, and read a configuration file without panicking.
Linux commands by task, next to the Windows tool you know
All 27 commands below are on the 1.9 list. The Windows column is there to anchor the idea. Entries marked "not on the A+ list" are real Windows commands that 220-1202 does not name.
| Task | Linux (1.9) | Closest Windows equivalent |
|---|---|---|
| List files in a directory | ls | dir |
| Show where you are | pwd | cd with no argument |
| Move or rename | mv | move (not on the A+ list) |
| Copy | cp | copy (not on the A+ list), robocopy |
| Delete | rm (rm -r for a directory) | del (not on the A+ list), rmdir |
| Change permissions | chmod | The Security tab in a file's properties |
| Change the owner | chown | Taking ownership in advanced security settings |
| Search inside files for text | grep | findstr (not on the A+ list) |
| Find files by name or other attributes | find | File Explorer search |
| Check and repair a filesystem | fsck | chkdsk |
| Attach a filesystem to the directory tree | mount | Drive letters in Disk Management |
| Run one command as root | sudo | Run as administrator |
| Switch to another user, often root | su | Signing in as that user |
| Install or update packages, Debian and Ubuntu | apt | Installers or the Microsoft Store |
| Install or update packages, Fedora and Red Hat family | dnf | Installers or the Microsoft Store |
| Show addresses and routes | ip | ipconfig |
| Test reachability | ping | ping |
| Request a URL, for example to test a web service | curl | A browser |
| Query DNS | dig | nslookup |
| Trace the path to a host | traceroute | tracert |
| Read a command's manual | man | [command name] /? |
| Print a file's contents | cat | type (not on the A+ list) |
| Watch processes live | top | Task Manager |
| List processes once | ps | Task Manager, Details tab |
| Show disk space used by files and folders | du | Folder properties |
| Show free space on each filesystem | df | This PC in File Explorer |
| Edit a text file in the terminal | nano | Notepad |
The Windows half of this table is covered in the Windows command line guide.
chmod in two minutes
Linux permissions are read (4), write (2), and execute (1) for three classes: the owner, the group, and everyone else. Add the numbers for each class.
chmod 640 payroll.csvgives the owner read and write (6), the group read (4), and others nothing (0).chmod 755 cleanup.shgives the owner everything (7) and everyone else read and execute (5).chmod u+x cleanup.shadds execute for the owner without touching anything else.
A script that will not run with "Permission denied" usually needs the execute bit, which ties into the scripting guide.
sudo vs su
sudo runs a single command with elevated rights, and you return to your normal account when it finishes. su opens a shell as another account, root by default, and you stay in it until you exit. The root account has full control of the system. The passwd(5) manual notes that the superuser has user ID 0. Day-to-day work belongs in a normal account, with sudo for the few commands that need it.
Five configuration files and what each one controls
| File | What it holds | Support scenario |
|---|---|---|
/etc/passwd | One line per account: name, password field, UID, GID, comment, home directory, shell | An "x" in the password field means the real hash is in /etc/shadow |
/etc/shadow | Password hashes and aging information | The shadow(5) manual says it "must not be readable by regular users" |
/etc/hosts | A static table that maps IP addresses to hostnames | A stale entry sends one PC to the wrong server while everyone else is fine |
/etc/fstab | Filesystems the system can mount, with mount points and options | A new data disk does not appear after a reboot because nobody added it here |
/etc/resolv.conf | Resolver settings, including nameserver lines | Names do not resolve, but pinging an IP address works |
The last row is the Linux version of a classic Core 1 networking clue: if IP works and names do not, check DNS.
OS components. systemd starts and manages services after boot. The kernel talks to the hardware. The bootloader loads the kernel. A support tech mostly meets systemd when restarting a service.
Filesystems from objective 1.1
| Filesystem | Where you meet it |
|---|---|
| NTFS | Windows system and data drives |
| ReFS | Windows, mainly on servers and storage pools |
| FAT32 | Older removable media. It cannot store a single file of 4 GB or larger |
| exFAT | Flash drives and memory cards shared between Windows and macOS |
| ext4 | The common default on many Linux distributions |
| XFS | Linux, common on Red Hat family systems |
| APFS | macOS |
macOS features mapped to the job they do
| Job | macOS feature (1.8) |
|---|---|
| Back up automatically | Time Machine. Apple says it makes hourly backups for the past 24 hours, daily backups for the past month, and weekly backups for older months, deleting the oldest when the disk is full. Apple recommends a backup device with at least twice the Mac's storage |
| Encrypt the startup disk | FileVault. Apple says it encodes the data on the startup disk so unauthorized users can't access it. Keep the recovery key somewhere other than the Mac |
| Store passwords and certificates | Keychain |
| Find a file or app quickly | Spotlight |
| Close a frozen app | Force Quit. Apple's shortcut is Option, Command, and Esc together |
| Check or repair a disk, erase, or partition | Disk Utility |
| Run commands | Terminal, which accepts many of the same commands as Linux |
| Switch between full-screen apps and desktops | Mission Control and multiple desktops, with Gestures on the trackpad |
| Browse files, launch apps | Finder and the Dock |
| Start work on one Apple device and continue on another | Continuity, and iCloud for iMessage, FaceTime, and Drive |
Installing and removing apps. A .dmg is a disk image you open, usually to drag an app into /Applications. A .pkg is an installer package that runs an installer. An .app is the application bundle itself. The App Store is the managed route, and Apple ID plus corporate restrictions decide what a user may install. Most apps uninstall by moving them from /Applications to the Trash, though some ship their own uninstaller.
System folders. /Applications holds apps for all users, /Users holds home folders, /Library and /System hold system-wide resources, and each user has a Library folder inside their home folder.
The names have changed since the objectives were written. The 220-1202 objectives say "System Preferences." Apple renamed it System Settings in macOS Ventura (13). Apple's own FileVault instructions show the change: the macOS Monterey (12) page says "System Preferences," and the Ventura page says "System Settings." The objectives also list Rapid Security Response. Apple's current support pages use the name Background Security Improvements for security protections delivered between software updates, supported from macOS 26.1. Know the exam's terms and the names you will see on a current Mac.
Practice in a VM and on a Mac
Install a Linux distribution in a virtual machine and run every command in the first table at least once. Use man before searching the web. On a Mac, or with a friend's Mac, find each feature in the last table. When the commands feel automatic, practice A+ Core 2 Linux and macOS questions with Passy.
Trust the source
Official sources
Exam policies can change. Use these primary sources for the most current details.
- CompTIA A+ 220-1202 exam objectives, version 3.0CompTIA↗
- passwd(5)Linux man-pages project↗
- shadow(5)Linux man-pages project↗
- hosts(5)Linux man-pages project↗
- fstab(5)Linux man-pages project↗
- resolv.conf(5)Linux man-pages project↗
- Back up your Mac with Time MachineApple Support↗
- Encrypt Mac data with FileVault (macOS Ventura 13)Apple Support↗
- Encrypt Mac data with FileVault (macOS Monterey 12)Apple Support↗
- How to force an app to quit on your MacApple Support↗
- About Background Security Improvements for iOS, iPadOS, and macOSApple Support↗