FileVault2 command line commands in Mojave?
I've been reading about using the fdsetup
command to manage FileVault2 from the command line. But I can't find it in Mojave (or High Sierra for that matter).
Is there a command line interface to FileVault2?
Solution 1:
The command you want is: fdesetup
From its manual page:
fdesetup(8) BSD System Manager's Manual
NAME
fdesetup -- FileVault configuration toolSYNOPSIS
fdesetup verb [options]DESCRIPTION
fdesetup is used to enable or disable FileVault, to list, add, or remove enabled FileVault users, and to obtain status about the current state of FileVault. Most commands require root access and need to be authenticated with either a FileVault password, a personal recovery key (if enabled), and in some cases the private key from the installed institutional recov- ery key. Some status related commands can be run from a non-root session.