Knowledge

Linux command: info

Subject: .../LINUX

Find the manual section you need

When a short help message does not answer a question, a manual can explain a command in more detail. GNU Info is a text reader for GNU manuals, commonly generated from Texinfo, a format for writing manuals. Instead of one long page, a manual is split into connected sections that you can move through with menus, indexes, and cross-references. These sections are called nodes. Some programs are installed without their manuals, because documentation may be packaged separately.

At a shell prompt, info opens the installed manual directory. To learn how mv handles a destination that is already a directory, look for the mv invocation node in the Coreutils manual:

info
info coreutils
info coreutils 'mv invocation'

If a manual is missing, check whether its documentation package is installed and whether the file is in Info's search path. info --where coreutils shows where Info finds the Coreutils manual. A package may have many nodes, so naming the section you want can save time.

Move around the reader

Info uses the keyboard. Press ? to see the commands supported by the installed version. n moves to the next node, p to the previous one, and u to the parent. Press m to select a menu entry, s to search the current manual, and q to exit. A menu item or cross-reference can take you to another manual; check the heading after moving so you know which section is open.

A node might be an overview, a command entry, or a smaller subsection. Check its menu before assuming that the next node continues the same topic. Some keys work differently inside Emacs, so the reader's on-screen help is the best guide when a key behaves unexpectedly.

Choose the right kind of reference

Info can print manual text to standard output when it runs without a terminal, which allows the text to be sent to another program. The interactive reader is usually more useful for following menus and cross-references. The command's own manual explains its options and behavior.

info coreutils 'mv invocation' opens that section. Read the surrounding text and follow relevant links before applying a sentence to a different case. An Info manual often covers a whole package in longer chapters, while a man page is usually a concise reference for a command or system interface. Use whichever documentation is installed, and check whether a description covers GNU-specific behavior or a portable standard. The installed command version determines which details apply.

Interactive exercises

Materials

Skillsets
Skillset Skyeng SRE preview
image descriptionSkyeng SRE
by Yuliya Marochkina
12 users
Skillset Linux administrator preview
image descriptionLinux administrator
by Infinite Education
3080 users
Skillset Devops preview
image descriptionDevops
by Ajay Kumar
2004 users
Skillset Linux for backend developer preview
image descriptionLinux for backend developer
by Artem Naumenko (fb)
16 users
Skillset Skyeng Senior PlatOps preview
image descriptionSkyeng Senior PlatOps
by Artem Naumenko (slack2)
7 users
Skillset Devops preview
image descriptionDevops
by Dio
3 users
Skillset Skyeng Ops (for DevOps) preview
image descriptionSkyeng Ops (for DevOps)
by Roman Burnashev
2 users
Do you know that ...?
Any useful or interesting facts about the skill. Any peace of information would be useful