LPIC 101-500v6 - Topic 4
![]() |
![]() |
![]() |
Title of test:![]() LPIC 101-500v6 - Topic 4 Description: LPIC 101-500v6 - Topic 4 |




New Comment |
---|
NO RECORDS |
(Exam Topic 4) Which umask value will result in the default access permissions of 600 (rw-------) for files and 700 (rwx------) for directories? (Specify only the numerical umask value. (Exam Topic 4) Following the Filesystem Hierarchy Standard (FHS), where should binaries that have been compiled by the system administrator be placed in order to be made available to all users on the system?. (Exam Topic 4) Which of the following commands will produce the following output? USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1255 4.4 0.9 60716 34824 tty7 Ss+ 09:25 19:04 /usr/bin/X :0 - root 2016 0.0 0.0 1792 560 tty1 Ss+ 09:26 0:00 /sbin/getty -8 matt 5204 0.0 0.1 6320 3696 pts/4 Ss 13:12 0:00 bash matt 5219 0.0 0.0 3988 1624 pts/4 S+ 13:12 0:00 man bash matt 5229 0.0 0.0 3584 932 pts/4 S+ 13:12 0:00 pager -s matt 6768 0.0 0.1 10504 3880 pts/2 S+ 15:11 0:00 vi README. jobs. proclist. netstat. ps. (Exam Topic 4) Which of the following commands is used to modify quota settings? (Choose two.). editquota. setquota. edquota. quotaedit. quotaset. (Exam Topic 4) Which of the following commands instructs SysVinit to reload its configuration file?. reinit. initreload. telinit 7. telinit q. init reinit. (Exam Topic 4) Which of the following commands will change all CR-LF pairs in an imported text file, userlist.txt, to Linux standard LF characters and store it as newlist.txt?. tr '\r\n' '' < userlist.txt > newlist.txt. tr -c '\n\r' '' < newlist.txt > userlist.txt. tr -d '\r' < userlist.txt > newlist.txt. tr '\r' '\n' userlist.txt newlist.txt. tr -s '^M' '^J' userlist.txt. (Exam Topic 4) Which of the following commands is used to change metadata and options for ext3 filesystems?. mod3fs. tune3fs. mod2fs. tune2fs. dump2fs. (Exam Topic 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 the current 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. (Exam Topic 4) In order to display all currently mounted filesystems, which of the following commands could be used? (Choose TWO correct answers.). cat /proc/self/mounts. free. mount. lsmounts. cat /proc/filesystems. (Exam Topic 4) Which command is used to create and initialize the files used to store quota information? (Specify ONLY the command without any path or parameters). (Exam Topic 4) After moving data to a new filesystem, how can the former path of the data be kept intact in order to avoid reconfiguration of existing applications? (Choose TWO correct answers.). By creating an ACL redirection from the old to the new path of the data. By creatinga hard link from the old to the new path of the data. By creating a symbolic link from the old to the new path of the data. By running the command touch on the old path. By mounting the new filesystem on the original path of the data. (Exam Topic 4) Which of the following statements describes a difference between GNU GRUB Legacy and GRUB 2?. GRUB 2 no longer requires a configuration file. Partition numbers start at 0 in GRUB Legacy and 1 in GRUB 2. grub-mkconfigonly works with GRUB Legacy if the--version 1option is used. The configuration filemenu.lst(andgrub.conf) have been replaced withgrub.config. (Exam Topic 4) Which of the following commands can be used to locate programs and their corresponding man pages and configuration files?. dirname. which. basename. query. whereis. (Exam Topic 4) Which of the following settings for umask ensures that new files have the default permissions -rw-r----- ?. 0017. 0640. 0038. 0027. (Exam Topic 4) After successfully creating a hard link called bar to the ordinary file foo, foo is deleted from the filesystem. Which of the following describes the resulting situation?. foo and bar would both be removed. foo would be removed while bar would remain accessible. foo would be removed. bar would still exist but would be unusable. Both foo and bar would remain accessible. The user is prompted whether bar should be removed, too. (Exam Topic 4) Which of the following commands will load a kernel module along with any required dependency modules?. depmod. insmod. modprobe. module_install. loadmod. (Exam Topic 4) What do the permissions -rwSr-xr-x mean for a binary file when it is executed as a command?. The command is SetUID and it will be executed with the effective rights of the owner. The command will be executed with the effective rights of the group instead of the owner. The execute flag is not set for the owner. Therefore the SetUID flag is ignored. The command will be executed with the effective rights of the owner and group. (Exam Topic 4) 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. (Exam Topic 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. (Exam Topic 4) Which of the following commands enables the setuid (suid) permission on the executable /bin/foo?. chmod 1755 /bin/foo. chmod 4755 /bin/foo. chmod u-s /bin/foo. chmod 755+s /bin/foo. (Exam Topic 4) Which of the following statements is correct for a command line ending with a & character?. The command's output is redirected to/dev/null. The result of the command defines if the next command will be run. The command is run in background of the current shell. The command is run as a direct child of theinitprocess. (Exam Topic 4) Which of the following commands set the sticky bit for the directory /tmp? (Choose TWO correct answers.). chmod +s /tmp. chmod +t /tmp. chmod 1775 /tmp. chmod 4775 /tmp. chmod 2775 /tmp. (Exam Topic 4) Which of the following commands prints a list of available package updates when using RPM-based package management?. dpkg list. yum list. dpkg check-update. yum check-update. yum list-update. (Exam Topic 4) Which utility would be used to change how often a filesystem check is performed on an ext2 filesystem without losing any data stored on that filesystem?. mod2fs. fsck. tune2fs. mke2fs. fixe2fs. (Exam Topic 4) Which of the following Linux filesystems preallocates a fixed number of inodes at the filesystem's make/creation time and does NOT generate them as needed? (Choose TWO correct answers.). ext3. JFS. ext2. XFS. procfs. (Exam Topic 4) Which command is used to query information about the available packages on a Debian system?. apt-cache. apt-get. apt-search. dpkg. dpkg-search. (Exam Topic 4) Which of the following commands changes the ownership of file.txt to the user dan and the group staff?. chown dan/staff file.txt. chown dan:staff file.txt. chown -u dan -g staff file.txt. chown dan -g staff file.txt. (Exam Topic 4) Which command creates a swap space on a block device or a file? (Specify ONLY the command without any). (Exam Topic 4) Which type of filesystem is created by mkfs when it is executed with the block device name only and without any additional parameters?. ext2. ext3. ext4. XFS. VFAT. (Exam Topic 4) Which of the following is a limitation of the cut command?. The cut command can only select output by field position. The cut command cannot reorder fields. The cut command only works on ASCIItext. The cut command cannot use different input and output delimiter. (Exam Topic 4) Which of the following commands changes all occurrences of the word "bob" in file data to "Bob" and prints the result to standard output?. sed'/bob/Bob' data. sed's/bob/Bob/g' data. sed's/bob/Bob/' data. sed'/bob/Bob/' data. sed's/bob,Bob/' data. (Exam Topic 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. (Exam Topic 4) Which SysV init configuration file is commonly used to set the default run level? (Specify the full name of the file, including path.). (Exam Topic 4) Which of the following commands converts spaces in a file to tab characters and prints the result to standard output?. iconv. expand. unexpand. tab. (Exam Topic 4) Which of the following commands will print important system information such as the kernel version and machine hardware architecture?. sysinfo. uname. lspci. arch. info. (Exam Topic 4) How many fields are in a syntactically correct line of /etc/fstab?. 3. 4. 5. 6. 7. (Exam Topic 4) Which of the following commands will change the quota for a specific user?. edquota. repquota. quota -e. quota. (Exam Topic 4) Creating a hard link to an ordinary file returns an error. What could be the reason for this?. The source file is hidden. The source file is read-only. The source file is a shell script. The source file is already a hard link. The source and the target are on different filesystems. (Exam Topic 4) Which of the following commands makes /bin/foo executable by everyone but writable only by its owner?. chmod u=rwx,go=rx /bin/foo. chmod o+rwx,a+rx /bin/foo. chmod 577 /bin/foo. chmod 775 /bin/foo. (Exam Topic 4) Where does the BIOS search for a bootloader?. On all connected storage media regardless of the boot device order. On all connected storage media in the defined boot device order. Only on hard disk drives in the defined boot device order. Only on the last added storage media. The BIOS is not responsible to search for a valid bootloader. (Exam Topic 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. (Exam Topic 4) When using regular expressions, which of the following characters match the beginning of a line?. ^. ?. *. +. $. (Exam Topic 4) 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. (Exam Topic 4) What is the process ID number of the init process on a SysV init based system?. -1. 0. 1. It is different with each reboot. It is set to the current run level. (Exam Topic 4) Which permissions and ownership should the file /etc/passwd have?. -rw-------1 rootroot531 Jun 5 22:45 /etc/passwd. -rw-r--r--1 rootroot531 Jun 5 22:45 /etc/passwd. rw-r--r--1 11531 Jun 5 22:45 /etc/passwd. -rw-------1 11531 Jun 5 22:45 /etc/passwd. (Exam Topic 4) Which of the following examples for Bash file globbing matches a file named root-can-do-this.txt when used in the directory holding that file? (Choose three correct answers.). root*can?do-this.{txt,odt}. r[oOoO]t-can-do*.txt. {root,user,admin}-can-??-this.txt. root*can*do??this.txt. root***{can,may}-do-this.[tT][xX][tT]. (Exam Topic 4) When planning a partition scheme, which of the following directories could be considered for separate partitions? (Choose three.). /etc. /home. /var. /lib. /opt. (Exam Topic 4) Which of the following describes the correct order in which the components of the system boot process are started?. BIOS, kernel, bootloader, init system. BIOS, bootloader,kernel, init system. Bootloader, BIOS, kernel, init system. BIOS, bootloader, init system, kernel. Bootloader, BIOS, init system, kernel. (Exam Topic 4) What is the purpose of the xargs command?. It passes arguments to an X server. It reads standard input (STDIN) and builds up command lines to execute. It helps shellscripts take variable argument lists. It asks a question, graphically, and returns the answer to the shell. It allows users to specify long options for commands that normally only accept short options. (Exam Topic 4) Which of the following partition types is used for Linux swap spaces when partitioning hard disk drives?. 82. 83. 8e. fd. 7. (Exam Topic 4) Which command is used to start another command with a given nice level? (Specify ONLY the command without any path or parameters). (Exam Topic 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. (Exam Topic 4) What does the command grub-install /dev/sda do?. GRUB creates partitions on the device/dev/sdato be used with Linux. GRUB sets the default BIOS boot device to/dev/sda. GRUB installs all required files and configures the boot loader on device/dev/sda. GRUB recompiles the Linux Kernel and installs it on the Master Boot Record of device/dev/sda. (Exam Topic 4) The system configuration file named _____ is commonly used to set the default runlevel. (Please provide the file name with full path information). (Exam Topic 4) Instead of supplying an explicit device in /etc/fstab for mounting, what other options may be used to identify the intended partition? (Choose TWO correct answers.). FIND. ID. LABEL. NAME. UUID. (Exam Topic 4) 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. (Exam Topic 4) In compliance with the FHS, in which of the following directories are documentation files found?. /usr/share/documentation. /usr/local/share/documentation. /var/share/doc. /usr/share/doc. /etc/share/doc. (Exam Topic 4) Which signal is sent by the kill command by default?. SIGHUP(1). SIGQUIT(3). SIGKILL(9). SIGTERM(15). (Exam Topic 4) Which program updates the database that is used by the locate command?. (Exam Topic 4) Which of the following commands can be used to create a new file that is 100kB in size?. dd. file. mkfil. touch. (Exam Topic 4) How is a symbolic link called bar.conf pointing to foo.conf created?. ln -s foo.conf bar.conf. ln foo.conf bar.conf. ln -s bar.conf foo.conf. ln bar.conffoo.conf. (Exam Topic 4) When piping the output of find to the xargs command, what option to find is useful if the filenames have spaces in them?. -rep-space. -print0. -nospace. -ignore-space. (Exam Topic 4) Which of the following is true for hard linked files? (Choose three.). The output of stat will report hard instead of regular file. The hard linked files have the same permissions and owner. The hard linked files share the same inode. The hard linked files are indicated by a -> when listed withls -1. The hard linked files must be on the same filesystem. (Exam Topic 4) What does the command mount -a do?. It ensures that all file systems listed with the option noauto in /etc/fstab are mounted. It shows all mounted file systems that have been automatically mounted. It opens an editor with root privileges and loads /etc/fstab for editing. It ensures that all file systems listed with the option auto in /etc/fstab are mounted. It ensures that all file systems listed in /etc/fstab are mounted regardless of their options. (Exam Topic 4) Which of the following are filesystems which can be used on Linux root partitions? (Choose two.). NTFS. ext3. XFS. VFAT. swap. (Exam Topic 4) Which of the following command lines creates or, in case it already exists, overwrites a file called data with the output of ls?. ls 3> data. ls >& data. ls > data. ls >> data. (Exam Topic 4) Which of the following commands print the current working directory when using a Bash shell? (Choose two.). echo "${PWD}". echo "${WD}". pwd. printwd. echo "${pwd}". (Exam Topic 4) Pressing the Ctrl-C combination on the keyboard while a command is executing in the foreground sends which of the following signal codes?. 1(SIGHUP). 2(SIGINT). 3(SIGQUIT). 9(SIGKILL). 15(SIGTERM). (Exam Topic 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.txt. (Exam Topic 4) Which of the following commands can be used to display the inode number of a given file?. inode. ls. ln. cp. (Exam Topic 4) Which of the following commands shows the definition of a given shell command?. where. stat. type. case. (Exam Topic 4) Which of the following apt-get commands will install the newest versions of all currently installed packages?. auto-update. full-upgrade. dist-upgrade. install. update. (Exam Topic 4) Which of the following are modes of the vi editor? (Choose two.). edit mode. insert mode. change mode. review mode. command mode. (Exam Topic 4) Which file in /proc describes the IRQs that are used by various kernel drivers? (Specify the file name only without any path.). (Exam Topic 4) 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. (Exam Topic 4) In the vi editor, what vi command will copy (but not paste) from the current line at the cursor and the following 16 lines (17 lines total)? Specify the correct vi command without spaces. (Exam Topic 4) Which file from the /proc file system contains a list of all currently mounted devices? (Specify ONLY the command without any path or parameters.). (Exam Topic 4) What command changes the nice level of a running process? (Specify ONLY the command without any path or parameters). (Exam Topic 4) Which command shows all shared libraries required by a binary executable or another shared library? (Specify ONLY the command without any path or parameters.). (Exam Topic 4) Which command will uninstall a package but leave its configuration files in case the package is re-installed?. dpkg -s pkgname. dpkg -L pkgname. dpkg -P pkgname. dpkg -r pkgname. (Exam Topic 4) Which option to the tee command will cause the output to be concatenated on the end of the output file instead of overwriting the existing file contents?. -a. -c. --no-clobber. --continue. (Exam Topic 4) Which of the following commands are common Linux commands for file management? (Choose three correct answers.). copy. mv. move. cp. mkdir. (Exam Topic 4) Which of the following commands creates an ext3 filesystem on /dev/sdb1? (Choose TWO correct answers.). /sbin/mke2fs -j /dev/sdb1. /sbin/mkfs -t ext3 /dev/sdb1. /sbin/mkfs -c ext3 /dev/sdb1. /sbin/mke3fs -j /dev/sdb1. (Exam Topic 4) 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. (Exam Topic 4) 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. (Exam Topic 4) Which of the following commands will display the inode usage of each mounted filesystem?. du -i. df -i. lsfs -i. printfs -i. (Exam Topic 4) Which of the following commands updates the already installed RPM package rpmname?. rpm --update rpmname. rpm -U rpmname. rpm -q rpmname. rpm --force rpmname. rpm -u rpmname. (Exam Topic 4) Which of the following file permissions belong to a symbolic link?. -rwxrwxrwx. +rwxrwxrwx. lrwxrwxrwx. srwxrwxrwx. (Exam Topic 4) Which of the following is the device file name for the second partition on the only SCSI drive?. /dev/hda1. /dev/sda2. /dev/sd0a2. /dev/sd1p2. (Exam Topic 4) Which SysV init configuration file is commonly used to set the default run level? (Specify the full name of the file, including path.). |