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.
View the gedit(1) man page.
[student@serverX ~]$man 1 gedit
Research how to edit a specific file using gedit from the command line.
gedit filename
Research the gedit option used to begin an editing session with the cursor at the end of the file.
gedit + filename
Research the su(1) man page.
[student@serverX ~]$man 1 su
Research what su does when the username argument is omitted.
su assumes a username of root.
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.
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
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.
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.
Which command will list detailed information about a zip archive?
zipinfo(1) found with man -k zip
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
Which command is used to tune ext4 file system parameters?
tune2fs(8) found with man -k ext4