暗記メーカー
ログイン
LPIC 2 1.2
  • ユーザ名非公開

  • 問題数 70 • 2/21/2024

    記憶度

    完璧

    10

    覚えた

    26

    うろ覚え

    0

    苦手

    0

    未解答

    0

    アカウント登録して、解答結果を保存しよう

    問題一覧

  • 1

    Which of the following commands will erase the contents of the /dev/sdb3 partition?

    dd if=/dev/zero of=/dev/sdb3

  • 2

    What is the purpose of a system mount unit?

    It is used by the command systemd-mount and allows users to mount partitions to mountpoints of their choice

  • 3

    Which RAID level provides the most redundancy?

    RAID1

  • 4

    The following is an excerpt from the output of tcpdump -nli eth1: 13:03:17.277327 IP 192.168.123.5.1065 > 192.168.5.112.21: Flags [.], ack 1 (truncated) 13:03:17.598624 IP 192.168.5.112.21 > 192.168.123.5.1065: Flags [P.], seq (truncated) Which network service or protocol was used?

    FTP

  • 5

    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?

    lvcreate

  • 6

    On a Linux node with multiple active networks interfaces, each having a default route to the Internet, which default route is preferred?

    The default route with the lowest metric value

  • 7

    In the output of sar –b, what does tps stand for?

    Transfers per second

  • 8

    What is the minimum number of disks required in a RAID5 array?

    3

  • 9

    A regular user, joe, 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 correct answers.)

    Run make install with root privileges., Rerun ./configure with a --prefix option where the user has permissions to write.

  • 10

    Which of the following commands adds a static IPv6 address to the network interface eth0?

    ip -6 addr add new 2001:db8::1337/64 dev eth0

  • 11

    Which command is used to install a GRUB boot loader into the master boot record?

    grub-install

  • 12

    Which pseudo-file contains information on the status of software RAID devices?

    /proc/mdstat

  • 13

    You decide to use the logical volume manager (LVM) to manage four 4GB disk drives. After creating the volume group, how would you create a 10GB logical volume called big-app?

    lvcreate -l 2560 vg01 -n big-app

  • 14

    In which directory tree are files modified when changing kernel parameters using the command sysctl?

    /proc/sys/

  • 15

    Which of the following commands displays the physical path of the kernel module named dummy?

    modprobe –i dummy

  • 16

    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

  • 17

    The users of the local network complain that name resolution is not fast enough. Enter the command, without the path or any options, that shows the time taken to resolve a DNS query.

    dig, time dig, time host, time nslookup

  • 18

    The following command has just been run successfully: cd /opt; tar xvf /dev/nst0; What will happen if the command sequence is run again?

    The contents of /opt will have additional content added from the next file on the tape.

  • 19

    Which of the following configuration files are used by tcpwrapper?

    /etc/hosts.allow and /etc/hosts.deny

  • 20

    What is the usable disk space of a RAID 5 array of five 18GB drives with one drive dedicated as a spare?

    54GB

  • 21

    Which of the following commands will securely copy the directory ./fyf/ to /var/tmp/ on the remote host deltaur using the remote user account kevin?

    rsync -a -e ssh fyf/ kevin@deltaur:/var/tmp/

  • 22

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

    dd if=/dev/zero of=/dev/sdb3

  • 23

    What does the -p3 option to the patch command do?

    It will strip off path information from each file mentioned in the patch file up to and includingthe third / character.

  • 24

    Under which of the following circumstances would the command ping output the string (DUP!)?

    When the ICMP packets are send to a broadcast address and multiple hosts respond.

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

    It will force the removal of symlinks in /etc/rcX.d/ even if the corresponding init script stillexists in /etc/init.d/

  • 26

    Which of the following wireless tools can be used to check the wireless network link quality? (Choose TWO correct answers.)

    iwconfig, iw

  • 27

    Which of the following are common backup systems used in Linux? (Choose TWO correct answers.)

    Amanda, Bacula

  • 28

    A server has three disks of 80GB each and must manage a database with 4 million records of 30KB each. The best configuration for this server, with the criteria being performance, configurability and flexibility, is:

    Use LVM over RAID5

  • 29

    What should be done to ensure a client machine uses the recursive nameserver running on the IP address 192.168.0.1? (Choose TWO correct answers.)

    Add nameserver 192.168.0.1 to /etc/resolv.conf., Ensure that the dns service is listed in the hosts entry in the /etc/nsswitch.conf file.

  • 30

    When a makefile is included in a source code package, what are commonly defined targets in the file?

    clean, install, uninstall

  • 31

    What is the purpose of vgextend?

    Add physical volumes to a volume group

  • 32

    What is the purpose of an initramfs during the Linux system start?

    It loads required modules and starts sub sytems like LVM to make the root file systemaccessible to the kernel

  • 33

    Which command can be used to scan a specified network looking for IP addresses that appear to be in use?

    nmap

  • 34

    Which file contains the message that is displayed above the login prompt of the system console? (Specify the full name of the file, including path.)

    /etc/issue

  • 35

    The following is an excerpt from the output of tcpdump -nli eth1 'udp': 13:03:17.277327 IP 192.168.123.5.1065 > 192.168.5.112.53: 43653+ A? lpi.org. (25) 13:03:17.598624 IP 192.168.5.112.53 > 192.168.123.5.1065: 43653 1/0/0 A 198.51.100.42 (41) Which network service or protocol was used?

    DNS

  • 36

    Considering the following kernel IP routing table below, which of the following commands must be used to remove the route to the network 10.10.1.0/24? (Select TWO answers) Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 203.0.113.162 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0 172.16.87.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.246.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 10.10.1.0 192.168.246.11 255.255.255.0 UG 0 0 0 eth1 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 203.0.113.162 0.0.0.0 UG 0 0 0 ppp0

    route del -net 10.10.1.0/24, ip route delete 10.10.1.0/24

  • 37

    Which of the filter keywords below could be used in the following command: tcpdump –i eth0 ____________ 203.0.113.8 (Choose three.)

    host, src, dst

  • 38

    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*’

  • 39

    What is incorrect about these entries in /etc/hosts which could be causing host name lookup problems with host2? host1 192.168.1.12 host2 192.168.1.12

    The fields are out of order.

  • 40

    What information does the file modules.dep provide?

    A list of modules required by each module.

  • 41

    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

  • 42

    A correctly formatted entry has been added to /etc/hosts.deny to prevent certain clients from connecting to a service but this is having no effect. What could be the cause of this? (Choose TWO correct answers.)

    There is a conflicting entry in /etc/hosts.allow., The service does not support tcpwrapper.

  • 43

    The correct command sequence to create logical volumes on a Linux system is:

    pvcreate, vgcreate, lvcreate, mke2fs, mount

  • 44

    In order to gather performance data with sar over a longer period of time, which command should be run periodically from cron?

    sa1

  • 45

    Which directory contains system-specific systemd unit files? (Specify the full path to the directory.)

    /lib/systemd/system

  • 46

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

    wall

  • 47

    What is the device name for the first SCSI tape drive on a system when used without automatic rewinding after each write operation? (Please specify the full path to the device.)

    /dev/nst0

  • 48

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

    makefile, Makefile

  • 49

    A Linux server running systemd booted to rescue.target for maintenance. Which commands are used to restore the server to its usual target? (Choose two.)

    telinit 0, systemctl default

  • 50

    According to the tcpdump output below, what is the IP address of the client host? 02:12:40.511381 IP 192.168.246.11.1045 > 192.168.246.1.22: S 3838532429:3838532429(0) win 5840 <mss 1460,sackOK,timestamp 31325740,nop,wscale 2> 02:12:40.511540 IP 192.168.246.1.22 > 192.168.246.11.1045: S 1209330085:1209330085(0) ack 383853 2430 win 5792 <mss 1460,sackOK,timestamp 11553457 3132574,nop,wscale 0> 02:12:40.511755 IP 192.168.246.11.1045 > 192.168.246.1.22: . ack 1 win 1460 <nop,nop,timestamp 3 132574 11553457> 02:12:40.515122 IP 192.168.246.1.22 > 192.168.246.11.1045: P 1:26(25) ack 1 win 5792 <nop,nop,timestamp 11553460 3132574> 02:12:40.515511 IP 192.168.246.11.1045 > 192.168.246.1.22: . ack 26 win 1460 <nop,nop,timestamp 3132578 11553460> 02:12:40.515952 IP 192.168.246.11.1045 > 192.168.246.1.22: P 1:23(22) ack 26 win 1460 <nop,nop,timestamp 3132578 11553460>

    192.168.246.11

  • 51

    Which of the following filter keywords for tcpdump specify the transfer direction for network packets? (Choose TWO correct answers.)

    src, src or dst

  • 52

    Which file contains the text message that is displayed after logging into the console? (Specify the full name of the file, including path.)

    /etc/motd

  • 53

    Which of the following commands can be used to list IPv4 addresses and MAC addresses for IP devices that the system has seen on the local network?

    arp

  • 54

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

    One of the disks in /dev/md0 has failed and a spare disk is used to recreate full redundancy, The information [UU_] means, that the raid is missing one disk and is not fully redundantD. The device is using version 1.2 metadata to allow LILO and GRUB Legacy to use /dev/md0 as the boot partition.

  • 55

    A web application server contains 64GB of RAM and two swap partitions on normal hard disk drives, each with a size GB. Within the last month, the average number of user sessions on this server has grown by 20 percent. At the same time, the average usage of RAM increased from 65 to 75 percent, while the swap space is almost not used at all. It is expected that the number of user sessions will continue to increase by about 15 to 20 percent each month. Which of the following reactions would be appropriate in response to these observations? (Choose two.)

    Consider the installation of an additional application server to distribute the load if theexpected growth continues over several months, Update the hardware to increase the amount of available RAM to avoid using swap space

  • 56

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

    btrfs subvolume create /mnt/volume

  • 57

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

    systemd

  • 58

    Which of the following commands lists IPv4 addresses and MAC addresses of network nodes that the local system has seen on its directly connected IP networks?

    arp

  • 59

    After the downloading patch-4.6.4.xz from http://kernel.org, what are the next steps to prepare the build of a version 4.6.4 Linux kernel? (Choose two.)

    Uncompress the file using xz to get the uncompressed patch file, Use patch to apply the uncompressed patch file to the source directory of any previouskernel version

  • 60

    Which of the following commands will list the IPv4 neighbors of the current system? This includes IP and MAC addresses. (Choose TWO correct answers.)

    arp, ip neigh show

  • 61

    What should be done after updating the configuration file for syslogd in order to make the changes become effective? (Choose TWO correct answers.)

    Send the HUP signal to the syslogd process., Restart the syslogd service.

  • 62

    Which one of these directories should not be backed up?

    /proc

  • 63

    After manually compiling and installing a new kernel, what has to be done regarding the initramfs?

    During the compilation of the Linux kernel, a new initramfs is built automatically. The newinitramfs only needs to be installed

  • 64

    Which of the following commands shows capabilities and usable frequencies for the wireless interface wlan0?

    iw phy pyh0 info

  • 65

    Which is the main configuration file for the SystemV init process? (Specify the full name of the file, including path.)

    /etc/inittab

  • 66

    Which of the following properties should be recorded in order to monitor the quality of a network link? (Choose two.)

    Bandwidth in both directions, Effective Latency

  • 67

    Which program lists information about files and network connections opened by processes? (Specify ONLY the command without any path or parameters.)

    lsof, /usr/bin/lsof

  • 68

    Which of the following is a userspace application used to modify EFI entries on a Linux system?

    efiboottmgr

  • 69

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

    luksDump

  • 70

    A network client has an ethernet interface (eth0) configured with an IP address in the subnet 192.168.0.0/24. This subnet has a router, with the IP address 192.168.0.1, that connects this subnet to the Internet. What needs to be done on the client to enable it to use the router as its default gateway? (Choose TWO correct answers.)

    route add default gw 192.168.0.1 eth0, ip route add default via 192.168.0.1 dev eth0