Chapters0/35 ▾
Chapter 3 · Lesson 5 of 5
Linux and macOS essentials
1 min read
chmod numeric modes add read 4, write 2 and execute 1 for the owner, the group and others, in that order. Mode 750 is 7 = rwx for the owner, 5 = r-x for the group and 0 = nothing for others.
Try one yourself: 640 gives the owner rw-, the group r-- and others ---, a common mode for a private configuration file. chown changes a file's owner and does not grant anyone else access.
- sudo runs one command as the superuser after you enter your own password, is checked against the sudoers configuration and leaves an audit trail.
- su switches the whole shell to root and needs the root password itself.
- A package manager such as apt or dnf reads a package's declared dependencies and pulls the missing libraries from the repositories.
- On macOS, a .dmg is a disk image: open it so it mounts, then drag the .app bundle into the Applications folder. A .pkg file runs an installer instead.
- Other macOS tools V15 names: Time Machine makes backups, FileVault encrypts the startup disk, Keychain stores passwords, and Force Quit closes an app that has stopped responding.
Check yourself
1. A shell script on a Linux workstation is set to mode 750. What access does that mode grant?
2. A Linux user who is authorized to perform administrative tasks needs to run one single command with elevated rights, without signing in to the root account. What should the user do?
Facts checked 2026-11-15 · Sources: CompTIA A+ Core 2 (220-1202) V15 Exam Objectives, CompTIA A+ certification overview, Microsoft Learn: Windows and GPT FAQ, Apple Support: If your Mac can't save files to an external drive
CompTIA A+ cheat sheet: every key fact on one page →