Just about every Linux distribution supports ACPI (the Advanced Configuration and Power Interface). It's a fancy name for the way in which a computer manages and configures devices and its power supply. Of course, Linux includes a command line utility for using ACPI called ... well, acpi.
Open a terminal and run the command acpi. Note if you are running this command on Ubuntu or its derivatives, then you will have to install acpi. sudo apt-get install acpi will do the trick. This command returns how many minutes of power the battery has left, as well as the percentage of power it has -- for example, 9%. Useful, but what if you want more information?
If that's the case, then run the command acpi -V. This command displays the same information as the one above, but with a few extras like whether the AC adapter is plugged in and the temperature at which your laptop is running. If you're plugged in, running acpi -V also displays how many minutes are left until the battery is at 100% power.