Lesson 13: macOS and Linux
CompTIA A+ Core 2 (220-1202) · Objectives 220-1202 1.8, 220-1202 1.9 · Download .docx
Objectives
- Explain macOS features and tools: apps and installers, file system, system settings, Disk Utility and Continuity.
- Identify Linux features and tools: file system layout, key files, commands, permissions and package managers.
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
Common mistakes
- Trackpad gestures: choosing “Printers & Scanners settings” is a common mistake. Printers & Scanners adds and manages printers.
- dig specific server: choosing “curl 10.1.1.53 intranet.school.example” is a common mistake. curl would send HTTP requests to both arguments, not a DNS query.
- Mac antivirus best practice: choosing “Macs are immune to malware because macOS is based on UNIX” is a common mistake. macOS malware such as adware, trojans and info-stealers exists; UNIX roots do not make a system immune.
- Managed Apple ID restrictions: choosing “Uninstall the App Store from each Mac” is a common mistake. The App Store is part of macOS and cannot simply be uninstalled; removing it would not stop personal iCloud use.
- su vs sudo: choosing “su runs one command with the user's own password; sudo needs the root password” is a common mistake. This reverses them: sudo uses the caller's password and su uses the target account's password.
- mount listing: choosing “du” is a common mistake. du reports disk usage of files and directories under the current directory.
Self-check
Try each one before you look. A miss here costs nothing and tells you exactly what to reread.
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.