linux 每日一练习!!查看电池状态

1、查看电池状态的方法

Howto check battery status?java

Open the Terminal and type the following command:linux

acpi


ORbash

acpi -i -b


Sample outputs:
spa

Fig.01: Showing acpi battery status on Linux

Fig.01: Showing acpi battery status on Linuxcode

Use upower command to get battery status

On the latest version of Linux try:orm

最近的Linux版本可使用以下命令。ci

 
upower -i /org/freedesktop/UPower/devices/battery_BAT0

Sample outputs:
get

Fig.02: Displaying battery info using upower

Fig.02: Displaying battery info using upowerit

相关文章
相关标签/搜索