101-500 Exam Questions

Total 242 Questions

Last Updated Exam : 16-Dec-2024

Topic 2, Linux Installation and Package Management

Which of the following commands is used to update the list of available packages when using dpkg based package management?


A.

apt-get update


B.

apt-get upgrade


C.

apt-cache update


D.

apt-get refresh


E.

apt-cache upgrade





A.
  

apt-get update



You want to preview where the package file, apache-xml.i386.rpm, will install its files before
installing it. What command do you issue?


A.

rpm -qp apache-xml.i386.rpm


B.

rpm -qv apache-xml.i386.rpm


C.

rpm -ql apache-xml.i386.rpm


D.

rpm -qpl apache-xml.i386.rpm





D.
  

rpm -qpl apache-xml.i386.rpm



Typically, which top level system directory is used for files and data that change regularly
while the system is running and are to be kept between reboots? (Specify only the top level
directory)






Answer: /var, /var/, var, var/

When removing a package, which of the following dpkg options will completely remove the
files including configuration files?


A.

--clean


B.

--delete


C.

--purge


D.

–remove





C.
  

--purge



An administrator has issued the following command:
grub-install -root-directory=/custom-grub /dev/sda
In which directory will new configuration files be found? (Provide the full directory path only
without the filename)






Answer: /custom-grub/boot/grub/, /custom-grub/boot/grub

Which of the following commands updates the linker cache of shared libraries?


A.

mkcache


B.

soconfig


C.

mkldconfig


D.

lddconfig


E.

ldconfig





E.
  

ldconfig



Which command will disable swapping on a device? (Specify ONLY the command without any path or parameters.)






Answer: swapoff, /sbin/swapoff

Which of the following commands lists the dependencies of a given dpkg package?


A.

apt-cache depends-onpackage


B.

apt-cache dependencies package


C.

apt-cache depends package


D.

apt-cache requires package





C.
  

apt-cache depends package



Which of the following environment variables overrides or extends the list of directories
holding shared libraries?


A.

LD_LOAD_PATH


B.

LD_LIB_PATH


C.

LD_LIBRARY_PATH


D.

LD_SHARE_PATH


E.

LD_RUN_PATH





C.
  

LD_LIBRARY_PATH



To prevent users from being able to fill up the / partition, the ____________ directory
should be on a separate partition if possible because it is world writeable.






Answer: /tmp, tmp


Page 4 out of 25 Pages
Previous