That's not true. You can absolutely use ls and other commands to poke around before creating the winning command.