The command differs, depending on the macOS version you're going to install. In the next step, you'll enter a command in Terminal. Choose 'Finder' then select 'Go' from the menu bar.
Connect the USB flash drive to the computer you wish to install macOS. You can now quit Terminal and eject the volume.Once you have your bootable installer ready, it's time to move to the next step. When Terminal says that it's done, the volume will have the same name as the installer you downloaded, such as Install macOS Monterey.After the volume is erased, you may see an alert that Terminal would like to access files on a removable volume.
Terminal shows the progress as the volume is erased.
When prompted, type your administrator password and press Return again.
* If your Mac is using macOS Sierra or earlier, include the -applicationpath argument and installer path, similar to the way this is done in the command for El Capitan. Sudo /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/Resources/createinstallmedia -volume /Volumes/ MyVolume -applicationpath /Applications/Install\ OS\ X\ El\ Capitan.app Sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia -volume /Volumes/ MyVolume Sudo /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia -volume /Volumes/ MyVolume Sudo /Applications/Install\ macOS\ Catalina.app/Contents/Resources/createinstallmedia -volume /Volumes/ MyVolume Sudo /Applications/Install\ macOS\ Big\ Sur.app/Contents/Resources/createinstallmedia -volume /Volumes/ MyVolume Sudo /Applications/Install\ macOS\ Monterey.app/Contents/Resources/createinstallmedia -volume /Volumes/ MyVolume If it has a different name, replace MyVolume in these commands with the name of your volume. These assume that the installer is in your Applications folder, and MyVolume is the name of the USB flash drive or other volume you're using.
You will create the bootable installer from this app, not from the disk image or. It installs an app named Install OS X El Capitan into your Applications folder.