DCOM 142 LATEST EXAMS SCRIPT ALL
QUESTIONS AND ANSWERS SURE A+
✔✔What are the three commands used to properly edit the /etc/passwd file? (Select all
Three) - ✔✔useradd, usermod, userdel
✔✔A Linux system references a user account by a user's - ✔✔UID
✔✔What is used to specify a group ID? - ✔✔"""-g"""
✔✔Which type of user account plays two roles on a Linux system? - ✔✔root user
✔✔Which command is used to create a user account and configure basic settings? -
✔✔useradd
✔✔This file is used to store the hashed version of a user's password. - ✔✔/etc/shadow
✔✔Which directory's contents are copied to the user's home directory upon account
creation? - ✔✔/etc/skel
✔✔The file provides system-wide Bash settings. - ✔✔/etc/bashrc
, ✔✔Where should administrators set system-wide variables in scripts on a Linux
system? - ✔✔/etc/profile.d
✔✔"As a system administrator, why might you issue theid command?" - ✔✔To display
user ID (UID) and group ID (GID) information.
✔✔"As a system administrator, why might you issue the id command? (Select all that
apply)" - ✔✔-displays UID information
display primary GID information
-display secondary group information
-display password aging information
✔✔Which command is primarily used to display the details of users who are currently
logged in to a system and their transactions? - ✔✔w
✔✔Which file is only read when you first login to the system? - ✔✔.bash_profile
✔✔You can find student's UID by doing the following. (Select all that apply) - ✔✔id
student
cat /etc/passwd | grep student
✔✔Which file provides shell configuration for the initial login environment? -
✔✔.bash_profile
✔✔What file does the last command retrieve information from? - ✔✔/var/log/wtmp
✔✔What is the second step when changing a user s profile? - ✔✔Enter vim
.bash_profile
✔✔What octal number represents the write attribute. - ✔✔2`
✔✔What octal number represents the execute attribute. - ✔✔1
✔✔What octal number represents the read attribute. - ✔✔4
✔✔What is the default permissions for a file created by a regular user? - ✔✔664
✔✔What does the ls -l command do? - ✔✔Lists directory contents in long format
✔✔Which is not an operator use by chmod in symbolic mode? - ✔✔*
QUESTIONS AND ANSWERS SURE A+
✔✔What are the three commands used to properly edit the /etc/passwd file? (Select all
Three) - ✔✔useradd, usermod, userdel
✔✔A Linux system references a user account by a user's - ✔✔UID
✔✔What is used to specify a group ID? - ✔✔"""-g"""
✔✔Which type of user account plays two roles on a Linux system? - ✔✔root user
✔✔Which command is used to create a user account and configure basic settings? -
✔✔useradd
✔✔This file is used to store the hashed version of a user's password. - ✔✔/etc/shadow
✔✔Which directory's contents are copied to the user's home directory upon account
creation? - ✔✔/etc/skel
✔✔The file provides system-wide Bash settings. - ✔✔/etc/bashrc
, ✔✔Where should administrators set system-wide variables in scripts on a Linux
system? - ✔✔/etc/profile.d
✔✔"As a system administrator, why might you issue theid command?" - ✔✔To display
user ID (UID) and group ID (GID) information.
✔✔"As a system administrator, why might you issue the id command? (Select all that
apply)" - ✔✔-displays UID information
display primary GID information
-display secondary group information
-display password aging information
✔✔Which command is primarily used to display the details of users who are currently
logged in to a system and their transactions? - ✔✔w
✔✔Which file is only read when you first login to the system? - ✔✔.bash_profile
✔✔You can find student's UID by doing the following. (Select all that apply) - ✔✔id
student
cat /etc/passwd | grep student
✔✔Which file provides shell configuration for the initial login environment? -
✔✔.bash_profile
✔✔What file does the last command retrieve information from? - ✔✔/var/log/wtmp
✔✔What is the second step when changing a user s profile? - ✔✔Enter vim
.bash_profile
✔✔What octal number represents the write attribute. - ✔✔2`
✔✔What octal number represents the execute attribute. - ✔✔1
✔✔What octal number represents the read attribute. - ✔✔4
✔✔What is the default permissions for a file created by a regular user? - ✔✔664
✔✔What does the ls -l command do? - ✔✔Lists directory contents in long format
✔✔Which is not an operator use by chmod in symbolic mode? - ✔✔*