Terminal returns Command not found error for Monterey upgrade
I'm trying to create a bootable installer for Monterey. When I opened Terminal in order to prepare a USB flash drive for this purpose (as per Create a bootable installer for macOS - Apple Support), I was presented with the following:
The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
I ran the command (which resulted in a "Changing shell for david" message) and then pasted the appropriate command:
sudo /Applications/Install\ macOS\ Monterey.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume
However, after entering my password, the command was displayed, followed by a "Command not found" error.
Any ideas?
iMac 21.5″, macOS 10.15