Does diskutil in terminal use the disk utility application?

Does diskutil in terminal use the disk utility application?Bottom line, I need to validate the wiping feature of the terminal command line diskutil secure erase function each time a new version or update of the Mac OS. So I am trying to determine if there are versions of diskutil in terminal, or are the functions of diskutil part of the shell. I understand the application (GUI) Disk Utility has similar functions and that it is an application with versioning. What I do not know if the application(GUI) and the command line (diskutil) are running the same scripts, from the same source or if they are separate scripts.


I really don't want to keep validating that the shell still works if the shell does not change.


ThAnKs!!!!

Posted on Oct 17, 2018 12:28 PM

Reply
1 reply

Oct 17, 2018 2:07 PM in response to ira291

The diskutil application is a compiled (binary) application that has nothing to do with the shell. Where feasible, it and Disk Utility may share library functions, or even run other compiled applications in the background.


We are just fellow users, so knowing what precisely diskutil and Disk Utility have in common at the programming source code level, or what common libraries, or other executable code is run internally is for the most part, unknown. There are other low level tools in the operating system that may be called by these applications to perform a specific task, or series of said tasks.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Does diskutil in terminal use the disk utility application?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.