Those commands are intended to be entered one at a time. In some cases, I used examples for filenames.
First, please create the directory using:
sudo mkdir /usr/local/foundry/FLEXlm
Next, tell us where the license file is, and what is the name of the file. Use the "cd" command to navigate to different locations.
Other handy commands:
"pwd" to find out where you are
"cd .." to go up one level (ie to leave a directory you just entered)