Get Details of a Unix Command (man, info, type, --help, -h) - BunksAllowed

BunksAllowed is an effort to facilitate Self Learning process through the provision of quality tutorials.

Community

Get Details of a Unix Command (man, info, type, --help, -h)

Share This

The man is the system's manual pager. Each page argument given to man is normally the name of a program, utility or function. The manual page associated with each of these arguments is then found and displayed.
$man ls

Some commands don't have man pages or have incomplete man pages and store their information as document form. To view these pages info command is used. Command info display information in the document format. It is similar to man command with more robustness for linking pages together.
$info ls

The type command is a built-in bash shell command that can provide the type of a specified command. What does it mean by the “type of a command”? It means that you can get information like whether a Linux command is a built-in shell command, where its executable is located, and whether it is aliased to some other command.

The help command is the simplest way to get information regarding a built-in shell command. It helps you fetch information from the shell’s internal documentation. It takes a text string as the command line argument and looks for the provided string in the shell’s documents. This saves you the time spent in going through the entire documentation. The help command comes in handy when you want to know the options available with a command.
$help ls
or
$ls --help

Happy Exploring!

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.