201-450 : LPIC-2 Exam 201 : Part 01

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

    • rm /dev/sdb3
    • dd if=/dev/zero of=/dev/sdb3
    • dd of=/dev/zero if=/dev/sdb3
    • 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.)

    • configure
    • config.h.in
    • makefile
    • Makefile
    • Makefile.in
  3. FILL BLANK

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

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

    • tar xvzf lpifiles.tar.gz --wildcards ‘*lpi*’
    • tar xvzwf lpifiles.tar.gz ‘*lpi*’
    • tar -xvfz lpifiles.tar.gz --deep ‘*lpi*’
    • tar -xvzf lpifiles.tar.gz --subdirs ‘*lpi*’
    • 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.)

    • Install the binaries manually with suinstall
    • Run make install with root privileges
    • Do not run ./configure in order to maintain the default configuration for correct installation
    • Rerun ./configure with a --prefix option where the user has permissions to write 
    • 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?

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

    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.)

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

    • mdadm --remove /dev/md0 /dev/sdd1
    • mdadm --zero-superblock /dev/sdf3
    • mdadm --force-fault /dev/md2 /dev/sde2
    • mdadm --fail /dev/md0 /dev/sdc1
    • mdadm /dev/md0 --offline /dev/sdc1
  9. What is the minimum number of disks required in a fully redundant RAID5 array?

    • 1
    • 2
    • 3
    • 4
    • 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?

    • /dev/hdb
    • /dev/sdd
    • /dev/scd1
    • /dev/sr0
    • /dev/sr1
  11. What action should be performed after increasing the size of a logical volume?

    • Run vgresize
    • Increase the size of the filesystem used for the logical volume
    • Run 1vresize
    • Remount the logical volume
  12. What information is found in the following excerpt from the file /proc/mdstat? (Choose two.)

    201-450 LPIC-2 Exam 201 Part 01 Q12 001
    201-450 LPIC-2 Exam 201 Part 01 Q12 001
    •  One of the disks in /dev/md0 has failed and a spare disk is used to recreate full redundancy
    • The spare disk /dev/sda1 is used to restore full redundancy after the current recovery
    • The information [UU_] means, that the raid is missing one disk and is not fully redundant
    • 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
    • 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
  13. FILL BLANK

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

    • vgreduce
  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?

    • lvcclone
    • lvcreate
    • lvm2
    • lvsnap
    • lvsnapshot
  15. Which of the following commands creates a Btrfs subvolume named volume in/mnt?

    • btrfs subvolume add –n volume /mnt
    • btrfs create subvolume /mnt volume
    • btrfs-subvolume create /mnt/volume
    • btrfs subvolume new volume /mnt
    • btrfs subvolume create /mnt/volume
  16. FILL BLANK
    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.)

    • uid
  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?

    • dd if=/dev/zero of=/tmp/swapfile bs=1024 count=5120000; mkswap /tmp/swapfile; mount /tmp/swapfile
    • dd if=/dev/zero of=/tmp/swapfile bs=1024 count=5120000; swapon /tmp/swapfile
    • dd if=/dev/zero of=/tmp/swapfile bs=1024 count=5120000; mkswap /tmp/swapfile; swapon /tmp/swapfile
    • touch -5G /tmp/swapfile; swapon /tmp/swapfile
    • mkswap /tmp/swapfile 512000; swapon /tmp/swapfile
  18. What is the purpose of a system mount unit?

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

    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.)

    • sync
  20. What component of a system does smartd monitor?

    • CPU
    • RAM
    • Hard drives
    • Ethernet traffic
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments