🚀公众号后台复【布道者】查看最新AI技术学习路线🚀Linux 离线帮助命令
只要帮助命令玩儿的溜,就没有搞不定的 Linux !
都有哪些命令?
| | |
|---|
| | |
| | |
| | |
| | |
| 命令 | |
| | |
| | |
| | |
| | |
| | |
| | |
| ls /usr/share/man/man?/关键词 | |
| | |
| | |
命令示例
echo -e "\n1 whatis:"whatis "$k" 2>/dev/null
echo -e "\n2 type/which/whereis:"type "$k" 2>/dev/nullwhich "$k" 2>/dev/nullwhereis "$k" 2>/dev/null
echo -e "\n3 shell help:"help "$k" 2>/dev/null
echo -e "\n4 --help:""$k" --help 2>/dev/null | head -15
echo -e "\n5 man -k:"man -k "$k" 2>/dev/null
echo -e "\n6 rpm:"rpm -qi "$k" 2>/dev/null | head -5rpm -qc "$k" 2>/dev/nullrpm -qd "$k" 2>/dev/null
echo -e "\n7 dnf:"dnf info "$k" 2>/dev/null | head -10
echo -e "\n8 systemd:"systemctl list-unit-files 2>/dev/null | grep -i "$k" | head -5
echo -e "\n9 /etc 配置:"find /etc -iname "*$k*" 2>/dev/null | head -5
echo -e "\n10 系统文档:"ls -d /usr/share/doc/"$k"* 2>/dev/null | head -5
echo -e "\n11 man路径:"ls /usr/share/man/man?/*"$k"* 2>/dev/null | head -5
echo -e "\n12 man手册:"man "$k" 2>/dev/null | head -20
echo -e "\n13 info文档:"info "$k" 2>/dev/null | head -20