ccpq/data/lpic1from_ad_101_500.csv

14 KiB
Raw Permalink Blame History

1LEVELANSWERQUESTION12345
2101-5003Which 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
3101-5003 4Which 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 nowshutdown -single nowinit 1telinit 1runlevel 1
4101-5005Which 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.targetsystemd.runlevel=rescue.targetsystemd.service=rescue.targetsystemd.default=rescue.targetsystemd.unit=rescue.target
5101-5002 4What 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.
6101-5003To 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_PATHLD_LIB_PATHLD_LIBRARY_PATHLD_SHARE_PATHLD_RUN_PATH
7101-5001 2 4When 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.)TimestampsMD5 checksumsInodesFile sizesGnuPG signatures
8101-5002Which of the following commands can be used to perform a full text search on all available packages on a Debian system?aptapt-cacheapt-getapt-searchdpkg
9101-5002Which of the following commands can be used to download the RPM package kernel without installing it?yum download --no-install kernelyumdownloader kernelrpm --download --package kernelrpmdownload kerne
10101-5004What 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.
11101-5004Which of the following commands will print the last 10 lines of a text file to the standard output?cat -n 10 filenamedump -n 10 filenamehead -n 10 filenametail -n 10 filename
12101-5002Which of the following commands displays the contents of a gzip compressed tar archive?gzip archive.tgz | tar xvf -tar ztf archive.tgzgzip -d archive.tgz | tar tvf -tar cf archive.tgz
13101-5004In the vi editor, which of the following commands will copy the current line into the vi buffer?ccc1cyy1y
14101-5002In 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
15101-5004What 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.
16101-5002Which 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.
17101-5004A user accidentally created the subdirectory \dir in his home directory. Which of the following commands will remove that directory?rmdir '~/\dir'rmdir ~/'dir'rmdir ~/\dirrmdir ~/\\dir
18101-5002Regarding 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.
19101-5004Which of the following commands instructs SysVinit to reload its configuration file?reinitinitreloadtelinit 7telinit qinit reinit
20101-5004What 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.
21101-5005Which of the following commands can be used to locate programs and their corresponding man pages and configuration files?dirnamewhichbasenamequerywhereis
22101-5004Which of the following settings for umask ensures that new files have the default permissions -rw-r----- ?0017064000380027
23101-5003In 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.
24101-5004What 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.
25101-5001Which command is used to query information about the available packages on a Debian system?apt-cacheapt-getapt-searchdpkgdpkg-search
26101-5004Which of the following options must be passed to a filesystems entry in /etc/fstab in order to mount the file system without root privileges?autonorestrictnoautouser
27101-5002Which of the following commands will print important system information such as the kernel version and machine hardware architecture?sysinfounamelspciarchinfo
28101-5001Which of the following commands will change the quota for a specific user?edquotarepquotaquota -equota
29101-5004How can the list of files that would be installed by the RPM package file apache-xml.rpm be previewed?rpm qp apache-xml.rpmrpm qv apache-xml.rpmrpm ql apache-xml.rpmrpm qpl apache-xml.rpm
30101-5003Which 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/cdrommount /dev/sr0 /mnt/cdrommount t cdrom /dev/sr0 /mnt/cdrommount l cdrom /dev/sr0 /mnt/cdrommount f /dev/sr0/mnt/cdrom
31101-5004Which of the following shell commands makes the already defined variable TEST visible to new child processes? (Choose two.)visible TESTdeclare +x TESTdeclare x TESTexport TESTexport v TEST
32101-5003Which of the following pieces of information of an existing file is changed when a hard link pointing to that file is created?File sizeModify timestampLink countInode numberPermissions
33101-5004Which signal is sent by the kill command by default?SIGHUP(1)SIGQUIT(3)SIGKILL(9)SIGTERM(15)
34101-5001Which of the following commands can be used to create a new file that is 100kB in size?ddfilemkfiletouch
35101-5004Which chown command will change the ownership to dave and the group to staff on a file named data.txt?chown dave/staff data.txtchown u dave g staff data.txtchown --user dave --group staff data.txtchown dave:staff data.txt
36101-5003Which of the following commands shows the definition of a given shell command?wherestattypecase
37101-5002After 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.
38101-5003Which 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?aproposwhichfindquerywhereis
39101-5003Which 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/sda1tune2fs -c 200 /dev/sda1tune2fs -i 200 /dev/sda1tune2fs -n 200 /dev/sda1tune2fs --days 200 /dev/sda1
40101-5003Which of the following file permissions belong to a symbolic link?-rwxrwxrwx+rwxrwxrwxlrwxrwxrwxsrwxrwxrwx
41101-5004 5Which of the following properties of a Linux system should be changed when a virtual machine is cloned? (Choose two.)The partitioning schemeThe file systemThe D-Bus Machine IDThe permissions of /root/The SSH host keys
42101-5001 5When is the content of the kernel ring buffer reset? (Choose two.)When the ring buffer is explicitly reset using the command dmesg --clearWhen the ring buffer is read using dmesg without any additional parametersWhen a configurable amount of time, 15 minutes by default, has passedWhen the kernel loads a previously unloaded kernel moduleWhen the system is shut down or rebooted
43101-5005Which of the following apt-get subcommands installs the newest versions of all currently installed packages?auto-updatedist-upgradefull-upgradeinstallupdate
44101-5005When redirecting the output of find to the xargs command, what option to find is useful if the filenames contain spaces?rep-space-printnul-nospaceignore-space print0
45101-5001What output will be displayed when the user fred executes the following command? echo fred $USERfred fredfred /home/fred/fred $USERfred $USERfred fred
46101-5001 4Which 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 BIOSLinux does not require the assistance of the BIOS to boot a computerThe BIOS boot process starts only if secondary storage, such as the hard disk, is functionalThe BIOS initiates the boot process after turning the computer onThe BIOS is started by loading hardware drivers from secondary storage, such as the hard disk
47101-5005Given 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.loggrep E :08:[00]+ loga.loggrep 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
48101-5002 4Which 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
49101-5001Which 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.txttr c \n\r <newlist.txt> userlist.txttr \r\n <userlist.txt> newlist.txttr \r \n userlist.txt newlist.txttr s /^M/^J/ userlist.txt newlist.txt
50101-5001What does the command mount --bind do?It makes the contents of one directory available in another directoryIt mounts all available filesystems to the current directoryIt mounts all user mountable filesystems to the users home directoryIt mounts all file systems listed in /etc/fstab which have the option userbind setIt permanently mounts a regular file to a directory
51101-5003It permanently mounts a regular file to a directoryd22d2dddd2de12
52101-500