These commands manage server saves. Saves the server to the data storage device. Causes the server to mark all chunks and player data as needing to be saved.
You can create custom gamerules, they're kind of like custom commands. Here is an example of using a gamerule to set your spawn to your current location.