Cập nhật câu hỏi mới nhất đề thi Linux LPIC-2 201-450 tháng 04/2021

1.Which of the following commands erases the contents of the /dev/sdb3 partition?

  • A. rm /dev/sdb3
  • B. dd if=/dev/zero of=/dev/sdb3
  • C. dd of=/dev/zero if=/dev/sdb3
  • D. umount /dev/sdb3

2. Which of the following files will be looked for and used by GNU make, if one of them exists, unless a different file is specified on the command line when trying to compile software from source code? (Choose two.)

  • A. configure
  • B. config.h.in
  • C. makefile
  • D. Makefile
  • E. Makefile.in


What command is used to send messages to all users currently logged in? (Specify ONLY the command without any path or parameters.)

4. Which of the following commands restores only those files containing lpi in their name from the archive lpifiles.tar.gz?

  • A. tar xvzf lpifiles.tar.gz –wildcards “˜*lpi*”™
  • B. tar xvzwf lpifiles.tar.gz “˜*lpi*”™
  • C. tar -xvfz lpifiles.tar.gz –deep “˜*lpi*”™
  • D. tar -xvzf lpifiles.tar.gz –subdirs “˜*lpi*”™
  • E. tar xvzf lpifiles.tar.gz –globbing “˜*lpi*”™

5. A regular user has just run –

./configure && make && make install

to build and install a program. However, the installation fails. What could be done to install the program? (Choose two.)

  • A. Install the binaries manually with suinstall
  • B. Run make install with root privileges
  • C. Do not run ./configure in order to maintain the default configuration for correct installation
  • D. Rerun ./configure with a –prefix option where the user has permissions to write
  • E. Run make install_local to install into /usr/local/

6. The following command has just been run successfully:

Cd /opt; tar xvf /dev/nst0;

What will happen if the command sequence is run again?

  • A. An error saying that there is no tape present is generated because the tape has been ejected after being used
  • B. The contents of /opt will be restored again
  • C. The entire contents of /opt will be replaced with the contents of the next file on the tape
  • D. The contents of /opt will have additional content added from the next file on the tape


What command discards unused blocks on a mounted file system in order to support SSD devices? (Specify ONLY the command without any path or parameters.)

8. Which single command simulates a failed device within a RAID 5 array?

  • A. mdadm –remove /dev/md0 /dev/sdd1
  • B. mdadm –zero-superblock /dev/sdf3
  • C. mdadm –force-fault /dev/md2 /dev/sde2
  • D. mdadm –fail /dev/md0 /dev/sdc1
  • E. mdadm /dev/md0 –offline /dev/sdc1

9. What is the minimum number of disks required in a fully redundant RAID5 array?

  • A. 1
  • B. 2
  • C. 3
  • D. 4
  • E. 5

10. A system has one hard disk and one CD writer which are both connected to SATA controllers. Which device represents the CD writer?

  • A. /dev/hdb
  • B. /dev/sdd
  • C. /dev/scd1
  • D. /dev/sr0
  • E. /dev/sr1

11. What action should be performed after increasing the size of a logical volume?

  • A. Run vgresize
  • B. Increase the size of the filesystem used for the logical volume
  • C. Run 1vresize
  • D. Remount the logical volume

12. What information is found in the following excerpt from the file /proc/mdstat? (Choose two.)

  • A. One of the disks in /dev/md0 has failed and a spare disk is used to recreate full redundancy
  • B. The spare disk /dev/sda1 is used to restore full redundancy after the current recovery
  • C. The information [UU_] means, that the raid is missing one disk and is not fully redundant
  • D. The device is using version 1.2 metadata to allow LILO and GRUB Legacy to use /dev/md0 as the boot partition. This would not have been necessary with GRUB2
  • E. The information [3/2] means that 3 RAID disks belong to the array and 2 disks are spare. Together they equal the number of available disks


What command will remove a physical volume from a volume group? (Specify ONLY the command without any path or parameters.)

14. Which command is used to make an exact copy, at a single point in time, of a logical volume while still allowing the original logical volume to be updated?

  • A. lvcclone
  • B. lvcreate
  • C. lvm2
  • D. lvsnap
  • E. lvsnapshot

15.  Which of the following commands creates a Btrfs subvolume named volume in/mnt?

  • A. btrfs subvolume add “”n volume /mnt
  • B. btrfs create subvolume /mnt volume
  • C. btrfs-subvolume create /mnt/volume
  • D. btrfs subvolume new volume /mnt
  • E. btrfs subvolume create /mnt/volume


What keyword is missing in the following line from /etc/fstab in order to grant the user fred write access to the files in the vfat file system on /dev/sdb1:

/dev/sdb1 /mnt/usbflash vfat defaults, _________=fred, umask=022, 0 0

(Specify ONLY the option name without any path or parameters.)

17. Due to extreme system use, a Linux system requires some additional swap space. To initialize 5 GB of additional swap space, which combination of commands should be used?

  • A. dd if=/dev/zero of=/tmp/swapfile bs=1024 count=5120000; mkswap /tmp/swapfile; mount /tmp/swapfile
  • B. dd if=/dev/zero of=/tmp/swapfile bs=1024 count=5120000; swapon /tmp/swapfile
  • C. dd if=/dev/zero of=/tmp/swapfile bs=1024 count=5120000; mkswap /tmp/swapfile; swapon /tmp/swapfile
  • D. touch -5G /tmp/swapfile; swapon /tmp/swapfile
  • E. mkswap /tmp/swapfile 512000; swapon /tmp/swapfile

18. What is the purpose of a system mount unit?

  • A. It is used by the command systemd-mount and allows users to mount partitions to mount points of their choice
  • B. It is used only to mount network file systems to local mount points. It cannot be used for local media
  • C. It is created by the command systemd-fstab-generator to integrate entries from /etc/fstab into the system boot process
  • D. It is used by the command mount when using system to mount and unmount file systems


What command ensures that the file systems are written to disk after a lot of write operations? (Specify ONLY the command without any path or parameters.)

20. What component of a system does smartd monitor?

  • A. CPU
  • B. RAM
  • C. Hard drives
  • D. Ethernet traffic

21. How can the label root be added to the ext4 filesystem on /dev/sda1?

  • A. relabel /dev/sda1 root
  • B. tune2fs “”L root /dev/sda1
  • C. echo “˜root”™ > /proc/fs/sda1/label
  • D. labelfs –device /dev/sda1 root

22. Which sub command to crypsetup shows information about an encrypted LUKS partition?

  • A. luksDump
  • B. luksInfo
  • C. luksDebug
  • D. luksLS
  • E. luksShow

23. Which of the following is a CD-ROM filesystem standard?

  • A. OSI 9660
  • B. ISO 9660
  • C. SR0FS
  • D. ISO 8859
  • E. ROM-EO

24. Which of the following init systems comes along with an own UEFI boot loader?

  • A. systemd
  • B. SysVinit
  • C. Upstart
  • D. OpenRC
  • E. launch

25. What effect does the “”f option to the update-rc.d command have on files in the /etc/rcX.d/ and /etc/init.d/ directories?

  • A. It will force the removal of the symlinks in /etc/rcX.d/ even when the links are read only
  • B. It will remove both the symlinks in /etc/rcX.d/ and the init script in /etc/init.d/
  • C. It will remove the init script in /etc/init.d/ and the symlinks in /etc/rcX.d/ and update the package information of installed files
  • D. It will force the removal of symlinks in /etc/rcX.d/ even if the corresponding init script still exists in /etc/init.d/

Powered by BetterDocs

    1 bình luận

    Trả lời

    Đáp án tham khảo:

Để lại bình luận

Email của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *