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.

TaskLinux (1.9)Closest Windows equivalent
List files in a directorylsdir
Show where you arepwdcd with no argument
Move or renamemvmove (not on the A+ list)
Copycpcopy (not on the A+ list), robocopy
Deleterm (rm -r for a directory)del (not on the A+ list), rmdir
Change permissionschmodThe Security tab in a file's properties
Change the ownerchownTaking ownership in advanced security settings
Search inside files for textgrepfindstr (not on the A+ list)
Find files by name or other attributesfindFile Explorer search
Check and repair a filesystemfsckchkdsk
Attach a filesystem to the directory treemountDrive letters in Disk Management
Run one command as rootsudoRun as administrator
Switch to another user, often rootsuSigning in as that user
Install or update packages, Debian and UbuntuaptInstallers or the Microsoft Store
Install or update packages, Fedora and Red Hat familydnfInstallers or the Microsoft Store
Show addresses and routesipipconfig
Test reachabilitypingping
Request a URL, for example to test a web servicecurlA browser
Query DNSdignslookup
Trace the path to a hosttraceroutetracert
Read a command's manualman[command name] /?
Print a file's contentscattype (not on the A+ list)
Watch processes livetopTask Manager
List processes oncepsTask Manager, Details tab
Show disk space used by files and foldersduFolder properties
Show free space on each filesystemdfThis PC in File Explorer
Edit a text file in the terminalnanoNotepad

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.csv gives the owner read and write (6), the group read (4), and others nothing (0).
  • chmod 755 cleanup.sh gives the owner everything (7) and everyone else read and execute (5).
  • chmod u+x cleanup.sh adds 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

FileWhat it holdsSupport scenario
/etc/passwdOne line per account: name, password field, UID, GID, comment, home directory, shellAn "x" in the password field means the real hash is in /etc/shadow
/etc/shadowPassword hashes and aging informationThe shadow(5) manual says it "must not be readable by regular users"
/etc/hostsA static table that maps IP addresses to hostnamesA stale entry sends one PC to the wrong server while everyone else is fine
/etc/fstabFilesystems the system can mount, with mount points and optionsA new data disk does not appear after a reboot because nobody added it here
/etc/resolv.confResolver settings, including nameserver linesNames 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

FilesystemWhere you meet it
NTFSWindows system and data drives
ReFSWindows, mainly on servers and storage pools
FAT32Older removable media. It cannot store a single file of 4 GB or larger
exFATFlash drives and memory cards shared between Windows and macOS
ext4The common default on many Linux distributions
XFSLinux, common on Red Hat family systems
APFSmacOS

macOS features mapped to the job they do

JobmacOS feature (1.8)
Back up automaticallyTime 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 diskFileVault. 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 certificatesKeychain
Find a file or app quicklySpotlight
Close a frozen appForce Quit. Apple's shortcut is Option, Command, and Esc together
Check or repair a disk, erase, or partitionDisk Utility
Run commandsTerminal, which accepts many of the same commands as Linux
Switch between full-screen apps and desktopsMission Control and multiple desktops, with Gestures on the trackpad
Browse files, launch appsFinder and the Dock
Start work on one Apple device and continue on anotherContinuity, 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.