Files
tldr/pages.zh/linux/laptop-detect.md

16 lines
383 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# laptop-detect
> 尝试确定脚本是在笔记本电脑还是台式电脑上运行。
> 更多信息:<https://gitlab.com/debiants/laptop-detect>。
- 如果当前设备可能是笔记本电脑,则返回退出状态 0否则返回 1
`laptop-detect`
- 打印当前系统检测到的设备类型:
`laptop-detect --verbose`
- 显示版本:
`laptop-detect --version`