I can't believe how complicated the instructions are for us the uninitiated. I have been trying to follow what seems to be simple instructions with no success for an hour. Finally, I realized that most of this can be done with drag and drop with the exception of typing sudo and --volume:
For High Sierra:
Make sure that you have downloaded the install macOS High Sierra app and that your boot media (usb key or external hard drive) is properly formatted to mount (that you see it on your desk top when you plug it in).
1) Bring up a new Terminal window by clicking on Launchpad, finding Terminal and clicking on it
2) Type "sudo" and a space
3) Open a finder window
4) Open Applications
5) Find "Install macOS High Sierra.app
6) Hold down the control key and click on the "install macOS High Sierra.app"
7) Click on "Show Package Contents"
8) Scroll down to "createinstallmedia" and drag and drop it into the Terminal window that you opened in 1)
9) Type "--volume" and a space
10) Drag and drop the boot media (usb key or external drive) into the Terminal window.
You will end up with the following:
sudo /Application/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/the name of your boot drive
11) Type the enter key to begin.
12) Enter the password when prompted
13) Enter "Y" when prompted.