Last Updated on April 2, 2018 by Admin
Introduction to Linux I Final Comprehensive Exam (Modules 1 – 27)
- Question ID 369
The _____ command displays information about the Linux kernel:- kern
- uname
- real
- linux
- Question ID 376
A command can be:
(choose three)- A program built-in to the shell
- A variable
- A block
- A configuration file
- An alias
- A function
- Question ID 377
Which of the following are valid command lines?
(choose two)- ls -l /etc
- ls -/etc
- -l ls /etc
- ls /etc -l
- Question ID 390
The [ ] characters around day in the example cal [-smjy13] [[[day] month] year] means that day is:- An option, not an argument
- Required
- An argument that must be “day” and nothing else
- Optional
- Question ID 391
The syntax [-u|–utc|–universal] means:- These are required options
- These three options are different
- These three options mean the same thing
- This is invalid syntax
- Question ID 396
If you want to delete a variable, you can run:- delete
- unset
- clear
- wipe
- Question ID 404
Local variables are:- Only available to the shell they are created in
- Passed into other shells and commands
- Are not a valid type of variable
- Not used by shells at all
- Question ID 417
Which of the following is a valid way to add the /data directory to the existing PATH variable?- PATH=$PATH:/data
- PATH=/data
- $PATH=/data
- $PATH=$PATH:/data
- Question ID 432
To view all processes on the system, you can execute:- ps -f
- ps –all
- ps -e
- ps
- Question ID 433
In order to run a command called “tough” in the background, you would type:- tough@
- bg tough
- tough&
- start -b tough
- Question ID 437
To send a signal to a set of processes with the same name, you can run:- killall
- grpkill
- allkill
- sigkill
- Question ID 456
Which of the following is not used for globbing?- #
- *
- ?
- [
- Question ID 462
The command echo ???a will display:- Only a file named ???a
- All of the files in the current directory that have four characters in the file name with the last character being an “a” character.
- All of the files in the current directory that have four characters in the file name.
- All of the files in the current directory that end with an “a” character.
- Question ID 463
Which of the following characters can be used to negate (indicate NOT matching the following characters), when placed as the first of a set of characters enclosed in square brackets [] ?
(choose two)- ^
- ~
- ?
- !
- Question ID 470
Which command performs globbing?- The display command
- The bash command
- The ls command
- The echo command
- Question ID 489
Which option(s) for the rm command can be used to delete directories that contain files?
(choose two)- -R
- -D
- -r
- -A
- Question ID 497
Which character at the beginning of a long listing indicates a symbolic link?- d
- l
- c
- –
- Question ID 498
The names of hidden files begin with the ___ character.- >
- +
- .
- *
- Question ID 499
Which option to the ls command will sort the output by size instead of alphabetically?- -s
- -S
- -r
- -t
- Question ID 513
gzip and bzip are aliases for the same utility.
True or False?- True
- False
- Question ID 515
Which option to the bzip2 command can be used to report the compression ratio of an archive?- -R
- -v
- -l
- -c
- Question ID 516
Which option to the bzip2 command can be used for recursive compression?- bzip2 doesn’t support recursive compression
- -R
- -c
- -v
- Question ID 530
The dd command can be used to create large files the can be used as swap files.
True or False?- True
- False
- Question ID 531
The dd command can be used to copy entire partitions.
True or False?- True
- False
- Question ID 545
This stream is the output of a command operating normally:- stdout
- stdnorm
- stderr
- stdin
- Question ID 549
Two or more commands combined with the “|” between them form a:- convoy
- pipeline
- command line
- caravan
- Question ID 551
If you want to append a file with the normal output of a command, you can use:- 2>>
- >>
- >
- 1>
- Question ID 552
To send the normal and error output of a command to a single file, you can use:- &>
- 1>
- 2>
- >
- Question ID 558
Which command will merge two files together line by line?- join
- merge
- paste
- combo
- Question ID 559
Which of the following is a non-interactive editor?- ed
- sed
- vi
- nano
- Question ID 566
If you want a file to be displayed with its lines numbered, you can use:- fmt
- cut
- nl
- number
- Question ID 567
To put the lines of a file in alphabetical order, you can run:- paste
- sort
- cat
- uniq
- Question ID 568
The _____ command provides many options for formatting a file for printing.- format
- header
- pr
- Question ID 569
Which regular expression character matches any one character?- +
- .
- ?
- *
- Question ID 570
Which regular expression character matches zero or more of the previous character?- *
- +
- .
- ?
- Question ID 572
Which of the following regular expression characters is an extended regular expression character?- .
- *
- $
- +
- Question ID 574
The regular expression a? is equivalent to:- a{0,}
- a{0,1}
- a{1,}
- a{1}
- Question ID 578
To use regular expression characters to match themselves, you cannot:- Put the character in the square brackets
- Use the backslash in front of the character
- Use the slash in front of the character
- Use the fgrep command
- Question ID 587
To navigate to the end of the line in vi command mode, you can press:- ^
- #
- *
- $
- Question ID 588
To move backward through a vi document, word by word, you press:- r
- w
- b
- c
- Question ID 592
To save and then quit, you can type in command mode:- :q
- :wq
- :WQ
- :qw
- Question ID 600
If you want to move a character to the left in vi command mode, you can press the left arrow key or:- j
- h
- k
- l
- Question ID 602
If you want to move up a line in vi command mode, you can press the up arrow key or:- k
- l
- h
- j
- Question ID 606
If a file has permissions that appear as rwxr-x—, what is the octal permission mode of the file?- 750
- 740
- 650
- 760
- Question ID 608
The only user with the capability to change the owner of a file is root.
True or False?- True
- False
- Question ID 617
Assuming everyone has access to the directory the file is in, who can view the contents of a file with permissions of rw-r—-x?- Only the group owners
- Both the user owner and group owners
- Only the user owner
- Everyone
- Nobody
- Question ID 619
To switch to another group, you must:- Log off and log back in
- Log in as the staff user
- Be logged in graphically
- Be a member of the group that you are switching to
- Question ID 630
The command, chmod 0777 /data will:- Make the /data directory a setuid directory
- Make the /data directory a sticky bit directory
- Remove all special permissions
- Make the /data directory a setgid directory
- Question ID 634
Which of the following are mount options used for disk quotes?
(choose two)- userquota
- usrquota
- grpquota
- groupquota
- Question ID 637
Which command produces a list of users of groups and their quota statistics?- quotarpt
- repquota
- warnquota
- quota
- Question ID 654
Which command will remount the /data filesystem using the option from the /etc/fstab file?- mount -o mount /data
- mount -o remount /dev/sda1 /data
- mount -o remount /data
- Question ID 663
If a user has exceeded the block soft quota and the grace period has expired, what happens?- The soft limit becomes a hard limit until the user goes below the soft limit again
- The user will lose data, as files will be deleted automatically by the kernel.
- The question is invalid because users cannot exceed block soft quota limits
- Nothing, the user can still continue to use files as normal
- Question ID 665
Which directories are typically writable to all users?
(choose two)- /tmp
- /home
- /var/tmp
- /
- Question ID 671
To activate a swap space that has been initialized, you can execute:- swapoff
- swapon
- swapcontrol
- swapctl
- Question ID 683
Which of the following commands will allow you to backup a partition table to a file and restore it at a later time?- ddisk
- edisk
- sfdisk
- pdisk
- Question ID 688
Which of the following commands will allow you to add a physical volume to an existing volume group?- vgcreate
- vgextend
- vgreduce
- vgadd
- Question ID 697
If the command you used to unmount a partition fails, which commands can you use to check what is keeping the partition busy?
(choose two)- lsof
- chkdsk
- partchk
- fuser
- Question ID 698
What commands can display a list of mounted file systems?
(choose two)- lspt
- mount
- df
- fdisk
- Question ID 699
The first 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 filesystem type
- The device to mount
- The mount point
- The fsck order
- The mount options
- The dump level
- Question ID 710
Which of the following will mount an ISO file named cdrom.iso?- mount -t cdrom cdrom.iso /mntb
- mount -t ufs cdrom.iso /mnt
- mount -o loopback cdrom.iso /mnt
- mount -o loop cdrom.iso /mnt
- Question ID 729
Which option to the du command shows a summary of the space used in a directory structure?- -s
- -h
- -x
- -all
- Question ID 730
What determines how many files can be stored in a filesystem?- The number of bytes
- The Superblock size
- The number of inodes
- The number of data blocks
- Question ID 732
Which of the following commands will display information about the Superblock?
(choose two)- tune2fs
- init 0
- superblk -a
- dumpe2fs
- Question ID 743
The fsck utility uses which file to determine a filesystem type?- /etc/system
- /etc/fsck
- /etc/fstab
- /etc/fsck.config
- Question ID 746
Which command will allow you to determine where the backup superblock is for a filesystem?- dumpe2fs
- e2fsck
- fsck
- superblk
- Question ID 755
The output of the ls -l command includes “/etc/grub.conf -> ../boot/grub/grub.conf”. Based on this information, which is the soft link file?- ../boot/grub/grub.conf
- /etc/grub.conf
- Neither
- Both
- Question ID 766
If you have 5 hard linked files and you delete four of them including the original one, then:- You lose the data from the file
- The file still exists, but the data in the file is deleted
- The hard link count goes to 0
- The data is still available from the remaining file
- Question ID 781
What directory is used as a temporary mount point?- /mnt
- /tmpmnt
- /etc
- /xbin
- Question ID 792
Which command needs to be executed after modifying the LILO configuration file?- reload
- redo
- modconfig
- lilo
- Question ID 796
In GRUB Legacy, which directive is not typically used after a title directive?
(choose one)- initrd
- boot
- kernel
- root
- Question ID 816
The third stage of the boot process is:- The kernel phase
- The init phase
- The firmware (BIOS/UEFI) stage
- The Bootloader (LILO/GRUB) stage
- Question ID 818
The bootloader (GRUB/LILO) loads which of the following components into memory?
(choose two)- The root filesystem
- The ramdisk
- The init process
- The kernel
- Question ID 825
Which runlevel number defines multi-user with no networking services?- 3
- 0
- 1
- 5
- 2
- 6
- 4
- Question ID 834
Which of the following commands can be used to reboot the system?
(choose two)- shutdown
- reboot
- halt
- 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 package.
- You must use the full filename when querying the installed RPM.
- To query the package file, you have to add the -p option.
- To query the installed RPM, you have to add the -i option.
- Question ID 837
If you use the -f option when performing an rpm query:- The command will output a list of the files in the packages.
- The command will display the full filename of the original package.
- The command output will wrap at half screen width.
- The command will show the package that owns a file.
- Question ID 839
If you you have a RPM package file named, figlet-1.1-0.3.i686.rpm, which rpm commands will install it?
(choose two)- rpm -F figlet-1.1-0.3.i686.rpm
- rpm -U figlet-1.1-0.3.i686.rpm
- rpm -i figlet-1.1-0.3.i686.rpm
- rpm -e figlet-1.1-0.3.i686.rpm
- Question ID 840
The rpm2cpio command can be used to:
(choose two)- Extract files from a “.rpm” file
- List the content of a “.rpm” file
- Build a binary “.rpm” file from a source “.src.rpm” file
- Create a new “.rpm” file
- Question ID 842
Which two directories are automatically searched for shared libraries?
(choose two)- /usr/lib
- /lib
- /library
- /usr/library
- Question ID 843
Which command will remove all files that belong to a Debian package?- apt-get uninstall
- apt-get purge
- apt-get remove
- apt-get erase
- Question ID 845
Which command will update the list of available packages for APT?- apt-get upgrade
- apt-get update
- apt-cache update
- apt-cache upgrade
- Question ID 851
How can you determine the Debian package that owns a file?- dpkg -S
- dpkg -f
- dpkg -o
- dpkg -i
- Question ID 856
Which command may be used to get a list of the installed Debian packages?- apt-get list
- dpkg -L
- apt-get show
- dpkg -l
- Question ID 860
Which two commands will show detailed information about a Debian package?
(choose two)- apt-cache show
- dpkg -s
- apt-cache info
- dpkg -i
- Question ID 862
Which command is used to display the shared libraries of a dynamically linked executable?- ldd
- ldlist
- ldconfig
- ld.so
- Question ID 864
Which command will check the integrity of an RPM file?- rpm -qKp
- rpm -qCp
- rpm -qcp
- rpm -qkp
- Question ID 870
Which two characters do you use to tell the command that you are finished providing options and that the remaining data on the command line is arguments?- **
- &&
- —
- ||
- Question ID 872
The _____ option to the uname command will display the kernel name.- -s
- -x
- -n
- -k
- Question ID 876
Special file man pages are typically located in section ____.- 4
- 2
- 3
- 1
- Question ID 877
System Administration man pages are typically located in section ___.- 8
- 6
- 7
- 9
- Question ID 878
Shell command man pages are typically located in section ___.- 4
- 1
- 3
- 2
- Question ID 879
An absolute path always starts with which character?- ~
- /
- .
- Question ID 884
Which file can you place in your home directory to be executed when you log off the system?- ~/.bashrc
- /etc/bashrc
- ~/.bash_profile
- ~/.bash_logout
- Question ID 886
The _____ command will list the commands that are running in your terminal.- ls
- ps
- proc
- list
- Question ID 890
To set a priority value lower than 0, you must log in as which user?- The root user
- Any user account
- No user can specify a priority lower than 0
- The adm user
- Question ID 894
Which glob character matches “exactly one character”?- [
- *
- ?
- .
- Question ID 898
By default, using the touch command on an existing file will update the file’s _____.- Type
- Permissions
- Timestamp
- Ownership
- Question ID 907
Which option to the find command will execute a command on each matching file without prompting the user?- -ok
- -ls
- -exec
- Question ID 909
Which option to the find command will search by name using a case-insensitive match?- -inum
- -insen
- -iname
- -i
- Question ID 910
Which of the following commands will take the standard output of the ls and put it into the /tmp/output.txt file:- ls | /tmp/output.txt
- ls 2 | /tmp/output
- ls 2> /tmp/output.txt
- ls > /tmp/output.txt
- Question ID 914
The ____ option can be used with the edquota command to copy the quota limits from one user account to another.- -u
- -c
- -p
- -d
- Question ID 922
A system that contains Linux as well as a Microsoft Windows operating system is called a:- Multi environment system
- This sort of system cannot exist
- Dual boot system
- A file base system
- Question ID 923
In what directory are you most likely to find user’s home directories?- /home
- /usr/third
- /var/lib
- /usr/local
- Question ID 924
Virtual memory is also referred to as:- Swap memory
- Test memory
- Hard memory
- Soft memory
- Question ID 925
Which directory structure has directories which may have heavy activity for services like mail, ftp, httpd and printing?- /var
- /rootfs
- /root
- /home
- Question ID 933
After running fdisk -cu /dev/sdb, what fdisk command will allow you to save changes and quit?- q
- w
- f
- g
- Question ID 934
Which command is used to create a logical volume?- lvadd
- createlv
- create
- lvcreate
- Question ID 956
Which option to the tune2fs command will change the space reserved for system use?- -M
- -r
- -R
- -m
- Question ID 960
Which option to the du command will allow you to specify a subdirectory to not include in the results?- –exclude
- –noinclude
- -e
- -x
- Question ID 968
Which option to the fsck command forces a system check?- -f
- -FF
- -F
- -ff
- Question ID 969
Which option to the fsck command will allow you to specify the filesystem type?- -T
- -f
- -F
- -t
- Question ID 970
Which option to the e2fsck command allows you to specify an alternative superblock?- -a
- -d
- -b
- -c
- Question ID 973
Which type of link can be made to a file on another filesystem, hard or soft?- hard
- soft
- Question ID 974
Which type of link can be made to directories, hard or soft?- hard
- soft
- Question ID 978
When viewing a file with the ls -l command, which character represents a file type of soft link?- –
- l
- d
- f
- Question ID 981
Which directory is used to store the kernel?- /kernel
- /
- /etc
- /boot
- Question ID 982
Which directory is used to store temporary files?- /etc
- /temp
- /
- /tmp
- Question ID 987
What is the full path to the LILO configuration file?- /boot/lilo.conf
- /etc/lilo.conf
- /var/lilo
- /etc/lilo
- Question ID 988
To use an encrypted password in the GRUB Legacy configuration file, use the _____ option to the password directive.- –crypt
- –secure
- –encrypt
- –md5
- Question ID 990
The primary configuration file for the GRUB 2 on a Fedora system is _____.- /boot/grub/grub.cfg
- /boot/grub2/grub.cfg
- /boot/grub2.cfg
- /boot/grub/grub2.cfg
- Question ID 1004
The first process that the kernel launches is called the _____ process.- init
- startx
- kernel
- sys
- Question ID 1005
The program that first starts the boot process is called the _____.- boot
- bootloader
- start
- exec
- Question ID 1012
Which of the following are benefits of a shared library:
(choose two)- Programs can be smaller
- Programs run faster
- Programs use a more consistent base of code
- Programs run slower
- Question ID 1014
Which of the following contents is in the ldconfig configuration file by default?- include /etc/ldconfig
- include ldconfig
- include all
- include ld.so.conf.d/*.conf
- Question ID 1015
Which of the following commands would display the libraries used by the /bin/ls command?- ldd /bin/ls
- ls -lib /bin/ls
- ldconfig /bin/ls
- listlib /bin/ls
- Question ID 1019
The same set of services are started or stopped at different runlevels.
True or False?- True
- False
- Question ID 1024
Which is the default runlevel for Debian based Linux systems?- 3
- 2
- 5
- 4
- Question ID 1028
Which of the following is not a Linux boot system?- bootup
- init
- upstart
- systemd
- Question ID 1029
Which file is overwritten at the end of each boot process with the messages that were generated while booting?- /var/log/dmesg
- /var/log/dmsg
- /var/msg/dmesg
- /var/tmp/dmesg
- Question ID 1035
Which command is used to view the summary of the RAM and swap space?- lsmem
- du
- iostat
- free
- Question ID 1038
Coldplug devices are devices that are connected when the power is off.
True or False?- True
- False
- Question ID 1042
Which of the following commands is used to view the network interface controller connected on the PCI bus?- lspci
- lsmod
- lsusb
- lsnet
- Question ID 1047
HALD is the abbreviation for:- Hardware Attribute Layer Daemon
- Hardware Availability Layer Daemon
- Hardware Abstraction Layer Driver
- Hardware Abstraction Layer Daemon
- Question ID 1048
What is the notification mechanism used to inform programs about a change in state of hardware devices?- HALD uses dbus to send notifications
- Programs query HALD directly
- DBUS forwards queries from programs to HALD
- DBUS sends notifications to HALD