![]() |
VOOZH | about |
info command reads documentation in the info format. It will give detailed information for a command when compared with the man page. The pages are made using the Texinfotools which can link with other pages, create menus, and easy navigation.
Here, we will explore the functionality of the info command, its syntax, options, and practical examples to help you understand how to use it effectively.
info [OPTION]... [MENU-ITEM...]where,
The info command supports several options that enhance its functionality. Below are the most useful ones:
| Option | Description |
|---|---|
-a, --all | Use all matching manuals. |
-k, --apropos=STRING | Look up STRING in all indices of all manuals. |
-d, --directory=DIR | Add DIR to INFOPATH. |
-f, --file=MANUAL | Specify the Info manual to visit. |
-h, --help | Display help and exit. |
-n, --node=NODENAME | Specify nodes in the first visited Info file. |
-o, --output=FILE | Output selected nodes to FILE. |
-O, --show-options, --usage | Go to the command-line options node. |
-v, --variable VAR=VALUE | Assign VALUE to the Info variable VAR. |
--version | Display version information and exit. |
-w, --where, --location | Print the physical location of the Info file. |
It use all matching manuals and display them for a particular command.
info -a cvs 👁 ImageIt look up STRING in all indices of all manuals and then display the same.
info -k cvs 👁 ImageIt adds DIR to INFOPATH and also display the same.
info -d cvs 👁 ImageIt go to command-line options node for a particular command and display the same.
info -O cvs 👁 ImageIt print physical location of Info file.
info -w cvs 👁 ImageWhile both man and info pages are essential documentation tools in Linux, they serve slightly different purposes:
Note:
To check for the manual page of info command, use the following command:
man infoTo check the help page of info command, use the following command:
info --help 👁 ImageThe info command is a powerful tool that provides a more thorough look into Linux commands and programs than man pages. Its structured approach, with menus and navigation options, allows users to look deeper into the documentation, making it an invaluable resource for Linux users who need to explore commands in greater detail.