Book Image

The macOS User Administration Guide

By : Herta Nava
Book Image

The macOS User Administration Guide

By: Herta Nava

Overview of this book

Apple is pushing the capabilities of its technologies to help users achieve high performance, including improvements in its OS running across all Mac systems, macOS, and new technologies such as M1 Silicon chips. This book walks you through macOS from a system administration and support point of view, exploring its latest features. The book starts by explaining macOS architecture, installation, and startup processes to enable you to get started with the OS. You'll learn how to manage users and discover techniques for user security and privacy. Moving on, you'll get to grips with the macOS file system and learn to manage disks, volumes, and partitions for effective file management. Most of the examples covered in this book are from an administrator's perspective; however, when relevant, a standard user's perspective is also presented. You'll find illustrations for Mac systems running macOS 11 (Big Sur), and when necessary, for macOS 10.15 (macOS Catalina). Finally, you'll explore advanced topics such as networking and using command-line tools for administration tasks. By the end of this macOS book, you'll be well-versed with macOS features, administration tasks, and best practices. You'll also be able to apply the concepts to increase your chances of success in obtaining Apple certifications such as Apple Certified Support Professional (ACSP).
Table of Contents (19 chapters)
18
About Packt

Monitoring and diagnosing the system

There are useful commands you can use in Terminal to verify and repair the startup volume. fsck is a common UNIX command that's used for system checks and repairs. It is the equivalent of First Aid in the Disk Utility tool. For APFS volumes, you could also use the fsck_apfs command.

To use this command, you need to restart your computer in single-user mode so that the system disk is unmounted. You can review how to enter single-user mode by rereading Chapter 3, The Startup Process.

Through the use of flags, you can perform extra actions. For example, the -f flag forces journaled filesystems to be verified, such as HFS, while the -y flag answers with "Yes" to any prompts fsck might encounter, so use it with caution. In the case of APFS volumes, you can use the -n flag to verify without performing any repairs.

For example, once you are in single-user mode or you are sure your system disk is unmounted, you could run the following command...