Last Updated on February 9, 2016 by Admin
Introduction to Linux I Final Exam (Modules 15 – 27) Answer
- Question ID 639
Which command is used to create or update the quota database files?- quotactl
- quotadb
- quotacheck
- dbquota
- Question ID 641
By default, the edquota command will use which editor?- joe
- emacs
- gedit
- vi
- Question ID 657
The quotacheck command creates databases with which names?
(choose two)- group.quota
- aquota.group
- aquota.user
- user.quota
- Question ID 666
Which directory is the root file system mounted on?- /rootfs
- /root
- /home
- /
- Question ID 667
In which directory are you most likely to find software from third-party publishers?- /usr/local
- /var/lib
- /usr/third
- /opt
- Question ID 671
To activate a swap space that has been initialized, you can execute:- swapcontrol
- swapon
- swapoff
- swapctl
- Question ID 699
The first field in the /etc/fstab file is used to specify:- The filesystem type
- The mount point
- The mount options
- The dump level
- The device to mount
- The fsck order
- Question ID 703
The fifth field in the /etc/fstab file is used to specify:- The mount options
- The dump level
- The filesystem type
- The device to mount
- The mount point
- The fsck order
- Question ID 704
The sixth field in the /etc/fstab file is used to specify:- The mount point
- The device to mount
- The dump level
- The filesystem type
- The fsck order
- The mount options
- Question ID 718
Which mount option will remount a currently mounted filesystem?- mount -o reset
- mount -o reload
- mount -o mount
- mount -o remount
- Question ID 730
What determines how many files can be stored in a filesystem?- The number of inodes
- The Superblock size
- The number of data blocks
- The number of bytes
- Question ID 731
The number of inodes in a filesystem is:- Always the same for every filesystem
- Determined when the filesystem is created
- Determined by the filesystem type
- Something that can be changed at a later date
- Question ID 737
Which of the following is true about the fsck command?- It should only be executed on unmounted filesystems
- It can only be used to fix ext2 filesystems
- It can only be used to fix ext3 filesystems
- It should only be executed on mounted filesystems
- Question ID 757
Which of the following commands will create a soft link from the /tmp/test file to the /tmp/data file?- ln -s /tmp/data /tmp/test
- ln /tmp/test /tmp/data
- ln -s /tmp/test /tmp/data
- ln /tmp/data /tmp/test
- Question ID 758
Which of the following commands will create a hard link from the /tmp/test file to the /tmp/data file?- ln -s /tmp/test /tmp/data
- ln /tmp/test /tmp/data
- ln -s /tmp/data /tmp/test
- ln /tmp/data /tmp/test
- Question ID 772
Which value represents the inode number in the following output of the ls -li command: 87589 -rw-r–r–. 2 root root 83 Mar 4 22:45 myhosts- 83
- 2
- 22:45
- 87589
- Question ID 773
Which value represents the hard link count in the following output of the ls -li command: 87589 -rw-r–r–. 2 root root 83 Mar 4 22:45 myhosts- 83
- 2
- 22:45
- 87589
- Question ID 790
Which bootloader includes the Secure Boot feature?- BIOS
- UEFI
- LILO
- GRUB
- Question ID 800
In GRUB Legacy, the _____ directive indicates how long to wait before automatically booting the default operating system.- fallback=
- timeout=
- password=
- kernel
- Question ID 805
Which of the following commands can be used to create an encrypted password that can be used with the password directive in GRUB Legacy:- crypt-md5-grub
- grub-md5-crypt
- grub-crypt
- crypt-grub
- Question ID 814
The first stage of the boot process is:- The firmware (BIOS/UEFI) stage
- The init phase
- The kernel phase
- The Bootloader (LILO/GRUB) stage
- Question ID 817
The fourth stage of the boot process is:- The init phase
- The Bootloader (LILO/GRUB) stage
- The firmware (BIOS/UEFI) stage
- The kernel
- Question ID 818
The bootloader (GRUB/LILO) loads which of the following components into memory?
(choose two)- The root filesystem
- The kernel
- The init process
- The ramdisk
- Question ID 834
Which of the following commands can be used to reboot the system?
(choose two)- shutdown
- halt
- reboot
- shutdown -r
- Question ID 836
What two differences are there between querying an installed RPM and an RPM package file with the rpm command?
(choose two)- You must use the full filename when querying the installed RPM.
- To query the installed RPM, you have to add the -i option.
- You must use the full filename when querying the package.
- To query the package file, you have to add the -p option.
- Question ID 840
The rpm2cpio command can be used to:
(choose two)- Create a new “.rpm” file
- Extract files from a “.rpm” file
- List the content of a “.rpm” file
- Build a binary “.rpm” file from a source “.src.rpm” file
- Question ID 843
Which command will remove all files that belong to a Debian package?- apt-get purge
- apt-get remove
- apt-get uninstall
- apt-get erase
- Question ID 845
Which command will update the list of available packages for APT?- apt-cache update
- apt-get update
- apt-cache upgrade
- apt-get upgrade
- Question ID 856
Which command may be used to get a list of the installed Debian packages?- dpkg -l
- dpkg -L
- apt-get list
- apt-get show
- Question ID 857
Which command will show the dependencies of a Debian package?- apt-cache requires
- apt-get depends
- apt-cache depends
- apt-get requires
- Question ID 858
Which command will show the dependencies of an RPM package?- rpm -qpd
- yum provides
- yum requires
- rpm -qpR
- Question ID 860
Which two commands will show detailed information about a Debian package?
(choose two)- apt-cache info
- apt-cache show
- dpkg -s
- dpkg -i
- Question ID 861
Which command shows the scripts that may be part of a RPM package?- yum scripts
- yum info
- rpm -qs
- rpm -q –scripts
- Question ID 862
Which command is used to display the shared libraries of a dynamically linked executable?- ldd
- ld.so
- ldlist
- ldconfig
- Question ID 918
Which option to the df command displays the size of a filesystem in “human readable” format?- -h
- -human
- -g
- No option will provide this feature
- Question ID 921
You can display current filesystem space usage with the _____ command.- du
- ls
- dw
- df
- Question ID 922
A system that contains Linux as well as a Microsoft Windows operating system is called a:- This sort of system cannot exist
- Multi environment system
- A file base system
- Dual boot system
- Question ID 923
In what directory are you most likely to find user’s home directories?- /usr/local
- /home
- /var/lib
- /usr/third
- Question ID 925
Which directory structure has directories which may have heavy activity for services like mail, ftp, httpd and printing?- /home
- /rootfs
- /root
- /var
- Question ID 928
After running fdisk -cu /dev/sdb, what fdisk command will allow you to change a partition type?- d
- f
- t
- g
- Question ID 929
After running fdisk -cu /dev/sdb, what fdisk command will allow you to create a new partition?- c
- w
- n
- g
- Question ID 930
After running fdisk -cu /dev/sdb, what fdisk command will allow you to delete a partition?- r
- g
- d
- s
- Question ID 940
What option to the fdisk command is used to utilize sector unit sizes?- -t
- -s
- -usize
- -u
- Question ID 944
Which mount option mounts a filesystem allowing reading only?- readonly
- ronly
- ro
- rw
- Question ID 956
Which option to the tune2fs command will change the space reserved for system use?- -R
- -m
- -M
- -r
- Question ID 959
Which option to the dumpe2fs command will have the command display only superblock information?- -h
- -g
- -d
- -s
- Question ID 963
The _____ command will display how much space a filesystem has free?- du
- free
- df
- init
- Question ID 966
Which option to the fsck command will answer “yes” to all queries?- -y
- -n
- -N
- -Y
- Question ID 967
Which option to the fsck command will answer “no” to all queries?- -y
- -Y
- -n
- -N
- Question ID 969
Which option to the fsck command will allow you to specify the filesystem type?- -t
- -F
- -T
- -f
- Question ID 971
Missing files don’t have their original file names, instead they are named with their _____ number?- device
- inode
- UID
- GID
- Question ID 973
Which type of link can be made to a file on another filesystem, hard or soft?- soft
- hard
- Question ID 988
To use an encrypted password in the GRUB Legacy configuration file, use the _____ option to the password directive.- –md5
- –encrypt
- –secure
- –crypt
- Question ID 990
The primary configuration file for the GRUB 2 on a Fedora system is _____.- /boot/grub2/grub.cfg
- /boot/grub/grub2.cfg
- /boot/grub2.cfg
- /boot/grub/grub.cfg
- Question ID 998
Which runlevel number is defined as “user-definable”?- 6
- 5
- 3
- 1
- 2
- 0
- 4
- Question ID 1002
Which runlevel number defines halting the system?- 5
- 3
- 4
- 0
- 2
- 6
- 1
- Question ID 1004
The first process that the kernel launches is called the _____ process.- init
- kernel
- sys
- startx
- Question ID 1006
On a Ubuntu system, what variable defines the default runlevel in the /etc/init/rc-sysinit.conf file?- DEFAULT_RUNLEVEL
- DEFAULT
- RUNLEVEL
- RUN
- Question ID 1009
What are the correct options for the rpm command to display a list of all installed packages?- -qa
- -a
- -qall
- -b
- Question ID 1011
Which environment variable can a user set, that will affect where shared libraries can be located and loaded?- LIBRARY_PATH
- LIBRARY_LD_PATH
- LD_PATH
- LD_LIBRARY_PATH
- Question ID 1012
Which of the following are benefits of a shared library:
(choose two)- Programs run faster
- Programs can be smaller
- Programs run slower
- Programs use a more consistent base of code
- Question ID 1013
Which of the following will find and load shared libraries when a program is executed?- The scheduler
- The dynamic linker
- The kernel
- The init process
- Question ID 1014
Which of the following contents is in the ldconfig configuration file by default?- include all
- include /etc/ldconfig
- include ldconfig
- include ld.so.conf.d/*.conf
- Question ID 1022
Which command is used to view the services that are set to start or stop automatically?- config
- chkconfig
- lsconfig
- initconfig
- Question ID 1031
Which of the following is not a daemon used for logging?- klogd
- ilogd
- rsyslogd
- syslogd
- Question ID 1034
What is the maximum memory that a 64 bit processor can theoretically use?- 16 EiB
- 8 GiB
- 2 GiB
- 4 GiB
- Question ID 1036
Which of the following is not a characteristic of firmware?- Change runlevels
- Tests the components upon startup
- Typically stored in ROM
- Change settings to affect the use of external devices
- Question ID 1040
Which of the following resources are used by devices to communicate with the system?- IO Channels, IO Memory, Interrupts and DMA Ports
- IO Ports, IO Memory, Interrupts, and DMA Channels
- IO Ports, IO Memory, Signals and DMA Channels
- IO Ports, RAM, Interrupts and DMA Channels
- Question ID 1041
Interrupts cannot be shared between devices.
True or False?- True
- False
- Question ID 1044
Which option of the lspci command would you use to troubleshoot a network interface card?- -r
- -t
- -nn
- -a