man -k to search man commands
Let’s say you’re looking for more information about a command like ansible
.
You can use man ansible
to print the man
page for the ansible
command. But
maybe you want to see a list of man
pages that mention the string “ansible”.
You can simply write:
> man -k ansible
ansible(1) - run a task on a target host(s)
ansible-doc(1) - show documentation on Ansible modules
ansible-galaxy(1) - manage roles using galaxy.ansible.com
ansible-playbook(1) - run an ansible playbook
ansible-pull(1) - pull playbooks from VCS server and run them using this machine as the target
ansible-vault(1) - manage encrypted ansible vars files (YAML)
The number next to each man
entry represents its section number. Thanks
Justin
Weissig for
helping me learn this useful tip.