diff --git a/data/lpic1from_ad_101_500.csv b/data/lpic1from_ad_101_500.csv new file mode 100644 index 0000000..6e12ca3 --- /dev/null +++ b/data/lpic1from_ad_101_500.csv @@ -0,0 +1,64 @@ +"LEVEL","ANSWER","QUESTION",1,2,3,4,5 +"101-500","3","Which of the following statements is correct when talking about /proc/?","All changes to files in /proc/ are stored in /etc/proc.d/ and restored on reboot.","All files within /proc/ are read-only and their contents cannot be changed.","All changes to files in /proc/ are immediately recognized by the kernel.","All files within /proc/ are only readable by the root user." +"101-500","3","Which SysV init configuration file should be modified to disable the ctrl-alt-delete key combination?","/etc/keys","/proc/keys","/etc/inittab","/proc/inittab","/etc/reboot" +"101-500","1 3","Which of the following commands reboots the system when using SysV init? (Choose TWO correct answers.)","shutdown -r now","shutdown -r 'rebooting',"telinit 6","telinit 0","shutdown -k now 'rebooting'" +"101-500","3 4","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.)","shutdown -R 1 now","shutdown -single now","init 1","telinit 1","runlevel 1" +"101-500","1","Which command displays the contents of the Kernel Ring Buffer on the command line? (Provide only the command name without any options or path information)","Mastered","Not Mastered","","","" +"101-500","5","Which of the following options for the kernel's command line changes the systemd boot target to rescue.target instead of the default target?","systemd.target=rescue.target","systemd.runlevel=rescue.target","systemd.service=rescue.target","systemd.default=rescue.target","systemd.unit=rescue.target" +"101-500","2 4","What of the following statements are true regarding /dev/ when using udev? (Choose TWO correct answers.)","Entries for all possible devices get created on boot even if those devices are not connected.","Additional rules for udev can be created by adding them to /etc/udev/rules.d/.","When using udev, it is not possible to create block orcharacter devices in /dev/ using mknod.","The /dev/ directory is a filesystem of type tmpfs and is mounted by udev during system startup.","The content of /dev/ is stored in /etc/udev/dev and is restored during system startup." +"101-500","1","What is the name of the main configuration file for GNU GRUB? (Specify the file name only without any path.)","Mastered","Not Mastered","","","" +"101-500","3","To what environment variable will you assign or append a value if you need to tell the dynamic linker to look in a build directory for some of a program's shared +libraries?","LD_LOAD_PATH","LD_LIB_PATH","LD_LIBRARY_PATH","LD_SHARE_PATH","LD_RUN_PATH" +"101-500","1","To prevent users from being able to fill up the / partition, the ______ directory should be on a separate partition if possible because it is world writeable.","Mastered","Not Mastered","","","" +"101-500","1 2 4","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.)","Timestamps","MD5 checksums","Inodes","File sizes","GnuPG signatures" +"101-500","2","Which of the following commands can be used to perform a full text search on all available packages on a Debian system?","apt","apt-cache","apt-get","apt-search","dpkg" +"101-500","2","Which of the following commands can be used to download the RPM package kernel without installing it?","yum download --no-install kernel","yumdownloader kernel","rpm --download --package kernel","rpmdownload kerne","" +"101-500","4","What happens after issuing the command vi without any additional parameters?","vi starts and loads the last file used andmoves the cursor to the position where vi was when it last exited.","vi starts and requires the user to explicitly either create a new or load an existing file.","vi exits with an error message as it cannot be invoked without a file name to operate on.","vi starts in command mode and opens a new empty file.","vi starts and opens a new file which is filled with the content of the vi buffer if the buffer contains text." +"101-500","2","When given the following command line. echo "foo bar" | tee bar | cat +Which of the following output is created?","cat","foo bar","tee bar","bar","foo" +"101-500","4","Which of the following commands will print the last 10 lines of a text file to the standard output?","cat -n 10 filename","dump -n 10 filename","head -n 10 filename","tail -n 10 filename","" +"101-500","2","Which of the following commands displays the contents of a gzip compressed tar archive?","gzip archive.tgz | tar xvf -","tar ztf archive.tgz","gzip -d archive.tgz | tar tvf -","tar cf archive.tgz","" +"101-500","4","In the vi editor, which of the following commands will copy the current line into the vi buffer?","c","cc","1c","yy","1y" +"101-500","2","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?","-dirmax"," -maxdepth"," -maxlevels","-n","-s" +"101-500","4","What is the purpose of the Bash built-in export command?","It allows disks to be mounted remotely.","It runs a command as a process in a subshell.","It makes the command history available to subshells.","It sets up environment variables for applications.","It shares NFS partitions for use by other systems on the network." +"101-500","2","Which of the following explanations are valid reasons to run a command in the background of your shell?","The command does not need to execute immediately.","The command has to run immediately but the user needs to log out.","The system is being shut down and the command needs to restart execution immediately after the reboot.","The command can run at a lower priority than normal commands run on the command line.","" +"101-500","4","A user accidentally created the subdirectory \dir in his home directory. Which of the following commands will remove that directory?","rmdir '~/\dir'","rmdir ~/'dir'","rmdir ~/\dir","rmdir ~/\\dir","" +"101-500","2","Regarding the command: nice -5 /usr/bin/prog +Which of the following statements is correct?","/usr/bin/prog is executed with a nice level of -5.","/usr/bin/prog is executed with a nice level of 5.","/usr/bin/prog is executed with a priority of -5.","/usr/bin/prog is executed with a priority of 5.","" +"101-500","4","Which of the following commands instructs SysVinit to reload its configuration file?","reinit","initreload","telinit 7","telinit q","init reinit" +"101-500","4","What does the command mount -a do?","It mounts all available filesystems onto the current directory.","It shows all mounted filesystems.","It mounts all user mountable filesystems for thecurrent user.","It mounts all filesystems listed in /etc/fstab which have the option auto set.","It mounts all filesystems listed in /etc/fstab which have the option noauto set." +"101-500","5","Which of the following commands can be used to locate programs and their corresponding man pages and configuration files?","dirname","which","basename","query","whereis" +"101-500","4","Which of the following settings for umask ensures that new files have the default permissions -rw-r----- ?","0017","0640","0038","0027","" +"101-500","3","In Bash, inserting 2>&1 after a command redirects:","standard error to standard input.","standard input to standard error.","standard output to standard error.","standard error to standard output.","standard outputto standard input." +"101-500","4","What is the purpose of the Filesystem Hierarchy Standard?","It is a security model used to ensurefiles are organized according to their permissions and accessibility.","It provides unified tools to create, maintain and manage multiple filesystems in a common way.","It defines a common internal structure of inodes for all compliant filesystems.","It is a distribution neutral description of locations of files and directories.","" +"101-500","1","Which command is used to query information about the available packages on a Debian system?","apt-cache","apt-get","apt-search","dpkg","dpkg-search" +"101-500","4","Which of the following options must be passed to a filesystem’s entry in /etc/fstab in order to mount the file system without root privileges?","auto","norestrict","noauto","user","" +"101-500","2","Which of the following commands will print important system information such as the kernel version and machine hardware architecture?","sysinfo","uname","lspci","arch","info" +"101-500","1","Which of the following commands will change the quota for a specific user?","edquota","repquota","quota -e","quota","" +"101-500","4","How can the list of files that would be installed by the RPM package file apache-xml.rpm be previewed?","rpm –qp apache-xml.rpm","rpm –qv apache-xml.rpm","rpm –ql apache-xml.rpm","rpm –qpl apache-xml.rpm","" +"101-500","3","Which of the following commands will mount an already inserted CD-ROM in /dev/sr0 onto an existing directory /mnt/cdrom when issued with root privileges?","mount /dev/cdrom /mnt/cdrom","mount /dev/sr0 /mnt/cdrom","mount –t cdrom /dev/sr0 /mnt/cdrom","mount –l cdrom /dev/sr0 /mnt/cdrom","mount –f /dev/sr0/mnt/cdrom" +"101-500","4","Which of the following shell commands makes the already defined variable TEST visible to new child processes? (Choose two.)","visible TEST","declare +x TEST","declare –x TEST","export TEST","export –v TEST" +"101-500","3","Which of the following pieces of information of an existing file is changed when a hard link pointing to that file is created?","File size","Modify timestamp","Link count","Inode number","Permissions" +"101-500","4","Which signal is sent by the kill command by default?","SIGHUP(1)","SIGQUIT(3)","SIGKILL(9)","SIGTERM(15)","" +"101-500","1","Which of the following commands can be used to create a new file that is 100kB in size?","dd","file","mkfile","touch","" +"101-500","4","Which chown command will change the ownership to dave and the group to staff on a file named data.txt?","chown dave/staff data.txt","chown –u dave –g staff data.txt","chown --user dave --group staff data.txt","chown dave:staff data.txt","" +"101-500","3","Which of the following commands shows the definition of a given shell command?","where","stat","type","case","" +"101-500","2","After running the command umount /mnt, the following error message is displayed: umount: /mnt: device is busy. +What is a common reason for this message?","The kernel has not finished flushing disk writes to themounted device.","A user has a file open in the /mnt directory.","Another file system still contains a symlink to a file inside /mnt.","The files in /mnt have been scanned and added to the locate database.","The kernel thinks that a process is about toopen a file in /mnt for reading." +"101-500","3","Which of the following commands can be used to search for the executable file foo when it has been placed in a directory not included in $PATH?","apropos","which","find","query","whereis" +"101-500","3","Which of the following commands changes the number of days before the ext3 filesystem on /dev/sda1 has to run through a full filesystem check while booting?","tune2fs -d 200 /dev/sda1","tune2fs -c 200 /dev/sda1","tune2fs -i 200 /dev/sda1","tune2fs -n 200 /dev/sda1","tune2fs --days 200 /dev/sda1" +"101-500","3","Which of the following file permissions belong to a symbolic link?","-rwxrwxrwx","+rwxrwxrwx","lrwxrwxrwx","srwxrwxrwx","" +"101-500","4 5","Which of the following properties of a Linux system should be changed when a virtual machine is cloned? (Choose two.)","The partitioning scheme","The file system","The D-Bus Machine ID","The permissions of /root/","The SSH host keys" +"101-500","1 5","When is the content of the kernel ring buffer reset? (Choose two.)","When the ring buffer is explicitly reset using the command dmesg --clear","When the ring buffer is read using dmesg without any additional parameters","When a configurable amount of time, 15 minutes by default, has passed","When the kernel loads a previously unloaded kernel module","When the system is shut down or rebooted" +"101-500","5","Which of the following apt-get subcommands installs the newest versions of all currently installed packages?","auto-update","dist-upgrade","full-upgrade","install","update" +"101-500","5","When redirecting the output of find to the xargs command, what option to find is useful if the filenames contain spaces?","–rep-space","-printnul","-nospace","–ignore-space"," –print0" +"101-500","1","What output will be displayed when the user fred executes the following command? echo ‘fred $USER’","fred fred","fred /home/fred/","‘fred $USER’","fred $USER","‘fred fred’" +"101-500","1 4","Which of the following statements are true about the boot sequence of a PC using a BIOS? (Choose two.)","Some parts of the boot process can be configured from the BIOS","Linux does not require the assistance of the BIOS to boot a computer","The BIOS boot process starts only if secondary storage, such as the hard disk, is functional","The BIOS initiates the boot process after turning the computer on","The BIOS is started by loading hardware drivers from secondary storage, such as the hard disk" +"101-500","5","Given a log file loga.log with timestamps of the format DD/MM/YYYY:hh:mm:ss, which command filters out all log entries in the time period between 8:00 am and +8:59 am?","grep –E ‘:08:[09]+:[09]+’ loga.log","grep –E ‘:08:[00]+’ loga.log","grep –E loga.log ‘:08:[0-9]+:[0-9]+’","grep loga.log ‘:08:[0-9]:[0-9]’","grep –E ‘:08:[0-9]+:[0-9]+’ loga.log" +"101-500","2 4","Which of the following files exist in a standard GRUB 2 installation? (Choose two.)","/boot/grub/stages/stage0","/boot/grub/i386-pc/1vm.mod","/boot/grub/fstab","/boot/grub/grub.cfg","/boot/grub/linux/vmlinuz" +"101-500","1","Which of the following commands changes all CR-LF line breaks in the text file userlist.txt to Linux standard LF line breaks and stores the result in newlist.txt?","tr –d ‘\r’ < userlist.txt > newlist.txt","tr –c ‘\n\r’ ‘’ userlist.txt","tr ‘\r\n’ ‘’ newlist.txt","tr ‘\r’ ‘\n’ userlist.txt newlist.txt","tr –s ‘/^M/^J/’ userlist.txt newlist.txt" +"101-500","1","What does the command mount --bind do?","It makes the contents of one directory available in another directory","It mounts all available filesystems to the current directory","It mounts all user mountable filesystems to the user’s home directory","It mounts all file systems listed in /etc/fstab which have the option userbind set","It permanently mounts a regular file to a directory" +"101-500","3","It permanently mounts a regular file to a directory","d2","2d","2dd","dd2","de12" +"101-500","","","","","","",""