Where do I put commands?

I would also like to know if i can make a file with only commands?

Each Glitch project container has its own terminal you can use to enter most if not all standard Linux commands. It’s accessed via the tools menu in the editor:

In terms of making a file from the terminal it’s just the same as you would on any other linux machine. You can use cat or touch etc.