Linux command
apm_available 命令
文本
涉及管道、覆盖或删除,执行前请先确认路径和参数。
常用示例
Check
apm_available && echo "APM supported"
Example
if apm_available; then apm -l; fi
说明
apm_available tests whether Advanced Power Management (APM) support is available on the current system by checking for the /proc/apm file. It returns exit status 0 if APM is supported and 1 if not. This utility is useful in scripts that need to choose between APM and ACPI for power management queries.
FAQ
What is the apm_available command used for?
apm_available tests whether Advanced Power Management (APM) support is available on the current system by checking for the /proc/apm file. It returns exit status 0 if APM is supported and 1 if not. This utility is useful in scripts that need to choose between APM and ACPI for power management queries.
How do I run a basic apm_available example?
Run `apm_available && echo "APM supported"` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more apm_available examples?
This page includes 2 examples for apm_available, plus related commands for nearby Linux tasks.