What command can you use to list the package in the RPM database that the /etc/hosts file belongs to?
- answer-rpm -qf /etc/hosts
Which of the following can be used to automatically obtain software packages from internet software
repositories? (Choose all that apply)
A) yum
B) et
C) apt-get
D) yast -i - answer-A) yum
C) apt-get
D) yast -i
What command can you use to rebuild the RPM database? - answer-rpm --rebuild
You have downloaded the source code for a program that you wish to compile. Which command must
you first run in the source code directory?
A) ./configure
B) make
C) make file
D) make install - answer-A) ./configure
Which of the following commands can be used to list the shared libraries used by the Bash shell
(/bin/bash)?
A) ldconfig -v /bin/bash
B) ldd -v /bin/bash
C) rpm -ivh /bin/bash
D) rpm-ql /bin/bash - answer-B) ldd -v /bin/bash
Which of the following are always stored in the /etc/passwd file? (Choose all that apply)
A) encrypted user passwords
B) user home directory locations
C) the default shell that each user uses
D) primary groups for each user - answer-B) user home directory locations
C) the default shell that each user uses
D) primary groups for each user
When you check the /etc/shadow file on your system, you notice that the date of the last password
change is 12904. What does this number represent?
A) The number of days since installation of the operating system
, B) December 9th 2004
C) The number of days since Jan 1st 1970
D) February 29th 2001 - answer-C) The number of days since Jan 1st 1970
Which of the following files are used to obtain default user account settings when you create a user with
the useradd command? (Choose all that apply)
A) /etc/login.defs
B) /etc/useradd.default
C) /etc/default/useradd
D) /etc/skel - answer-A) /etc/login.defs
C) /etc/default/useradd
You have a file called "Policies&Proceedures.txt" that you wish to place in the home directories of all
newly created users. What directory should you place this file in? - answer-/etc/skel
After creating a new user account, what must you do to allow the user to log in to the system? - answer-
Assign the user a password
What two commands below can be used to create the group acctg and add the user bob to it?
A) groupadd --p acctg
B) groupadd acctg
C) groupmod --A bob acctg
D) groupmod --A acctg bob - answer-B) groupadd acctg
C) groupmod --A bob acctg
What command can be used to list the users who have logged into the system recently but who are not
currently logged in?
A) last
B) who
C) w
D) btmp - answer-A) last
Which of the following file permissions gives the group owner the ability to edit the file contents?
(Choose all that apply)
A) rw-rw-r-x
B) rw-r-x-r-x
C) rw-r--r-x
D) r--rw-r-x - answer-A) rw-rw-r-x
D) r--rw-r-x
What single command could you use to change the owner to bob and the group owner to acctg for the
file /etc/yearend? - answer-chown bob.acctg /etc/yearend