LX0-103: CompTIA Linux+ Certification Test! Trivia Questions Quiz

60 Questions

Settings
LX0-103: CompTIA Linux+ Certification Test! Trivia Questions Quiz

Are you looking for a trivia questions quiz to help you with the Lx0-103: CompTIA Linux+ Certification Test? Every time you get a certificate you have three years till you take the next exam so it is very important to ensure that you are up to date with changes in the information sector. How about you give it a shot and get the well-deserved revision. All the best!


Questions and Answers
  • 1. 
    Which SysV init configuration file should be modified to disable the ctrl-Alt-delete key combination?
    • A. 

      /proc/keys

    • B. 

      /etc/inittab

    • C. 

      /proc/inittab

    • D. 

      /etc/reboot

    • E. 

      /etc/keys

  • 2. 
    During a system boot cycle, what program is executed after the BIOS completes its tasks?
    • A. 

      The init program

    • B. 

      The kernel

    • C. 

      The inetd program

    • D. 

      The bootloader

  • 3. 
    Which run levels should never be declared as the default run level when using SysV init? (Choose TWO correct answers.)
    • A. 

      1

    • B. 

      3

    • C. 

      5

    • D. 

      6

    • E. 

      0

  • 4. 
    Which of the following statements is correct when talking about /proc/?
    • A. 

      All changes to files in /proc/ are stored in /etc/proc.d/ and restored on reboot.

    • B. 

      All files within /proc/ are only readable by the root user.

    • C. 

      All files within /proc/ are read-only and their contents cannot be changed.

    • D. 

      All changes to files in /proc/ are immediately recognized by the kernel.

  • 5. 
    What of the following statements are true regarding /dev/ when using udev? (Choose TWO correct answers.)
    • A. 

      Entries for all possible devices get created on boot even if those devices are not connected.

    • B. 

      Additional rules for udev can be created by adding them to /etc/udev/rules.d/.

    • C. 

      When using udev, it is not possible to create block or character devices in /dev/ using mknod.

    • D. 

      The /dev/ directory is a filesystem of type tmpfs and is mounted by udev during system startup.

    • E. 

      The content of /dev/ is stored in /etc/udev/dev and is restored during system startup.

  • 6. 
    Which of the following information is stored within the BIOS? (Choose TWO correct answers.)
    • A. 

      Boot device order

    • B. 

      Linux kernel version

    • C. 

      Timezone

    • D. 

      Hardware configuration

    • E. 

      The system’s hostname

  • 7. 
    Which of the following commands reboots the system when using SysV init? (Choose TWO correct answers.)
    • A. 

      Telinit 0

    • B. 

      Telinit 6

    • C. 

      Shutdown -r “rebooting”

    • D. 

      Shutdown -r now

    • E. 

      Shutdown -k now “rebooting”

  • 8. 
    Which of the following are init systems used within Linux systems? (Choose THREE correct answers.)
    • A. 

      SysV init

    • B. 

      Startd

    • C. 

      Systemd

    • D. 

      Upstart

    • E. 

      SysInit

  • 9. 
    Which file in the /proc filesystem lists parameters passed from the bootloader to the kernel? (Specify the file name only without any path.)
  • 10. 
    What information can the lspci command display about the system hardware? (Choose THREE correct answers.)
    • A. 

      PCI bus speed

    • B. 

      System battery type

    • C. 

      Device vendor identification

    • D. 

      Ethernet MAC address

    • E. 

      Device IRQ settings

  • 11. 
    Which of the following commands brings a system running SysV init into a state in which it is safe to perform maintenance tasks? (Choose TWO correct answers.)
    • A. 

      Shutdown -single now

    • B. 

      Runlevel 1

    • C. 

      Telinit 1

    • D. 

      Shutdown -R 1 now

    • E. 

      Init 1

  • 12. 
    What is the first program that is usually started, at boot time, by the Linux kernel when using SysV init?
    • A. 

      /boot/init

    • B. 

      /lib/init.so

    • C. 

      /sbin/init

    • D. 

      /etc/rc.d/rcinit

    • E. 

      /proc/sys/kernel/init

  • 13. 
    Which command will display messages from the kernel that were output during the normal boot sequence?
  • 14. 
    Which of the following commands will write a message to the terminals of all logged in users?
    • A. 

      Mesg

    • B. 

      Print

    • C. 

      Wall

    • D. 

      Yell

    • E. 

      Bcast

  • 15. 
    Which of the following kernel parameters instructs the kernel to suppress most boot messages?
    • A. 

      Verbose=0

    • B. 

      Nomesg

    • C. 

      Silent

    • D. 

      Quiet

  • 16. 
    Which of the following options for the kernel’s command line changes the systemd boot target to rescue.target instead of the default target?
    • A. 

      Systemd.target=rescue.target

    • B. 

      Systemd.runlevel=rescue.target

    • C. 

      Systemd.service=rescue.target

    • D. 

      Systemd.default=rescue.target

    • E. 

      Systemd.unit=rescue.target

  • 17. 
    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

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

      Apt-get refresh

    • B. 

      Apt-cache upgrade

    • C. 

      Apt-get upgrade

    • D. 

      Apt-get update

    • E. 

      Apt-cache update

  • 19. 
    Which of the following commands lists the dependencies of a given dpkg package?
    • A. 

      Apt-cache depends-on package

    • B. 

      Apt-cache dependencies package

    • C. 

      Apt-cache depends package

    • D. 

      Apt-cache requires package

  • 20. 
    Which of the following options is used in a GRUB Legacy configuration file to define the amount of time that the GRUB menu will be shown to the user?
    • A. 

      Splash

    • B. 

      Timeout

    • C. 

      Hidemenu

    • D. 

      Showmenu

  • 21. 
    What can the Logical Volume Manager (LVM) be used for? (Choose THREE correct answers.)
    • A. 

      To create RAID 9 arrays.

    • B. 

      To dynamically change the size of logical volumes.

    • C. 

      To encrypt logical volumes.

    • D. 

      To create snapshots.

    • E. 

      To dynamically create or delete logical volumes.

  • 22. 
    Which of the following commands updates the linker cache of shared libraries?
    • A. 

      Soconfig

    • B. 

      Ldconfig

    • C. 

      Mkldconfig

    • D. 

      Mkcache

    • E. 

      Lddconfig

  • 23. 
    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

  • 24. 
    Which of the following commands can be used to download the RPM package kernel without installing it?
    • A. 

      Yumdownloader kernel

    • B. 

      Rpm –download –package kernel

    • C. 

      Yum download –no-install kernel

    • D. 

      Rpmdownload kernel

  • 25. 
    When using rpm –verify to check files created during the installation of RPM packages, which of the following information is taken into consideration? (Choose THREE correct answers.)
    • A. 

      GnuPG signatures

    • B. 

      Timestamps

    • C. 

      MD5 checksums

    • D. 

      Inodes

    • E. 

      File sizes

  • 26. 
    Which of the following is correct when talking about mount points?
    • A. 

      Files within a directory are deleted when the directory is used as a mount point.

    • B. 

      Directories need to have the SetUID flag set to be used as a mount point.

    • C. 

      Every existing directory can be used as a mount point.

    • D. 

      Only empty directories can be used as a mount point.

  • 27. 
    Which function key is used to start Safe Mode in Windows NT?
    • A. 

      F10

    • B. 

      F8

    • C. 

      F6

    • D. 

      Windows NT does not support Safe Mode

  • 28. 
    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

  • 29. 
    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.)
  • 30. 
    Which RPM command will output the name of the package which supplied the file /etc/exports?
    • A. 

      Rpm -qf /etc/exports

    • B. 

      Rpm -qi /etc/exports

    • C. 

      Rpm -F /etc/exports

    • D. 

      Rpm -qp /etc/exports

    • E. 

      Rpm -Kl /etc/exports

  • 31. 
    In which directory must definition files be placed to add additional repositories to yum?
  • 32. 
    What is the name of the main configuration file for GNU GRUB? (Specify the file name only without any path.)
  • 33. 
    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

  • 34. 
    Which file should be edited to select the network locations from which Debian installation package files are loaded?
    • A. 

      /etc/dpkg/dselect.cfg

    • B. 

      /etc/dpkg/dpkg.cfg

    • C. 

      /etc/apt/apt.conf

    • D. 

      /etc/apt/apt.conf.d

    • E. 

      /etc/apt/sources.list

  • 35. 
    Which option to the yum command will update the entire system? (Specify ONLY the option name without any additional parameters.)
  • 36. 
    Which command will disable swapping on a device? (Specify ONLY the command without any path or parameters.)
  • 37. 
    Which Debian package management tool asks the configuration questions for a specific already installed package just as if the package were being installed for the first time? (Specify ONLY the command without any path or parameters.)
  • 38. 
    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

  • 39. 
    Which of the following commands can be used to create a USB storage media from a disk image?
    • A. 

      Gdisk

    • B. 

      Dd

    • C. 

      Cc

    • D. 

      Fdisk

    • E. 

      Mount

  • 40. 
    In Bash, inserting 1>&2 after a command redirects
    • A. 

      Standard output to standard input.

    • B. 

      Standard error to standard output.

    • C. 

      Standard input to standard error.

    • D. 

      Standard error to standard input.

    • E. 

      Standard output to standard error.

  • 41. 
    What command will generate a list of user names from /etc/passwd along with their login shell?
    • A. 

      Column -s : 1,7 /etc/passwd

    • B. 

      Chop -c 1,7 /etc/passwd

    • C. 

      Colrm 1,7 /etc/passwd

    • D. 

      Cut -d: -f1,7 /etc/passwd

  • 42. 
    In a nested directory structure, which find command line option would be used to restrict the command to searching down a particular number of subdirectories?
    • A. 

      -dirmax

    • B. 

      -maxdepth

    • C. 

      -maxlevels

    • D. 

      -n

    • E. 

      -s

  • 43. 
    Which of the following statements is correct regarding the command foo 1> bar?
    • A. 

      The command foo receives its stdin from the stdout of the command bar.

    • B. 

      The stderr from the command foo is saved to the file bar.

    • C. 

      The stdout from the command foo overwrites the file bar.

    • D. 

      The stdout from the command foo is appended to the file bar.

    • E. 

      The command foo receives its stdin from the file bar.

  • 44. 
    Which of the following commands kills the process with the PID 123 but allows the process to “clean up” before exiting?
    • A. 

      Kill -KILL 123

    • B. 

      Kill -STOP 123

    • C. 

      Kill -TERM 123

    • D. 

      Kill -PIPE 123

  • 45. 
    Which signal is missing from the following command that is commonly used to instruct a daemon to reinitialize itself, including reading configuration files? killall -s [Blank] daemon
  • 46. 
    What is the maximum niceness value that a regular user can assign to a process with the nice command when executing a new process?
    • A. 

      9

    • B. 

      99

    • C. 

      19

    • D. 

      49

  • 47. 
    Immediately after deleting 3 lines of text in vi and moving the cursor to a different line, which single character command will insert the deleted content below the current line?
    • A. 

      I (lowercase)

    • B. 

      P (uppercase)

    • C. 

      P (lowercase)

    • D. 

      U (uppercase)

    • E. 

      U (lowercase)

  • 48. 
    A user accidentally created the subdirectory \\dir in his home directory. Which of the following commands will remove that directory?
    • A. 

      Rmdir ~/’dir’

    • B. 

      Rmdir ~/\\dir

    • C. 

      Rmdir ‘~/\\dir’

    • D. 

      Rmdir “~/\\dir”

    • E. 

      Rmdir ~/\\\\dir

  • 49. 
    In compliance with the FHS, in which of the directories are man pages found?
    • A. 

      /usr/share/man

    • B. 

      /opt/man

    • C. 

      /usr/doc/

    • D. 

      /var/pkg/man

    • E. 

      /var/man

  • 50. 
    Which of the following commands will send output from the program myapp to both standard output (stdout) and the file file1.log?
    • A. 

      Cat < myapp | cat > file1.log

    • B. 

      Myapp 0>&1 | cat > file1.log

    • C. 

      Myapp | cat > file1.log

    • D. 

      Myapp | tee file1.log

    • E. 

      Tee myapp file1.log

  • 51. 
    What is the purpose of the Bash built-in export command?
    • A. 

      It makes the command history available to subshells.

    • B. 

      It sets up environment variables for applications.

    • C. 

      It runs a command as a process in a subshell.

    • D. 

      It allows disks to be mounted remotely.

    • E. 

      It shares NFS partitions for use by other systems on the network.

  • 52. 
    What is the output of the following command? echo “Hello World” | tr -d aieou
    • A. 

      Hello World

    • B. 

      Eoo

    • C. 

      Hll Wrld

    • D. 

      Eoo Hll Wrld

  • 53. 
    Which of the following characters can be combined with a separator string in order to read from the current input source until the separator string, which is on a separate line and without any trailing spaces, is reached?
    • A. 

      <|

    • B. 

      !<

    • C. 

      <<

    • D. 

      &<

  • 54. 
    Which of the following commands will NOT update the modify timestamp on the file /tmp/myfile.txt? 
    • A. 

      File /tmp/myfile.txt

    • B. 

      Echo “Hello” >/tmp/myfile.txt

    • C. 

      Sed -ie “s/1/2/” /tmp/myfile.txt

    • D. 

      Echo -n “Hello” >>/tmp/myfile.txt

    • E. 

      Touch /tmp/myfile.txt

  • 55. 
    What is the default nice level when a process is started using the nice command?
    • A. 

      -10

    • B. 

      0

    • C. 

      10

    • D. 

      20

  • 56. 
    What is the default action of the split command on an input file?
    • A. 

      T will break the file into new files of 1,024 byte pieces each.

    • B. 

      It will break the file into new files of 1,000 line pieces each.

    • C. 

      It will break the file into new files of 1,024 kilobyte pieces each.

    • D. 

      It will break the file into new files that are no more than 5% of the size of the original file.

  • 57. 
    57. What is the difference between the i and a commands of the vi editor?
    • A. 

      I (insert) inserts text before the current cursor position whereas a (append) inserts text after the cursor.

    • B. 

      I (independent rows) starts every new line at the first character whereas a (aligned rows) keeps the indentation of the previous line.

    • C. 

      I (interactive) requires the user to explicitly switch between vi modes whereas a (automatic) switches modes automatically.

    • D. 

      I (interrupt) temporarily suspends editing of a file to the background whereas a (abort) terminates editing.

  • 58. 
    Which command displays a list of all background tasks running in the current shell? (Specify ONLY the command without any path or parameters.)
  • 59. 
    Which of the following commands moves and resumes in the background the last stopped shell job?
    • A. 

      Back

    • B. 

      Run

    • C. 

      Bg

    • D. 

      Fg

  • 60. 
    What is the effect of the egrep command when the -v option is used?
    • A. 

      It changes the output order showing the last matching line first.

    • B. 

      It shows the command’s version information.

    • C. 

      It enables color to highlight matching parts.

    • D. 

      It only outputs non-matching lines.