Linux怎么查看命令详细使用参数和选项

man命令:man ls,详细参见手册。
帮助命令: ls --help 快速获得简要帮助。
info命令:info ls,参见GNU工具超文本文档。

根据您的需求选择:快速需要吗? ——使用帮助。
想要全面吗?用人。
学习 GNU?使用该信息。

linux man命令是干啥的

I once installed a new Linux system and wanted to know how to use the newly installed firewall tool iptables. I opened a terminal and typed "man iptables" and a lot of information appeared on the screen, densely packed.一开始有点困惑,但我发现我可以通过按空格键打开页面,并且在“NAME”下我看到“iptables
IPv4 防火墙管理员”。
这成为了该工具的名称。
Looking further down, The "SYNOPSIS" section describes the syntax structure of the command.我一看就明白了。
It turns out that iptables must be followed by specific execution commands. For example, "iptables -L" can list firewall rules. At that time, Suddenly, I was using the man command to check the Linux commands I learned in school.很简单。
不过,我也想知道,如果您遇到复杂的系统配置,是否需要逐章阅读这些手册页中的信息。

Linux查看命令位置whereis命令说明

whereis 命令用于查找 Linux 系统上的命令位置。
二进制 用于直接浏览手册页和源代码路径的工件。


查找默认路径,不依赖于PATH环境变量。

什么类型和什么类型的区别:PATH搜索文件; type 解析命令类型。

常用选项:-b 查找二进制文件; -m 搜索手册页; -s 查找源代码,-u 查找已卸载的命令。

应用条件:故障排除;安全验证;剧本写作;完整性检查。

默认路径:二进制文件为/bin; /usr/bin 等。
手册页位于 /usr/share/man 中,源代码位于 /usr/src 中。

这是系统管理员的得力助手。
使用它可以快速解决命令搜索问题。