Connecting batteries for longer work time ?

I'll make it an even more basic questing.
How do I extend the run time for an electrical device using multiple batteries? (how do I connected them together and so on.. )