Use the Appropriate Section of Man Pages
In this IT Pro Challenges virtual lab, learners are introduced to the skills required to explore the manpage section. Exercises in this lab teach users how to determine the manpage, file formats, password file, and default shell. The topics covered in this lab are critical for learners to be effective in Linux administrator job roles in cybersecur...
Learning to discover, apply, and follow manpages can considerably improve your knowledge to benefit your Linux system's capability. Manpages are one of the most powerful tools accessible for reading and learning various topics about Linux.
In this hands-on lab, you will learn how to use the appropriate section of man pages. First, you will create a new user. Next, you will determine the manpage that contains the documentation for the password file, and then determine which section contains information about file formats. Finally, you will identify the default shell for a user. The other guided and advanced challenges in this series are “Search Linux Manpages by Using the Command Line” and “Can You Use Several Manpages at Once?” respectively.
Understand the Scenario
In this virtual lab, you are a UNIX/Linux system administrator for a company migrating to a Linux environment. Your job is to increase your knowledge of the Linux command-line environment. To accomplish this task, you will use a Linux Ubuntu distribution, and you will be automatically logged in to the console.
Install the manpages
Manpages are online citation handbooks, each of which includes a particular Linux command. The man pages are viewed from the terminal and are all displayed in the identical layout. A common man page includes the summary, information, and illustrations for the command in the proposal. The summary gives you the formation of a command. The information represents what the command performs as well as any possible alternatives and flags for the command. The examples division gives you several techniques in which you can utilize the command. In this section of the lab, you will install the manpages. First, you will update your repositories by using the apt-get command. Updating your repositories is a best practice; however, it is not required. Next, you will install and uncompress the manpages. Finally, you will check and confirm that you installed the manpages.
Create a new user
In this section of the virtual lab, you will learn how to create a new user. First, you will create a user named Bob by using the useradd command and then use the /bin/sh command to configure the Bourne shell as the login shell. Next, you will find the entry for Bob in the password file by running the grep command. Finally, you will check and confirm that you created a user named Bob. The grep is a command-line service for hunting plain-text data sets for words or lines.
Review the manpage for the password file
In this section of the lab, you will learn how to review the manpage for the password file. First, you will display the manpage for the man command, and then in the DESCRIPTION, you will determine the number of the section that contains information about file formats. The manpages have a default search order that you can override. Next, you will display the manpage for the password file by using a list format, and then determine which field in the password file contains the command interpreter. Many Linux commands use both uppercase and lowercase options. For example, in the ls command, you use the argument -r to list files and directories in reverse order; however, you use the argument -R to list directories recursively. Finally, you will check and confirm that you displayed the manpage for the man command and displayed the manpage for the password file by using a list format and determined which field in the password file contains the command interpreter.
Lab Summary Conclusion
After completing the “Use the Appropriate Section of Man Pages” virtual lab, you will have accomplished the following:
- Determined the manpage section that contains information about file formats.
- Viewed the manpage for the password file.
- Determined the default shell for a user.
The **“CLI Search of ManPages”** IT Pro Challenge virtual lab will teach you how to ...
In this IT Pro Challenge lab, you will get hands-on experience using manual (man) pages ...