Airport terminal transfers

How to get between terminals: the train, bus or walking route, its hours, and what changes if you stay inside security.