101-500 : LPIC-1 Exam 101 : Part 02

  1. 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
  2. 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
  3. 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
  4. 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
  5. 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/
  6. 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
  7. 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”
  8. 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
  9. 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
  10. Which of the following partition types is used for Linux swap spaces when partitioning hard disk drives?

    • 7
    • 82
    • 83
    • 8e
    • fd
  11. 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
  12. Which of the following apt-get subcommands installs the newest versions of all currently installed packages?

    • auto-update
    • dist-upgrade
    • full-upgrade
    • install
    • update
  13. 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
  14. 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
  15. 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
  16. 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
  17. Which of the following are valid stream redirection operators within Bash? (Choose two.)

    • <
    • #>
    • %>
    • >>>
    • 2>&1
  18. Which of the following vi commands deletes two lines, the current and the following line?

    • d2
    • 2d
    • 2dd
    • dd2
    • de12
  19. The command dbmaint & was used to run dbmaint in the background. However, dbmaint is terminated after logging out of the system. Which alternative dbmaint invocation lets dbmaint 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
  20. 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
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments