101-500 : LPIC-1 Exam 101 : Part 02
-
When is the content of the kernel ring buffer reset? (Choose two.)
- When the ring buffer is explicitly reset using the command dmesg
--clear
- When the ring buffer is read using
dmesg
without any additional parameters - When a configurable amount of time, 15 minutes by default, has passed
- When the kernel loads a previously unloaded kernel module
- When the system is shut down or rebooted
- When the ring buffer is explicitly reset using the command dmesg
-
What is the first program the Linux kernel starts at boot time when using System V init?
-
/lib/init.so
-
/proc/sys/kernel/init
-
/etc/rc.d/rcinit
-
/sbin/init
-
/boot/init
-
-
A Debian package creates several files during its installation. Which of the following commands searches for packages owning the file
/etc/debian_version
?-
apt-get search /etc/debian_version
-
apt –r /etc/debian_version
-
find /etc/debian_version -dpkg
-
dpkg –S /etc/debian_version
-
apt-file /etc/debian_version
-
-
What is contained on the EFI System Partition?
- The Linux root file system
- The first stage boot loader
- The default swap space file
- The Linux default shell binaries
- The user home directories
-
Which of the following directories on a 64 bit Linux system typically contain shared libraries? (Choose two.)
-
~/.lib64/
-
/usr/lib64/
-
/var/lib64/
-
/lib64/
-
/opt/lib64/
-
-
Which of the following files exist in a standard GRUB 2 installation? (Choose two.)
- /boot/grub/stages/stage0
- /boot/grub/i386-pc/lvm.mod
- /boot/grub/fstab
- /boot/grub/grub.cfg
- /boot/grub/linux/vmlinuz
-
Which of the following commands installs all packages with a name ending with the string foo?
-
zypper get “*foo”
-
zypper update “foo?”
-
zypper force “foo*”
-
zypper install “*foo”
-
zypper add “.*foo”
-
-
Which of the following properties of a Linux system should be changed when a virtual machine is cloned? (Choose two.)
- The partitioning scheme
- The file system
- The D-Bus Machine ID
- The permissions of
/root/
- The SSH host keys
-
Which of the following commands installs GRUB 2 into the master boot record on the third hard disk?
-
grub2 install /dev/sdc
-
grub-mkrescue /dev/sdc
-
grub-mbrinstall /dev/sdc
-
grub-setup /dev/sdc
-
grub-install /dev/sdc
-
-
Which of the following partition types is used for Linux swap spaces when partitioning hard disk drives?
- 7
- 82
- 83
- 8e
- fd
-
What is true regarding the configuration of yum? (Choose two.)
- Changes to the repository configuration become active after running
yum confupdate
- Changes to the yum configuration become active after restarting the
yumd
service - The configuration of package repositories can be divided into multiple files
- Repository configurations can include variables such as
$basearch
or$releasever
- In case
/etc/yum.repos.d/
contains files,/etc/yum.conf
is ignored
- Changes to the repository configuration become active after running
-
Which of the following
apt-get
subcommands installs the newest versions of all currently installed packages?-
auto-update
-
dist-upgrade
-
full-upgrade
-
install
-
update
-
-
Which command uninstalls a package but keeps its configuration files in case the package is re-installed?
-
dpkg –s pkgname
-
dpkg –L pkgname
-
dpkg –P pkgname
-
dpkg –v pkgname
-
dpkg –r pkgname
-
-
Which of the following commands lists the dependencies of the RPM package file foo.rpm?
-
rpm –qpR foo.rpm
-
rpm –dep foo
-
rpm –ld foo.rpm
-
rpm –R foo.rpm
-
rpm –pD foo
-
-
What is the maximum niceness value that a regular user can assign to a process with the nice command when executing a new process?
- 9
- 15
- 19
- 49
- 99
-
Which of the following commands list all files and directories within the
/tmp/
directory and its subdirectories which are owned by the user root? (Choose two.)-
find /tmp –user root -print
-
find –path /tmp –uid root
-
find /tmp –uid root -print
-
find /tmp –user root
-
find –path /tmp –user root -print
-
-
Which of the following are valid stream redirection operators within Bash? (Choose two.)
- <
- #>
- %>
- >>>
- 2>&1
-
Which of the following vi commands deletes two lines, the current and the following line?
- d2
- 2d
- 2dd
- dd2
- de12
-
The command
dbmaint
& was used to rundbmaint
in the background. However,dbmaint
is terminated after logging out of the system. Which alternativedbmaint
invocation letsdbmaint
continue to run even when the user running the program logs out?-
job –b dmaint
-
dbmaint &>/dev/pts/null
-
nohup dbmaint &
-
bg dbmaint
-
wait dbmaint
-
-
From a Bash shell, which of the following commands directly execute the instructions from the file
/usr/local/bin/runme.sh
without starting a subshell? (Choose two.)-
source /usr/local/bin/runme.sh
-
/usr/local/bin/runme.sh
-
/bin/bash /usr/local/bin/runme.sh
-
. /usr/local/bin/runme.sh
-
run /usr/local/bin/runme.sh
-
Subscribe
0 Comments
Newest