P-TECH IT
All P-TECH sites online· 9:16 PM Eastern, open the status page

Lesson 13: macOS and Linux

CompTIA A+ Core 2 (220-1202) · Objectives 220-1202 1.8, 220-1202 1.9 · Download .docx

Objectives

Key terms

.dmg
macOS disk image file that mounts like a virtual drive when opened, commonly holding an app that users drag to Applications.
ls
Linux command that lists the contents of a directory; options show hidden files, permissions, owners, and sizes.
.pkg
macOS installer package that runs the Installer wizard to place files in multiple system locations, often needing administrator approval.
pwd
Linux command that prints the full path of the current working directory.
.app
macOS application bundle: a special folder containing a program and its resources that Finder displays and launches as a single icon.
mv
Linux command that moves files or directories to a new location or renames them.
App Store (macOS)
Apple's curated marketplace for downloading, updating, and purchasing reviewed Mac apps tied to the user's Apple Account.
cp
Linux command that copies files, or entire directory trees with the -r option, to a new location.
macOS app uninstallation
Removing a Mac app usually by dragging it from Applications to the Trash, or by running the developer's uninstaller for package-installed software.
rm
Linux command that deletes files, or directories and their contents with -r, without sending them to a trash folder.
/Applications
macOS folder where installed apps are stored and made available to all users of the Mac.
chmod
Linux command that changes read, write, and execute permissions for a file's owner, group, and others, using symbols or octal numbers.
/Users
macOS folder containing each account's home directory with personal folders like Desktop, Documents, and Downloads.
chown
Linux command that changes which user, and optionally which group, owns a file or directory.
/Library
macOS folder holding shared resources available to every user, such as fonts, preferences, and application support files.

The concept

220-1202 1.8 — Explain macOS features and tools: apps and installers, file system, system settings, Disk Utility and Continuity. Installing from a .dmg: A .dmg is a disk image that mounts like a removable volume. Many apps ship as an .app bundle inside it, and installing means dragging that bundle into /Applications. Gatekeeper and unverified apps: Gatekeeper blocks apps that are not from the App Store or notarized by an identified developer. After verifying the source, an administrator can allow that specific app with Open Anyway in System Settings > Privacy & Security. Time Machine backups: Time Machine is the built-in macOS backup tool. Once a backup disk is chosen, it backs up automatically and keeps hourly backups for 24 hours, daily backups for the past month, and weekly backups for all earlier months until the disk is full. FileVault encryption: FileVault provides full-disk encryption of the startup volume (XTS-AES-128 with a 256-bit key), so data at rest cannot be read without the user's credentials or the recovery key. Managed environments typically escrow the recovery key in their management system. Keychain: Keychain is the encrypted macOS credential store for Wi-Fi passwords, website and app passwords, certificates, and keys. Saved entries can be viewed, corrected, or deleted in Keychain Access (newer macOS versions also have the Passwords app). User Library preferences: Per-user settings are stored in each user's own Library folder (~/Library, which is hidden by default), in Preferences as .plist files. Because only this user is affected, the problem is in that user's Library rather than in a location shared by all users.

220-1202 1.9 — Identify Linux features and tools: file system layout, key files, commands, permissions and package managers. chmod numeric permissions: Each octal digit is the sum of r=4, w=2, x=1 for owner, group, and others. Owner rwx = 4+2+1 = 7, group r-- = 4, others --- = 0, giving 740. sudo and chown: chown changes a file's owner and, with the user:group form, its group. Changing ownership of a root-owned file requires root privileges, which sudo provides for one command using the technician's own password and logs the action. apt package management: Debian-based distributions use APT, and apt install downloads the package and its dependencies from the configured repositories. Installing software changes system files, so it is run with sudo. du vs. df: du (disk usage) totals the space used by files and directories, and -s with -h prints a single human-readable total for each item under /var. df reports free and used space for whole file systems, which has already shown that /var is full. find by name: find walks a directory tree and returns paths that match the given tests; -name "*.conf" matches file names ending in .conf. Quoting the pattern stops the shell from expanding it before find runs. /etc/fstab persistent mounts: The mount command attaches a file system only until the next reboot. /etc/fstab lists file systems to mount at boot, with each entry giving the device (preferably by UUID), mount point, file system type, and options.

Worked examples

Example 1: One user's copy of a Mac app crashes at launch, but the app works for other users on the same Mac. The technician suspects that user's corrupted preference file. In which location is that file most likely stored? Answer: /Users/username/Library/Preferences. Per-user settings are stored in each user's own Library folder (~/Library, which is hidden by default), in Preferences as .plist files. Because only this user is affected, the problem is in that user's Library rather than in a location shared by all users.
Example 2: An administrator needs a list of every file whose name ends in .conf anywhere under /etc, including all subdirectories. Which command should be used? Answer: find /etc -name "*.conf". find walks a directory tree and returns paths that match the given tests; -name "*.conf" matches file names ending in .conf. Quoting the pattern stops the shell from expanding it before find runs.
Example 3: A graphic designer wants a Mac to back up automatically to an external drive, keeping hourly backups for the past 24 hours, daily backups for the past month, and weekly backups after that. Which built-in feature provides this? Answer: Time Machine. Time Machine is the built-in macOS backup tool. Once a backup disk is chosen, it backs up automatically and keeps hourly backups for 24 hours, daily backups for the past month, and weekly backups for all earlier months until the disk is full.

Common mistakes

Self-check

Try each one before you look. A miss here costs nothing and tells you exactly what to reread.

1. A student with low vision needs the Mac to read on-screen text aloud and let her zoom into parts of the screen. Which System Settings pane contains VoiceOver and Zoom?
2. Users report that intranet.school.example resolves to an old address. The technician wants to ask the district DNS server at 10.1.1.53 directly, bypassing the server in /etc/resolv.conf, and see the TTL of the answer. Which command does this?
3. A teacher starts an email on her iPhone and wants to finish it on her Mac without saving a draft. She also wants to copy text on one device and paste it on the other. Which group of Apple features provides this?
4. A technician needs to install the htop package on a Debian-based Linux workstation from the configured repositories. Which command should be used?
5. A school wants teachers to install Mac apps only from a source where Apple reviews apps, apps are sandboxed, and updates are delivered automatically. Which installation source meets this?

Canvas is the official record. This companion enhances the PGCC curriculum; it does not replace it. Last name and class year only. Students with a 504 plan or IEP: your accommodations apply.

← Lesson 12: Windows Tools, Command Line and SettingsLesson 14: Security Measures and Windows Security Settings →

↑ Back to top