Linux Exercise: Documentation
Finding documentation about a command
Run the ls command with the --help option.
- $ ls --help
Browse the help.
Retrieve the manual page for the ls command. Compare the manual page to the output of the --help option. Which one is more extensive?.
- $ man ls
You can scroll forward with space and enter. Scroll backwards with b. Search the page with /. Exit the man command with q.
Retrieve the info page for the ls command. Compare the info page to the manual page. Which one is more extensive?.
Change to the /usr/share/doc directory. Make a list of files. Do you see the directory for ls?
Find out which package contained the command /bin/ls. Switch to this directory. Make a list of files in this directory.
- $ rpm -qf /bin/ls
The ls command is most likely contained in the coreutils package.
- $ cd coreutils-version
- $ ls -l
Internet-based documentation
- Visit the following web pages, to see what sort of documentation they contain:
- https://access.redhat.com/documentation/en/red-hat-enterprise-linux/
- http://www.tldp.org/
- https://lwn.net/
End of exercise