This simple one liner will print the battery status of your laptop battery in percent. This shows that I have 48% battery charge remaining. PS C:\> (Get-WmiObject -Class Win32_Battery).estimatedchargeremaining 48PS C:\> (Get-WmiObject -Class Win32_Battery).estimatedchargeremaining 48 Run it like this to get all of the information about your laptop battery. PS C:\WINDOWS\system32> (Get-WmiObject -Class Win32_Battery)   …

This command: upower -i /org/freedesktop/UPower/devices/battery_BAT0 will give you information about your laptop battery. [email protected]:~/Documents$ upower -i /org/freedesktop/UPower/devices/battery_BAT0 native-path: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:0c/PNP0C0A:00/power_supply/BAT0 vendor: PANASONIC model: Li_Ion_4000mA serial: 0000 power supply: yes updated: Sun Sep 29 02:39:34 2013 (3 seconds ago) has history: yes has statistics: yes battery present: yes rechargeable: yes state: discharging energy: 27.2484 Wh energy-empty: 0 …

This is an interesting command to view your command history when you are using Bash. [[email protected] Desktop]$ hash hits command 3 /usr/bin/sudo 1 /bin/ls [[email protected] Desktop]$ This command is a Bash shell built-in command. If you are using the tcsh or zsh shells; this command will not be available to you. As shown below; you …

To check the battery status of your Linux laptop; use the acpi command. This will display the status of your laptop battery. exempli gratia. [email protected] ~$ acpi Battery 0: Disharging, 40%, 00:48:32 remaining. This command also has many other options. This one shows the CPU temperature. [email protected] ~$ acpi -t Thermal 0: ok, 45.0 degrees …