How to OP myself on my private Minecraft server?

I created a MC server(No Hamachi) and I wanted to know how I could op myself to switch from creative to survival, tp my friends, etc.

Can anyone help? Is it in the MC folder you used to create the server?

/op (yourname)

When you start your server, go into the terminal and enter the following command:

/op <your username>

You don't need to type the "< >" symbols.

To change your game mode, go into the terminal and enter the following command:

/gamemode <username> <mode>

Again, you don't need to type the "< >" symbols. All of this information may be found by typing /? Into the terminal. Depending on what program you're running the server with, you might not have to enter the "/" symbol.

Go to the server launcher and type /op (username) then a text in the chat should say opped (username)

No… Just go to the terminal and type /op (username)

In the server window/terminal just type /op yourusernamehere
Or, in the server.properties file, find the "ops" file and edit it. Put your username (CASE SENSITIVE) in it and the save it.