DCOM 142 FINAL EXAM QUESTIONS & ANAWERS
Going through the process of creating a new user and adding password for the user,
which commands will make this task successful? (Select two) - Answers -useradd &
passwd
Which file can you configure to customize your own uses of aliases? - Answers -
.bashrc
A user is denied permission to enter a directory, despite having the read permission.
What is the most likely cause for the denial and what is the solution? (Select two) -
Answers -use the chmod command to add execute permission to the specific directory
&
The user needs execute permission to have access to the directory
what command is used to verify that all components of a package are installed in Red-
hat Linux Distros? - Answers -rpm -V [package name]
what is the command to set the execute permissions to all the files and subdirectories
within the directory /home/user1/direct - Answers -chmod -R+x /home/user1/direct
which of the following commands will display your centOS linux machine's IP address? -
Answers -ip addr show
during installation, you must create a root user account for the system. Which of the
following user account numbers (UID) does this account use? - Answers -0
Given this entry...
pmallory:x:1001:1050:Paul Mallory:/home/pmallory:/bin/bash... which of the following is
the user ID associated with this entry - Answers -1001
a file contains the following entry....
sales:x:1001:pclark,mmckay,hsamson....
which of the following files contains similar entries? - Answers -/etc/group
you have installed a package called mathpac with yum command. After a system
upgrade, the package is not working correctly. which of the following commands should
you try FIRST to get the package to function? - Answers -yum update mathpac
You used YUM to list the python packages that are available to install. You see that
there is a package available that is called python. What YUM command do you use to
install this python package? - Answers -yum install python
You obtain your applications and updates in RPM format.
, Which of the following distributions is your system based on? - Answers -Red Hat
which of the following commands sets "owner" and "group" to rwx permissions and
"other" permissions on file1 to r-x? - Answers -chmod 775 file1
There are many common symptoms that can relate to permission issues. What
symptom can be caused by the owner not being granted read access? - Answers -the
owner of a text file is denied permission to view the contents of the txt file
what is the second step in a troubleshooting module after identifying the problem? -
Answers -establish a theory of probable cause
a network administrator wants to install a device that acts as a control point for
communications between network segments or subnets. Which of the following should
the network admin choose? - Answers -router
what command should you run first when using apt or apt-get to manage packages on
your Debian-derived distribution? - Answers -update
What files contain instructions used by a compiler to build a program from source code?
- Answers -makefiles
which of the following commands queries the system for all installed RPM packages? -
Answers -rpm -qa
You need to determine which files are associated with the metacity RPM package.
Which of the following commands should you use? - Answers -rpm -ql metacity
Given the command ls > myfiles which of the following describes the results? - Answers
-the stdout of the ls command is redirected to the myfiles file
which of the following statements is true about the command myscript < mydata.txt -
Answers -myscript receives input (stdin) from mydata.txt
which of the following network services or protocols uses TCP/IP port 22? - Answers -
SSH
what does the permission string -rwxrwx--- mean? - Answers -The file's owner and
members of its group may both read, write, and execute the file, but other users have
no access to it.
what option causes chown command to change ownership on an entire directory tree? -
Answers --r & --recursive
Going through the process of creating a new user and adding password for the user,
which commands will make this task successful? (Select two) - Answers -useradd &
passwd
Which file can you configure to customize your own uses of aliases? - Answers -
.bashrc
A user is denied permission to enter a directory, despite having the read permission.
What is the most likely cause for the denial and what is the solution? (Select two) -
Answers -use the chmod command to add execute permission to the specific directory
&
The user needs execute permission to have access to the directory
what command is used to verify that all components of a package are installed in Red-
hat Linux Distros? - Answers -rpm -V [package name]
what is the command to set the execute permissions to all the files and subdirectories
within the directory /home/user1/direct - Answers -chmod -R+x /home/user1/direct
which of the following commands will display your centOS linux machine's IP address? -
Answers -ip addr show
during installation, you must create a root user account for the system. Which of the
following user account numbers (UID) does this account use? - Answers -0
Given this entry...
pmallory:x:1001:1050:Paul Mallory:/home/pmallory:/bin/bash... which of the following is
the user ID associated with this entry - Answers -1001
a file contains the following entry....
sales:x:1001:pclark,mmckay,hsamson....
which of the following files contains similar entries? - Answers -/etc/group
you have installed a package called mathpac with yum command. After a system
upgrade, the package is not working correctly. which of the following commands should
you try FIRST to get the package to function? - Answers -yum update mathpac
You used YUM to list the python packages that are available to install. You see that
there is a package available that is called python. What YUM command do you use to
install this python package? - Answers -yum install python
You obtain your applications and updates in RPM format.
, Which of the following distributions is your system based on? - Answers -Red Hat
which of the following commands sets "owner" and "group" to rwx permissions and
"other" permissions on file1 to r-x? - Answers -chmod 775 file1
There are many common symptoms that can relate to permission issues. What
symptom can be caused by the owner not being granted read access? - Answers -the
owner of a text file is denied permission to view the contents of the txt file
what is the second step in a troubleshooting module after identifying the problem? -
Answers -establish a theory of probable cause
a network administrator wants to install a device that acts as a control point for
communications between network segments or subnets. Which of the following should
the network admin choose? - Answers -router
what command should you run first when using apt or apt-get to manage packages on
your Debian-derived distribution? - Answers -update
What files contain instructions used by a compiler to build a program from source code?
- Answers -makefiles
which of the following commands queries the system for all installed RPM packages? -
Answers -rpm -qa
You need to determine which files are associated with the metacity RPM package.
Which of the following commands should you use? - Answers -rpm -ql metacity
Given the command ls > myfiles which of the following describes the results? - Answers
-the stdout of the ls command is redirected to the myfiles file
which of the following statements is true about the command myscript < mydata.txt -
Answers -myscript receives input (stdin) from mydata.txt
which of the following network services or protocols uses TCP/IP port 22? - Answers -
SSH
what does the permission string -rwxrwx--- mean? - Answers -The file's owner and
members of its group may both read, write, and execute the file, but other users have
no access to it.
what option causes chown command to change ownership on an entire directory tree? -
Answers --r & --recursive