Topic 2, Linux Installation and Package Management
In which directory must definition files be placed to add additional repositories to yum?
Answer: /etc/yum.repos.d, /etc/yum.repos.d/, yum.repos.d, yum.repos.d/
Which world-writable directory should be placed on a separate partition in order to prevent
users from being able to fill up the / filesystem? (Specify the full path to the directory.)
Answer: /tmp, tmp,/var/tmp, /tmp/, /var/tmp/
Which of the following commands lists all currently installed packages when using RPM package management?
A.
yum --query --all
B.
yum --list --installed
C.
rpm --query --all
D.
rpm --list –installed
rpm --query --all
Which file should be edited to select the network locations from which Debian installation
package files are loaded?
A.
/etc/dpkg/dpkg.cfg
B.
/etc/apt/apt.conf
C.
/etc/apt/apt.conf.d
D.
/etc/apt/sources.list
E.
/etc/dpkg/dselect.cfg
/etc/apt/sources.list
Which of the following apt-get commands will install the newest versions of all currently
installed packages without removing any packages or installing new packages that are not
already installed?
A.
auto-update
B.
upgrade
C.
dist-upgrade
D.
install
E.
update
upgrade
Which of the following commands overwrites the bootloader located on /dev/sda without overwriting the partition table or any data following it?
A.
dd if=/dev/zero of=/dev/sda bs=512
B.
dd if=/dev/zero of=/dev/sda bs=512 count=1
C.
dd if=/dev/zero of=/dev/sda bs=440 count=1
D.
dd if=/dev/zero of=/dev/sda bs=440
dd if=/dev/zero of=/dev/sda bs=440 count=1
To what environment variable will you assign or append a value if you need to tell the dynamic linker to look in a build directory for some of a program's shared libraries?
A.
LD_LOAD_PATH
B.
LD_LIB_PATH
C.
LD_LIBRARY_PATH
D.
LD_SHARE_PATH
E.
LD_RUN_PATH
LD_LIBRARY_PATH
What is the name of the main configuration file for GNU GRUB? (Specify the file name only without any path.)
Answer: menu.lst, grub.conf, grub.cfg
What is the difference between the -remove and the -purge action with the dpkg
command?
A.
--remove removes the program, --purge also removes the config files
B.
--remove only removes the program, --purge only removes the config files
C.
--remove removes a package, --purge also removes all packages dependent on it
D.
--remove removes only the package file itself, --purge removes all files related to the
package
--remove removes the program, --purge also removes the config files
After modifying GNU GRUB's configuration file, which command must be run for the changes to take effect?
A.
kill -HUP $(pidof grub)
B.
grub-install
C.
grub
D.
No action is required
No action is required
Page 5 out of 25 Pages |
Previous |