Bookmark this page

Guided Exercise: Using the man Command

In this lab, you will practice finding relevant information by using man options and arguments.

Outcomes

Familiarity with the man Linux manual system and practice finding useful information by searching and browsing.

Perform the following steps on serverX unless directed otherwise.

  1. View the gedit(1) man page.

    [student@serverX ~]$ man 1 gedit
  2. Research how to edit a specific file using gedit from the command line.

    gedit filename

  3. Research the gedit option used to begin an editing session with the cursor at the end of the file.

    gedit + filename

  4. Research the su(1) man page.

    [student@serverX ~]$ man 1 su
  5. Research what su does when the username argument is omitted.

    su assumes a username of root.

  6. Research how su behaves when a single dash option is used.

    su starts a child login shell (creating login environment by sourcing login scripts). Without the single dash, a non-login child shell is created, matching the user's current environment.

  7. Consult the passwd(1) man page. Determine the options that will lock and unlock a user account when this command is used by root.

    [student@serverX ~]$ man 1 passwd

    passwd -l username

    passwd -u username

  8. Locate the two principles to remember according to the passwd man page authors. Search for the word principle.

    • Protect your password.

    • Choose a hard-to-guess password.

  9. Consult the man page documenting the syntax of the /etc/passwd file. What is stored in the third field of each line?

    The relevant man page is passwd(5), found with man -f passwd.

    The UID (numeric user ID) for each account.

  10. Which command will list detailed information about a zip archive?

    zipinfo(1) found with man -k zip

  11. Which man page contains a list of parameters that can be passed to the kernel at boot time?

    bootparam(7) found with man -k boot

  12. Which command is used to tune ext4 file system parameters?

    tune2fs(8) found with man -k ext4

Revision: rh124-7-1b00421