LPIC201
![]() |
![]() |
![]() |
Título del Test:![]() LPIC201 Descripción: Test Curso |




Comentarios |
---|
NO HAY REGISTROS |
In the below example out, which columns detail the percetn of time the CPU spent running non-kernel code and the percent of time the CPU spent running kernel code? (Choose TWO correct answers.) # vmstat 1 100 procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu---- r b swpd free buff cache si so bi bo in cs us sy id wa 0 0 0 282120 134108 5797012 0 0 0 2 0 0 0 0 100 0 0 0 0 282120 134108 5797012 0 0 0 0 1007 359 0 0 100 0 0 0 0 282120 134108 5797012 0 0 0 0 1117 577 0 0 100 0 0 0 0 282120 134108 5797012 0 0 0 0 1007 366 0 0 100 0. id. us. wa. sy. What option in the collectd configuration file is required in order to define what to start monitoring?. LoadModule. Module. Plugin. LoadPlugin. In the following output from top, wich processes contribute to the percentage of time that the CPU spends in the state of wa? Tasks: 193 total, 1 running, 190 sleeping, 2 stopped, 0 zombie Cpu(s): 0.5%us, 0.3%sy, 0.0%ni, 98.2%id, 1.0%wa, 0.0%hi, 0.0%si, 0.0%st. Processes waiting for user interaction. Processes that were already closed and are waiting to be launched again. Processes that hace not been scheduled yet because they haven't been fully loaded into RAM or are in swap. Processes waiting for IO operations to complete. In the following output, what percentage of time was the CPU waiting for pending I/O? # vmstat 1 100 procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu---- r b swpd free buff cache si so bi bo in cs us sy id wa 0 0 0 282120 134108 5797012 0 0 0 2 0 0 0 0 100 0 0 0 0 282120 134108 5797012 0 0 0 0 1007 359 0 0 100 0 0 0 0 282120 134108 5797012 0 0 0 0 1117 577 0 0 100 0 0 0 0 282120 134108 5797012 0 0 0 0 1007 366 0 0 100 0. 0. 100. 35.9. 57.7. 36.6. What mechanism does collectd use to gather monitoring information on systems?. It uses a library of plugins. A master serer connects to a collectd service on each machine to retrive the information. it collects its own information on each sercer and sends that to a master server. It makes SNMP queries to the clients being monitored. Which command will report informaction on memory usage, paging and block input/output?. free. memshow. ps. top. vmstat. In the example output, which descriptions match the purpose of the free, buff and cache columns? (Choose THREE corrects answers.) # vmstat 1 100 procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu---- r b swpd free buff cache si so bi bo in cs us sy id wa 0 0 0 282120 134108 5797012 0 0 0 2 0 0 0 0 100 0 0 0 0 282120 134108 5797012 0 0 0 0 1007 359 0 0 100 0 0 0 0 282120 134108 5797012 0 0 0 0 1117 577 0 0 100 0 0 0 0 282120 134108 5797012 0 0 0 0 1007 366 0 0 100 0. Used swap space. RAM available for filesystem buffers. Available free RAM. RAM used for buffers. RAM used for filesystem cache. In the followin output, what is the 5 minute load average for the system? # uptime 12:10:05 up 18 days, 19:00, 2 users, load average: 0.47, 24.71, 35.31. 0.47. 24.71. 35.31. There is no 5 minute interval. It is some value between 0.47 and 24.71. There is no 5 minute intervarl. It is some value between 24.71 and 35.31. When is historical data of resource usage important? (Select THREE correct answers.). Predicting when resources will need to be increased. Selecting a computer vendor. Identifying processes killed during out of memory occurrences. Diagnosing capacity problems. Troubleshooting a software problem. In capacity planning exercises, which tools assist in listing and identifying processes of interest? (Choose TWO correct answers.). acpid. lsof. pstree. telinit. When planning a web server which of the following choices will impact system sizing? (Choose THREE correct answers.). How many concurrent users are expected. Which hardware vendor has better Linux support. What type of content will be served. What scripting languages will the web server support. Will the OS install be CD, DVD or network based. In the following output, the load averages represent the system load averages for what time frames? 12:10:05 up 18 days, 19:00, 2 users, load average: 0.47, 24.71, 35.31. 1, 5 and 15 minutes. 1, 15 and 30 minutes. 1, 15, and 30 seconds. 15, 30 and 60 minutes. 15, 30 and 60 seconds. Which of the following commands will provide the PIDs of the processes sorted by which are using the most CPU cycles on the Linux system?. top. uptime. ps aux. vmstat. freemem. Which of the following is a side effect of extensive usage of swap space?. The root filesystem may become full because swap space is always located on the system root partition. The overall system performance may degrade because of heavy hard disk use and memory reorganization. Since processes always exist completely in either RAM or swap, regular RAM may become unused if the kernel does not move processes back from the swap space to memory. The memory may become fragmented and slow down the access to memory pages. However, this can be kept to a minimum by the regular use of memfrag -d. Applications need to restart because their virtual memory addresses change to reflect memory relocation to the swap address area. Which commands below are useful to collect data about remote filesystem connections? (Choose TWO correct answers.). pidsat. nfsiostat. sadf. cifsiostat. Which of the following tools are used to measure memory usage? (Choose THREE correct answers.). mpstat. pstree. sar. top. vmstat. Which of the following command sequences can be used to extract files contained in a initramfs file (/boot/initramfs) which is used by the kernel at boot time?. cp /boot/initramfs /tmp/initramfs.gz; gzip -c /tmp/initramfs.gz; mkdir /tmp/initramfs.dir ; cd /tmp/initramfs.dir ; cpio -i < /tmp/initramfs. cp /boot/initramfs /tmp/initramfs.gz; gunzip /tmp/initramfs.gz; mkdir /tmp/initramfs.dir ; cd /tmp/initramfs.dir ; cpio -i < /tmp/initramfs. cp /boot/initramfs /tmp/initramfs.gz; gunzip /tmp/initramfs.gz; mount /tmp/initramfs /mnt/ - o loop -t initramfs. cp /boot/initramfs /tmp/initramfs.gz; gunzip /tmp/initramfs.gz; mkdir /tmp/initramfs.dir ; cd /tmp/initramfs.dir ; cpio -e /tmp/initramfs. cp /boot/initramfs /tmp/initramfs.gz; gunzip /tmp/initramfs.gz; mount /tmp/initramfs /mnt/ - o loop -t initrd. How can the kernel parameter for the maximum size of the shared memory segment (shmmax) be changed to 2GB (2147483648 Bytes) on a running system? (Choose TWO correct answers.). Edit /etc/shmmax and set the parameter to 2147483648. sysctl shmmax=2147483648. sysctl kernel.shmmax=2147483648. echo 2147483648 > /proc/sys/kernel/shmmax. export kernel.shmmax=2147483648. What is the correct parameter to pass to the kernel at boot time to force it to use only one of the available processors?. maxcpus=1. usecpus=1. smpcpus=1. vcpumx=1. Which command is used to unload a single module currently loaded by the kernel without unloading any modules that it depends upon? (Specify the command with or without path information). What information does the file modules.dep provide?. A list of all modules, compiled or not, that are available to the kernel. A list of modules trusted by the installed kernel. A list of devices and their module name. A list of all compiled modules and their dependencies. A list of modules the kernel needs to run. Which archive format is used to create an initramfs image?. gzip. tar. RAR. cpio. bzip2. Which of the following terms are used to describe 3.x kernel releases? (Choose TWO correct answers.). beta. final. longterm. prerelease. stable. Which directory contains the system-specific udev rule files? (Specify the absolute path including the directory name). A new kernel version needs to be compiled to use a new feature. If the old kernel configuration file is available, which make target creates a configuration file for the new kernel based on the configuration of the old kernel?. How is the source code for the main Linux kernel modules distributed?. It is included with the Linux kernel source code. The kernel modules are downloaded on demand as they are used during compilation. The kernel modules have their own release cycle and can be maintained separately from the Linux kernel source. It is provided as a separate download alongside the Linux kernel source code of the same version. Which commands are used to load modules into the Linux kernel? (Choose TWO correct answers.). insmod. loadmod. kernload. modprobe. probemod. After configuring a new kernel, what file under /usr/src/linux/ contains the configuration?. What is a key difference between a zImage and bzImage kernel image?. zImage is compressed using gzip, bzImage is compressed using bzip2. zImage is for 2.6 series kernels, bzImage is for 3.x series kernels. zImage is limited to 64k, bzImage has no such restriction. zImage gets loaded completely into low memory. bzImage will load into high memory once low memory is full. According to the Filesystem Hierarchy Standard (FHS), what is the path to the Linux kernel source and may be a symbolic link to the real Linux source code? (Please specify the full path with no version information.). After installing a compiled kernel, it can not find any modules that are needed to be loaded. What make target was likely missed while installing the kernel?. A database application requires a maximum shared memory segment (shmmax) of 2GB (2147483648 Bytes). Which configuration file should be modified to set this kernel parameter permanently? (Specify the full name of the file, including path.). What is the purpose of the command udevadm monitor?. It listens to kernel events produced by a udev rule and print information to the console. It monitors the /dev directory for new devices. It monitors the udev process and prints performance statistics to the console. It communicates with D-Bus to setup new devices. On a server running the 3.4.50-11 Linux kernel, which file in the /boot directory contains the kernel configuration parameters?. config-linux-3.4.50-11. config-3.4.50-11. system-3.4.50-11. vmlinuz-3.4.50-11. rc.config-3.4.50-11. A system with SysV-init has a service installed called apache2. Which file controls the start and stop of this service and is referenced by the various runlevel directories?. /etc/init.d/apache2. /etc/rc2.d/70apache2. /etc/rc2.d/apache2. /etc/rc2.d/apache2.start. If all of the following files and/or symlinks exist in a SysV-init runlevel directory, which of the following will be executed first when booting the system directly into the runlevel?. S99lpi. K99lpi. PRE-S99lpi. S98lpi. S99a-lpi. What is the functionality that PXE provides?. The ability to boot a computer using its network interface. The ability to launch an remote X11 desktop on a computer. The ability to verify a system's configuration after completing the boot process. The ability to verify a system's configuration before completing the boot process. In case the file containing the Linux kernel is lost, what happens when the system is booting?. The system starts normally since the bootloader copies the kernel to the master boot record of the hard disk. Instead of the kernel, the initramfs is loaded and instructed to mount the root filesystem and reinstall the kernel from the original package or from source. The bootloader mounts the root filesystem read-only and launches /bin/sh directly in order to allow the administrator to reinstall the kernel. Without a kernel a system cannot boot and, depending on the bootloader, an error is displayed. What happens if the Linux kernel can't mount the root filesystem when booting?. An error message is shown and the administrator is asked by the kernel to specify a valid root filesystem to continue the boot process. An error message is shown and the system reboots after a keypress. An error message is shown and the system boots in maintenance mode. An error message is shown showing which device couldn't be mounted or informing that init couldn't be found. An error message is shown stating that the corresponding kernel module couldn't be loaded. Which option to the update-rc.d command will cause the removal of all symlinks to /etc/rcX.d/*test2 even when the script /etc/init.d/test2 still exists?. -d. -f. -n. -r. After changing the default runlevel in the SysV-init configuration file, the system boots in a different than intended runlevel. Where else could this different runlevel be defined?. In the /etc/sysctl.conf. In the boot loader configuration file. In the /etc/runlevel file. In the /boot/initramfs file. In the /etc/rc.d/rc.local file. Which file tells GRUB the paths of the filesystem partitions in both Linux format and in the GRUB syntax? (Specify the file name only with no path information). Which keyword is used in the /etc/inittab file to define the SysV-init default system runlevel?. A server requires a GRUB2 boot option which will always boot to runlevel 1. Which line of a GRUB2 configuration file starts the beginning of the settings needed to make this new choice available?. initrd. linux. menuentry. runlevel. Why is the root file system mounted read-only during boot and remounted with write permission later on?. Because if problems with the root file system are detected during the boot, fsck can be run, without risk of damage. Because this way crackers cannot collect information about root with boot sniffers. To avoid writing to the disk, unless the root password is known. To avoid other operating systems overwriting the Linux root partition. Because the disk has its own write protection that cannot be changed by the operating system. A Linux server is running in single user mode for regular maintenance. Which commands are used to restore the server to its usual runlevel? (Choose TWO correct answers.). telinit 0. shutdown -r now. sync. shutdown -h now. reboot. Please enter the complete path to the main SysV init process configuration file. Which command is used to install a new LILO boot loader?. lilo. lilo-config. lilo-install. install-lilo. During booting, when the Linux kernel loads an initramfs file, which command from the initramfs will be executed first, if present?. /init. /initrd. /linuxrc. /rc.local. /sbin/init. What is the full path to the directory which contains the scripts (or links to the original scripts) to run while the system boots to SysV-init runlevel 2?. Where is the LILO boot loader code typically installed on a system with only a single Linux installation and no other operating systems?. In the master boot record. In the boot sector. In the /boot directory. At the start of the kernel. What are the main network services used by the PXE protocol? (Choose TWO correct answers.). DNS. DHCP. HTTP. TFTP. NFS. What does a 0 in the last field (fsck order) of /etc/fstab indicate about the filesystem?. The filesystem should be checked before filesystems with higher values. The filesystem should be checked after filesystems with higher values. The filesystem check counter is ignored. The filesystem has been disabled from being checked and mounted on the system. The filesystem does not require an fsck check when being mounted. Which command is used to create a ISO9660 filesystem? (Specify ONLY the command without any path or parameters.). Where would fsck put any unreferenced file or file fragments on a ext4 filesystem?. recover. lost+found. back. lost. Which of the following is a CD-ROM filesystem standard?. OSI9660. ISO9660. SR0FS. ISO8859. ROM-EO. Which command turns an existing ext2 filesystem non-destructively into an ext3 filesystem? (Specify ONLY the command without any path or parameters.). What keyword is missing in the following line from /etc/fstab in order to make a USB flash device writeable by the user fred when mounted: /dev/sda1 /mnt/usbflash vfat defaults,users,______=fred,umask=022, 0 0 (Provide the option name only without any settings). What is the main template file used by autofs?. default.maps. auto.conf. auto.master. autofs.master. Which of the following are common Linux filesystem types used for root partitions? (Choose THREE correct answers.). ext4. VFAT. NTFS. XFS. Btrfs. How can the label root be added to the ext2 filesystem on /dev/sda1?. relabel /dev/sda1 root. tune2fs -L root /dev/sda1. echo 'root' > /proc/fs/sda1/label. labelfs --device /dev/sda1 root. The main configuration file for autofs has this entry: /home /etc/auto.home What is the meaning of the /etc/auto.home file?. It has the indirect maps for the mounting of file systems. It has configuration information, such as passwords and keys, for the remote file server. It has configuration information on settings for the /home mount point. It is the holds the SSL key to allow authentication to the remote file server. What is the purpose of the smartd daemon?. It is a user space daemon used for reading smart cards and integrated circuit chips. It attempts to automatically repair file systems upon a failed file system check. It monitors process activity and helps the kernel decide which processes to kill when the kernel overcommits. It monitors certain disk drives and attempts to predict when they will fail. Which directory in /dev/disk/ can be used to determine the UUID of a connected hard disk?. Which files are updated as devices are mounted and unmounted to provide information on the currently mounted devices and the options used? (Choose TWO correct answers.). /proc/dtab. /etc/mtab. /etc/fstab. /proc/mounts. /proc/devices. What component of a system does smartd monitor?. CPU. RAM. Hard drives. Ethernet traffic. Which of the following best describes the format of the /etc/fstab file?. device name; filesystem type; mount point; mount options; dump filesystem; fsck order. device name; mount point; filesystem type; mount options; dump filesystem; fsck order. device name; mount point; mount options; filesystem type; dump filesystem; fsck order. mount point; filesystem type; device name; mount options; dump filesystem; fsck order. mount point; device name; filesystem type; mount options; dump filesystem; fsck order. After a lot of write operations, the administrator want to ensure that the kernel flushes the file system buffers to disk. Which command will accomplish this? (Specify ONLY the command without any path or parameters.). Consider the following /etc/fstab file: /dev/hda1 swap swap defaults 0 0 /dev/hda2 / ext2 defaults 1 1 /dev/hda3 /home ext2 defaults 1 2 none /proc proc defaults 0 0 /dev/sdb1 /media/usb0 vfat user,noauto 0 0 What is one of the possible commands that an ordinary (non-root) user can use to mount the /dev/sdb1 partition on the /media/usb0 mount point? (Please enter the command with all parameters and/or options but without any file system type options.). Due to extreme system use, a Linux system requires some additional swap space. To initialize 5GB 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. mkswap /tmp/swapfile 512000; swapon /tmp/swapfile. lvsnap. lvsnapshot. lvcreate. lvcopy. lvclone. Which of the following commands is used to set up a RAID volume?. makerd. mdadm. mkfs.raid. makeraid. rdconfig. Which directory in /dev/disk/ can be used to determine the UUID of a connected hard disk? (0). What are the options to node.startup in the iscsid.conf file? (Choose TWO correct answers.). login. initiate. manual. discover. automatic. Which of the following best describes the format of the /etc/fstab file? (0). device name; filesystem type; mount point; mount options; dump filesystem; fsck order. device name; mount point; filesystem type; mount options; dump filesystem; fsck order. device name; mount point; mount options; filesystem type; dump filesystem; fsck order. mount point; filesystem type; device name; mount options; dump filesystem; fsck order. mount point; device name; filesystem type; mount options; dump filesystem; fsck order. What keyword is missing in the following line from /etc/fstab in order to make a USB flash device writeable by the user fred when mounted: /dev/sda1 /mnt/usbflash vfat defaults,users,______=fred,umask=022, 0 0 (Provide the option name only without any settings). Which of the following is a CD-ROM filesystem standard? (0). OSI9660. ISO9660. SR0FS. ISO8859. ROM-EO. What is the minimum number of disks required in a fully redundant RAID5 array?. 1. 2. 3. 4. 5. Which RAID level value must be used with Linux software RAID in order to create an array of mirrored devices?. 1. 5. 6. container. mirrorstripe. Which two LVM commands are missing from the following sequence which is used to create a logical volume and make use of it on a Linux system? pvcreate, ___________, __________, mkfs, mount. lvcreate, mdadm. lvcreate, vgcreate. lvmcreate, vgcreate. vgcreate, lvcreate. vgcreate, mdadm. The correct command sequence to create and mount logical volumes on a Linux system is: lvcreate, pvcreate, vgcreate, mkfs, mount. pvcreate, vgcreate, lvcreate, mkfs, mount. vgcreate, lvcreate, pvcreate, mount, mkfs. mkfs, pvcreate, vgcreate, lvcreate, mount. pvcreate, lvcreate, vgcreate, mkfs, mount. What command will remove a physical volume from a volume group? (Specify ONLY the command without any path or parameters.). Which single command will simulate 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. 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 lvresize. Remount the logical volume. Which file in /proc contains information on the status of local software RAID devices?. /proc/raidstat. /proc/mdstat. /proc/raidstatus. /proc/mdstatus. /proc/raid/status. Due to extreme system use, a Linux system requires some additional swap space. To initialize 5GB of additional swap space, which combination of commands should be used? (0). 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. The IDE hard drive /dev/hda does not have DMA enabled. Which command must be run to enable DMA on it?. hdparm -d /dev/hda. hdparm --dma /dev/hda. hdparm --dma /dev/hda1. hdparm -d /dev/hda1. hdparm -d 1 /dev/hda. What component of a system does smartd monitor? (0). CPU. RAM. Hard drives. Ethernet traffic. What is the purpose of the command vgextend?. Extend a volume group's footprint on disk. Add physical volumes to an existing volume group. Increase the number of days between scheduled error checking. Create a volume group which uses all available space on disk. 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. How can the label root be added to the ext4 filesystem on /dev/sda1?. relabel /dev/sda1 root. tune2fs -L root /dev/sda1. echo 'root' > /proc/fs/sda1/label. labelfs --device /dev/sda1 root. What mount option must be used in /etc/fstab when mounting an iSCSI target?. _santarget. iscsi. waitiscsi. _netdev. Which of the following is an example path to a Linux software RAID array?. /dev/raid0. /dev/rd1. /dev/pr0. /dev/md1. The main configuration file for autofs has this entry: /home /etc/auto.home What is the meaning of the /etc/auto.home file? (0). It has the indirect maps for the mounting of file systems. It has configuration information, such as passwords and keys, for the remote file server. It has configuration information on settings for the /home mount point. It is the holds the SSL key to allow authentication to the remote file server. Where would fsck put any unreferenced file or file fragments on a ext4 filesystem? (0). recover. lost+found. back. lost. What should be done after updating the configuration file for syslogd in order to make the changes become effective? (Choose TWO correct answers.). No action is required, syslogd will notice the updated configuration file after a few minutes. Send the HUP signal to the syslogd process. Restart the syslogd service. Run the command syslogd -u. 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. ifconfig -lv eth0. netstat -al. ip neigh show. 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. ip net delete 10.10.1.0/24. route del 10.10.1.0/24. route del -net 10.10.1.0/24. route del 10.10.1.0/24 gw 192.168.246.11. ip route delete 10.10.1.0/24. Which of the following files are used to resolve hostnames to IP addresses? (Choose TWO correct answers.). /etc/systems. /etc/hosts. /etc/network. /etc/dns.conf. /etc/resolv.conf. Which of the following wireless tools can be used to check the wireless network link quality? (Choose TWO correct answers.). iwconfig. iwlink. iwscan. iwifi. iw. 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. 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. When the host being sent ICMP packets is on a different network. When the router responds to the ICMP packet in addition to the host receiving the ICMP packets. When the host sending the ICMP packet is the same host as the one receiving the ICMP packets. 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. Two host names are using the same IP address. The server doing the query is on a different subnet. The fields are out of order. host2 is not a fully qualified domain name. 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 Question No : 102 - (Topic 6) Question No : 103 - (Topic 6) Question No : 104 - (Topic 6) LPI 201-450 : Exams Prep Top IT Certification Prep Material 36 (41) Which network service or protocol was used?. FTP. HTTP. SSH. DNS. DHCP. Which program lists information about files and network connections opened by processes? (Specify ONLY the command without any path or parameters.). Running tcpdump -nli eth1 'tcp' shows the following output: 14:41:53.694538 IP 10.1.52.145.51738 > 24.215.7.162.143: Flags [.], ack 33051, win 1002, options [nop,nop,TS val 36789130 ecr 1746004159], length 0 What is the source IP address of this packet? (Please specify the answer in digits and dots ONLY.). Which command can be used to scan a specified network looking for IP addresses that appear to be in use?. nmap. tcpdump. ip. netscan. hostdiscover. 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. Run route add nameserver 192.168.0.1. Run ifconfig eth0 nameserver 192.168.0.1. Ensure that the dns service is listed in the hosts entry in the /etc/nsswitch.conf file. Run bind add nameserver 192.168.0.1. Which /etc/hosts.allow entries will permit access to sshd for users from the 192.168.1.0/24 subnet? (Choose TWO correct answers.). sshd : 192.168.1. sshd : 192.168.1. sshd : 192.168.1.0 netmask 255.255.255.0. sshd : 192.168.1.0/255.255.255.0. sshd : 192.168.1.0. 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. ifconfig. ipadm. iwlist. 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>. 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.). tcpd needs to be sent the HUP signal. The service needs to be restarted. The machine needs to be restarted. There is a conflicting entry in /etc/hosts.allow. The service does not support tcpwrapper. What is the command to add another IP address (192.168.1.2) to a network interface (eth0) that already has (at least) one IP address in the 192.168.1.0/24 subnet?. ip add addr 192.168.1.2/32 dev eth0. ifconfig eth0 192.168.1.2 netmask 255.255.255.255. ip addr add 192.168.1.2/32 dev eth0. ipconfig eth0 192.168.1.2. 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. HTTP. SSH. DNS. DHCP. Which of the following filter keywords for tcpdump specify the transfer direction for network packets? (Choose TWO correct answers.). source. src. dest. src or dst. both. Which of the following commands can be used to script interactions with various TCP or UDP services?. ftp. nc. tcpdump. strings. wget. 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. ifconfig eth0 defaultroute 192.168.0.1. ip route add default via 192.168.0.1 dev eth0. echo defaultroute 192.168.0.1 >> /etc/resolv.conf. route add defaultgw=192.168.0.1 if=eth0. 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.). Which of the following commands will erase 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. 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 including the third / character. patch continues execution as long as there are three or fewer errors. It instructs patch to look up to three lines of context before or after the declared line in the original file for a match. patch will keep three previous versions of each file in the output to prevent loss of change history. It instructs patch to conform more strictly to the POSIX standard. When a makefile is included in a source code package, what are commonly defined targets in the file?. CFLAGS, CPPFLAGS, LIBS, LDFLAGS. clean, install, uninstall. PATHS, DESTDIR, LIBS, LDFLAGS. prefix, exec_prefix, bindir, mandir. Which of the following are common backup systems used in Linux? (Choose TWO correct answers.). Amanda. Bacula. DrBackup. BREWBackup. SARcheck. 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.). 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/. 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. 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 kevin@deltaur:/var/tmp/ fyf/. rsync -a -u kevin -e ssh fyf/ deltaur:/var/tmp/. rsync -a -u kevin -e ssh deltaur:/var/tmp/ fyf/. rsync -a -e ssh fyf/ kevin@deltaur:/var/tmp/. 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.). 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.). configure. config.h.in. makefile. Makefile. Makefile.in. Which one of these directories should not be backed up?. /backup. /etc. /opt. /proc. /var/log. Which file contains the text message that is displayed after logging into the console? (Specify the full name of the file, including path.). 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*’. Which of the following configuration files are used by tcpwrapper?. /etc/tcpd.allow and etc/tcpd.deny. /etc/tcpwrapper.allow and /etc/tcpwrapper.deny. /etc/hosts.allow and /etc/hosts.deny. /etc/service.allow and /etc/service.deny. 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. Which is the main configuration file for the SystemV init process? (Specify the full name of the file, including path.). 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 system accessible to the kernel. It moves the kernel from normal system memory to initram memory to speed up kernel access. It copies the root file system’s content to RAM to speed up the system and reduce writes to disk. It creates a ram disk to store volatile data for directories like /tmp to reduce writes to disk. 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 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. Which of the following init systems comes along with an own UEFI boot loader?. systemd. SysVinit. Upstart. OpenRC. launchd. 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.). 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 and move the resulting directory to /usr/src/linux. Apply the patch file to the kernel source directory containing kernel version 4.6.0. Apply the patch file to the kernel source directory containing kernel version 4.6.3. 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 previous kernel version. Which directory contains system-specific systemd unit files? (Specify the full path to the directory.). A web application server contains 64GB of RAM and two swap partitions on normal hard disk drives, each with a size of 64 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.). Delay any hardware upgrade until there is a significant consumption of swap space to ensure an efficient usage of the available hardware. Create a RAID 1 device on the two swap partitions to avoid data loss in case swap space has to be used in the future. Consider the installation of an additional application server to distribute the load if the expected growth continues over several months. Move the web application’s scripts and content a ram disk in order to ensure fast access and to avoid the need for swap space. Update the hardware to increase the amount of available RAM to avoid using swap space. Which of the following commands adds a static IPv6 address to the network interface eth0?. ip add addr 2001:db8::1337/64 dev eth0. ip -6 add addr 2001:db8::1337/64 dev eth0. ip addr add 2001:db8::1337/64 dev eth0. ip -6 addr add new 2001:db8::1337/64 dev eth0. ip addr add -6 2001:db8::1337/64 dev eth0. Which of the following properties should be recorded in order to monitor the quality of a network link? (Choose two.). Bandwidth in both directions. Number of nodes using the link. Effective Latency. Number of IPv4 and IPv6 packets. Number of IPv4 and IPv6 packets. What command is used to send messages to all users currently logged in? (Specify ONLY the command without any path or parameters.). Which of the following commands displays the physical path of the kernel module named dummy?. modprobe –i dummy. modinfo –n dummy. modpath –v dummy. depmod –n dummy. modshow –p dummy. 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 highest metric value. The default route with the highest MTU value. The default route with the lowest TTL value. The default route with the highest TTL value. The default route with the lowest metric value. 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. ifconfig. ipadm. iwlist. Which of the filter keywords below could be used in the following command: tcpdump –i eth0 ____________ 203.0.113.8 (Choose three.). host. ip. src. dst. ipv6. 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. Which of the following is a userspace application used to modify EFI entries on a Linux system?. efieditor. configefi. efimanager. efiboottmgr. efibootedit. Which sub command to crypsetup shows information about an encrypted LUKS partition?. luksDump. luksInfo. luksDebug. luksLS. luksShow. 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. sync. systemctl emergency. systemctl reboot. 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. 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.). After manually compiling and installing a new kernel, what has to be done regarding the initramfs?. To initramfs is independent of the kernel and should not be modified unless the hardware configuration of the machine has changed. Since the initramfs contains kernel modules, a new initramfs must be built for the new kernel. During the compilation of the Linux kernel, a new initramfs is built automatically. The new initramfs only needs to be installed. The system should be restarted since the initramfs reconfigures itself for the new kernel during the startup of the system. Which command is used to install a GRUB boot loader into the master boot record?. grub-install. grub-mkconfig. grub-install-mbr. grub-glue-mbr. grub-mbr-setup. In order to gather performance data with sar over a longer period of time, which command should be run periodically from cron?. sa1. sarmon. sarec. sadf. sarcron. In the output of sar –b, what does tps stand for?. Terrabyte per second. Traffic per second. Transfers per second. Total data per second. Terrabit per second. Which of the following commands shows capabilities and usable frequencies for the wireless interface wlan0?. iw phy pyh0 info. iw dev wlan0 info. iw dev wlan0 show. iw phy wlan0 show. iw phy0 show. 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. In which directory tree are files modified when changing kernel parameters using the command sysctl?. /sys/kernel/. /proc/kernel/. /proc/sys/. /lib/sys/. /sys/proc/. 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 the symlinks in /etc/rcX.d/ even when the links are read only. It will remove both the symlinks in /etc/rcX.d/ and the init script in /etc/init.d/. 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. It will force the removal of symlinks in /etc/rcX.d/ even if the corresponding init script still exists in /etc/init.d/. |