Error when trying to create a bootable device
I have downloaded the El Capitan Installer file from this link.
Create a bootable installer for macOS - Apple Support
The file name downloaded is InstallMacOSX.dmg
I then move it to the applications folder.
Done setting up my bootable USB to MacOS Extended - the device name is Boot
Then I want to key in the command into the terminal.
sudo /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume --applicationpath /Applications/Install\ OS\ X\ El\ Capitan.app
However when I paste it in terminal (M1 macboook air) and enter. it showed this error message AFTER i key in my password
sudo: /Applications/Install OS X El Capitan.app/Contents/Resources/createinstallmedia: command not found
Device name ~ % sudo /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/Resources/createinstallmedia --volume /Volumes/Boot --applicationpath /Applications/Install\ OS\ X\ El\ Capitan.app --nointeraction
I'm really confuse and lost as I followed the command line on the site, hopefully I can get some form of support.
MacBook Pro Retina