--- layout: page category-title: Basic commands category-page: basic tags: manual author: Gianmarco De Vita title: info previous-page: pages/cmd/basic/cd.html next-page: pages/cmd/basic/ls.html ---
An .info file is an information document created by Texinfo.
It stores documentation in a book format with chapters, sections,
and subsections and can contain up to four layers of depth.
Info documents are used for storing software help manuals and technical books.
The info
command allows you to read that kind of files
and to search for particular information by using special flags.
Device-name:Current-position username$ info [flag] [item]
By writing the command info
followed by nothing, as result you
will get a list of what you can do with that command.
Using the --apropos
flag followed by a string, you obtain as
output a list of all the contents which correspond to the string you wrote.
Device-name:Current-position username$ info --apropos string
If the string you inserted has nothing to do with the content of the info files, you will get a error message. For example:
Device-name:Current-position username$ info --apropos duck info: No available info files have `duck' in their indices.
Using the -h
flag (which stands for help), you obtain as
output a brief paragraph in which are explained the features of this command.
Device-name:Current-position username$ info -h
Using the -f
flag followed by the path and a .info file, you
as output obtain the content of that file.
Device-name:Current-position username$ info -f path/filename.info