Which terminal command lists the APFS containers and volumes?

Get ready for the Apple Device Support Test. Study with flashcards and multiple choice questions, each question has hints and explanations. Prepare effectively for your certification exam!

The command that lists the APFS containers and volumes is "diskutil apfs list." This command specifically queries the Apple File System (APFS) and provides detailed information about all APFS containers and volumes configured on the Mac. It includes essential attributes such as the size, used space, and available space of each container and volume. This level of detail is specific to APFS, making it the ideal choice for managing and troubleshooting disk-related issues in macOS environments.

Other commands do not target APFS directly. For instance, "df -h" shows the disk space usage for all mounted filesystems but lacks the specific focus on APFS containers and volumes. The "mount" command provides a list of all mounted filesystems but does not offer detailed information about APFS specifically. Similarly, "ls /Volumes" merely lists the contents of the Volumes directory, which shows mounted volumes but does not provide the structure or details about APFS containers. Thus, "diskutil apfs list" is the only command suited for this specific purpose.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy