Deck 3: LPI Level 1 Exam 101, Junior Level Linux Certification, Part 1 of 2

Full screen (f)
exit full mode
Question
Which of the following information is stored within the BIOS?

A) Boot device order
B) Linux kernel version
C) Timezone
D) Hardware configuration
E) The system's hostname
Use Space or
up arrow
down arrow
to flip the card.
Question
During a system boot cycle, what program is executed after the BIOS completes its tasks?

A) The bootloader
B) The inetd program
C) The init program
D) The kernel
Question
Which of the following are init systems used within Linux systems?

A) startd
B) systemd
C) Upstart
D) SysInit
E) SysV init
Question
Which of the following commands lists the dependencies of a given dpkg package?

A) apt-cache depends-on package
B) apt-cache dependencies package
C) apt-cache depends package
D) apt-cache requires package
Question
What is the first program that is usually started, at boot time, by the Linux kernel when using SysV init?

A) /lib/init.so
B) /sbin/init
C) /etc/rc.d/rcinit
D) /proc/sys/kernel/init
E) /boot/init
Question
Which of the following commands is used to update the list of available packages when using dpkg based package management?

A) apt-get update
B) apt-get upgrade
C) apt-cache update
D) apt-get refresh
E) apt-cache upgrade
Question
Which of the following options for the kernel's command line changes the systemd boot target to rescue.target instead of the default target?

A) systemd.target=rescue.target
B) systemd.runlevel=rescue.target
C) systemd.service=rescue.target
D) systemd.default=rescue.target
E) systemd.unit=rescue.target
Question
What of the following statements are true regarding /dev/ when using udev?

A) Entries for all possible devices get created on boot even if those devices are not connected.
B) Additional rules for udev can be created by adding them to /etc/udev/rules.d/.
C) When using udev, it is not possible to create block or character devices in /dev/ using mknod.
D) The /dev/ directory is a filesystem of type tmpfs and is mounted by udev during system startup.
E) The content of /dev/ is stored in /etc/udev/dev and is restored during system startup.
Question
What information can the lspci command display about the system hardware?

A) Device IRQ settings
B) PCI bus speed
C) System battery type
D) Device vendor identification
E) Ethernet MAC address
Question
SIMULATION Which file in the /proc filesystem lists parameters passed from the bootloader to the kernel? (Specify the file name only without any path.)
Question
Which of the following commands will write a message to the terminals of all logged in users?

A) bcast
B) mesg
C) print
D) wall
E) yell
Question
Which of the following kernel parameters instructs the kernel to suppress most boot messages?

A) silent
B) verbose=0
C) nomesg
D) quiet
Question
Which of the following commands reboots the system when using SysV init?

A) shutdown -r now
B) shutdown -r "rebooting"
C) telinit 6
D) telinit 0
E) shutdown -k now "rebooting"
Question
Which run levels should never be declared as the default run level when using SysV init?

A) 0
B) 1
C) 3
D) 5
E) 6
Question
Which of the following statements is correct when talking about /proc/?

A) All changes to files in /proc/ are stored in /etc/proc.d/ and restored on reboot.
B) All files within /proc/ are read-only and their contents cannot be changed.
C) All changes to files in /proc/ are immediately recognized by the kernel.
D) All files within /proc/ are only readable by the root user.
Question
SIMULATION Which command will display messages from the kernel that were output during the normal boot sequence?
Question
After modifying GNU GRUB's configuration file, which command must be run for the changes to take effect?

A) kill -HUP $(pidof grub)
B) grub-install
C) grub
D) No action is required
Question
Which SysV init configuration file should be modified to disable the ctrl-alt-delete key combination?

A) /etc/keys
B) /proc/keys
C) /etc/inittab
D) /proc/inittab
E) /etc/reboot
Question
Which of the following options is used in a GRUB Legacy configuration file to define the amount of time that the GRUB menu will be shown to the user?

A) hidemenu
B) splash
C) timeout
D) showmenu
Question
Which of the following commands brings a system running SysV init into a state in which it is safe to perform maintenance tasks?

A) shutdown -R 1 now
B) shutdown -single now
C) init 1
D) telinit 1
E) runlevel 1
Question
SIMULATION In which directory must definition files be placed to add additional repositories to yum?
Question
Which of the following commands updates the linker cache of shared libraries?

A) mkcache
B) soconfig
C) mkldconfig
D) lddconfig
E) ldconfig
Question
SIMULATION Which option to the yum command will update the entire system? (Specify ONLY the option name without any additional parameters.)
Question
When removing a package, which of the following dpkg options will completely remove the files including configuration files?

A) --clean
B) --delete
C) --purge
D) ­remove
Question
SIMULATION What is the name of the main configuration file for GNU GRUB? (Specify the file name only without any path.)
Question
Which of the following environment variables overrides or extends the list of directories holding shared libraries?

A) LD_LOAD_PATH
B) LD_LIB_PATH
C) LD_LIBRARY_PATH
D) LD_SHARE_PATH
E) LD_RUN_PATH
Question
Which of the following commands can be used to download the RPM package kernel without installing it?

A) yum download --no-install kernel
B) yumdownloader kernel
C) rpm --download --package kernel
D) rpmdownload kernel
Question
When using rpm --verify to check files created during the installation of RPM packages, which of the following information is taken into consideration?

A) Timestamps
B) MD5 checksums
C) Inodes
D) File sizes
E) GnuPG signatures
Question
SIMULATION Which Debian package management tool asks the configuration questions for a specific already installed package just as if the package were being installed for the first time? (Specify ONLY the command without any path or parameters.)
Question
What can the Logical Volume Manager (LVM) be used for?

A) To create RAID 9 arrays.
B) To dynamically change the size of logical volumes.
C) To encrypt logical volumes.
D) To create snapshots.
E) To dynamically create or delete logical volumes.
Question
Which RPM command will output the name of the package which supplied the file /etc/exports?

A) rpm -F /etc/exports
B) rpm -qf /etc/exports
C) rpm -Kl /etc/exports
D) rpm -qp /etc/exports
E) rpm -qi /etc/exports
Question
In Bash, inserting 1>&2 after a command redirects

A) standard error to standard input.
B) standard input to standard error.
C) standard output to standard error.
D) standard error to standard output.
E) standard output to standard input.
Question
Which of the following is correct when talking about mount points?

A) Every existing directory can be used as a mount point.
B) Only empty directories can be used as a mount point.
C) Directories need to have the SetUID flag set to be used as a mount point.
D) Files within a directory are deleted when the directory is used as a mount point.
Question
SIMULATION Which world-writable directory should be placed on a separate partition in order to prevent users from being able to fill up the / filesystem? (Specify the full path to the directory.)
Question
What command will generate a list of user names from /etc/passwd along with their login shell?

A) column -s : 1,7 /etc/passwd
B) chop -c 1,7 /etc/passwd
C) colrm 1,7 /etc/passwd
D) cut -d: -f1,7 /etc/passwd
Question
Which of the following commands can be used to create a USB storage media from a disk image?

A) gdisk
B) dd
C) cc
D) fdisk
E) mount
Question
SIMULATION Which command will disable swapping on a device? (Specify ONLY the command without any path or parameters.)
Question
Which of the following commands lists all currently installed packages when using RPM package management?

A) yum --query --all
B) yum --list --installed
C) rpm --query --all
D) rpm --list ­installed
Question
Which file should be edited to select the network locations from which Debian installation package files are loaded?

A) /etc/dpkg/dpkg.cfg
B) /etc/apt/apt.conf
C) /etc/apt/apt.conf.d
D) /etc/apt/sources.list
E) /etc/dpkg/dselect.cfg
Question
Which of the following commands overwrites the bootloader located on /dev/sda without overwriting the partition table or any data following it?

A) dd if=/dev/zero of=/dev/sda bs=512
B) dd if=/dev/zero of=/dev/sda bs=512 count=1
C) dd if=/dev/zero of=/dev/sda bs=440 count=1
D) dd if=/dev/zero of=/dev/sda bs=440
Question
What is the output of the following command? echo "Hello World" | tr -d aieou

A) Hello World
B) eoo
C) Hll Wrld
D) eoo Hll Wrld
Question
Which of the following commands will NOT update the modify timestamp on the file /tmp/myfile.txt?

A) file /tmp/myfile.txt
B) echo "Hello" >/tmp/myfile.txt
C) sed -ie "s/1/2/" /tmp/myfile.txt
D) echo -n "Hello" >>/tmp/myfile.txt
E) touch /tmp/myfile.txt
Question
What is the maximum niceness value that a regular user can assign to a process with the nice command when executing a new process?

A) 9
B) 19
C) 49
D) 99
Question
What is the default nice level when a process is started using the nice command?

A) -10
B) 10
C) 20
D) 0
Question
What is the difference between the i and a commands of the vi editor?

A) i (interactive) requires the user to explicitly switch between vi modes whereas a (automatic) switches modes automatically.
B) i (insert) inserts text before the current cursor position whereas a (append) inserts text after the cursor.
C) i (independent rows) starts every new line at the first character whereas a (aligned rows) keeps the indentation of the previous line.
D) i (interrupt) temporarily suspends editing of a file to the background whereas a (abort) terminates editing.
Question
In compliance with the FHS, in which of the directories are man pages found?

A) /usr/share/man
B) /opt/man
C) /usr/doc/
D) /var/pkg/man
E) /var/man
Question
What is the effect of the egrep command when the -v option is used?

A) It enables color to highlight matching parts.
B) It only outputs non-matching lines.
C) It shows the command's version information.
D) It changes the output order showing the last matching line first.
Question
Immediately after deleting 3 lines of text in vi and moving the cursor to a different line, which single character command will insert the deleted content below the current line?

A) i (lowercase)
B) P (uppercase)
C) p (lowercase)
D) U (uppercase)
E) u (lowercase)
Question
Which of the following commands kills the process with the PID 123 but allows the process to "clean up" before exiting?

A) kill -PIPE 123
B) kill -KILL 123
C) kill -STOP 123
D) kill -TERM 123
Question
Which of the following commands will send output from the program myapp to both standard output (stdout) and the file file1.log?

A) cat < myapp | cat > file1.log
B) myapp 0>&1 | cat > file1.log
C) myapp | cat > file1.log
D) myapp | tee file1.log
E) tee myapp file1.log
Question
Which of the following commands moves and resumes in the background the last stopped shell job?

A) run
B) bg
C) fg
D) back
Question
Which of the following characters can be combined with a separator string in order to read from the current input source until the separator string, which is on a separate line and without any trailing spaces, is reached?

A) <<
B) <|
C) !<
D) &<
Question
What does the ? symbol within regular expressions represent?

A) Match the preceding qualifier one or more times.
B) Match the preceding qualifier zero or more times.
C) Match the preceding qualifier zero or one times.
D) Match a literal ? character.
Question
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?

A) -dirmax
B) -maxdepth
C) -maxlevels
D) -n
E) -s
Question
A user accidentally created the subdirectory \dir in his home directory. Which of the following commands will remove that directory?

A) rmdir '~/\dir'
B) rmdir "~/\dir"
C) rmdir ~/'dir'
D) rmdir ~/\dir
E) rmdir ~/\\dir
Question
What is the default action of the split command on an input file?

A) It will break the file into new files of 1,024 byte pieces each.
B) It will break the file into new files of 1,000 line pieces each.
C) It will break the file into new files of 1,024 kilobyte pieces each.
D) It will break the file into new files that are no more than 5% of the size of the original file.
Question
What is the purpose of the Bash built-in export command?

A) It allows disks to be mounted remotely.
B) It runs a command as a process in a subshell.
C) It makes the command history available to subshells.
D) It sets up environment variables for applications.
E) It shares NFS partitions for use by other systems on the network.
Question
Which of the following statements is correct regarding the command foo 1> bar?

A) The stdout from the command foo is appended to the file bar.
B) The stdout from the command foo overwrites the file bar.
C) The command foo receives its stdin from the file bar.
D) The command foo receives its stdin from the stdout of the command bar.
E) The stderr from the command foo is saved to the file bar.
Question
SIMULATION Which command displays a list of all background tasks running in the current shell? (Specify ONLY the command without any path or parameters.)
Question
SIMULATION Which signal is missing from the following command that is commonly used to instruct a daemon to reinitialize itself, including reading configuration files? killall -s _______ daemon
Question
Which of the following commands will reduce all consecutive spaces down to a single space?

A) tr '\s' ' ' < a.txt > b.txt
B) tr -c ' ' < a.txt > b.txt
C) tr -d ' ' < a.txt > b.txt
D) tr -r ' ' '\n' < a.txt > b.txt
E) tr -s ' ' < a.txt > b.txt
Question
When starting a program with the nice command without any additional parameters, which nice level is set for the resulting process?

A) -10
B) 0
C) 10
D) 20
Question
Which of the following commands displays the contents of a gzip compressed tar archive?

A) gzip archive.tgz | tar xvf -
B) tar ztf archive.tgz
C) gzip -d archive.tgz | tar tvf -
D) tar cf archive.tgz
Question
Which of the following commands will print the last 10 lines of a text file to the standard output?

A) cat -n 10 filename
B) dump -n 10 filename
C) head -n 10 filename
D) tail -n 10 filename
Question
Which of the following commands is used to change options and positional parameters for a running Bash?

A) history
B) set
C) bashconf
D) setsh
E) envsetup
Question
What happens after issuing the command vi without any additional parameters?

A) vi starts and loads the last file used and moves the cursor to the position where vi was when it last exited.
B) vi starts and requires the user to explicitly either create a new or load an existing file.
C) vi exits with an error message as it cannot be invoked without a file name to operate on.
D) vi starts in command mode and opens a new empty file.
E) vi starts and opens a new file which is filled with the content of the vi buffer if the buffer contains text.
Question
Which grep command will print only the lines that do not end with a / in the file foo?

A) grep '/$' foo
B) grep '/#' foo
C) grep -v '/$' foo
D) grep -v '/#' foo
Question
Which character, added to the end of a command, runs that command in the background as a child process of the current shell?

A) !
B) +
C) &
D) %
E) #
Question
Which of the following commands prints a list of usernames (first column) and their primary group (fourth column) from the /etc/passwd file?

A) fmt -f 1,4 /etc/passwd
B) split -c 1,4 /etc/passwd
C) cut -d : -f 1,4 /etc/passwd
D) paste -f 1,4 /etc/passwd
Question
In the vi editor, how can commands such as moving the cursor or copying lines into the buffer be issued multiple times or applied to multiple rows?

A) By using the command :repeat followed by the number and the command.
B) By specifying the number right in front of a command such as 4l or 2yj.
C) By selecting all affected lines using the shift and cursor keys before applying the command.
D) By issuing a command such as :set repetition=4 which repeats every subsequent command 4 times.
Question
Which of the following sequences in the vi editor saves the opened document and exits the editor?

A) esc ZZ
B) ctrl :w!
C) esc zz
D) esc :wq!
E) ctrl XX
Question
Which of the following shell redirections will write standard output and standard error output to a file named filename?

A) 2>&1 >filename
B) >filename 2>&1
C) 1>&2>filename
D) >>filename
E) 1&2>filename
Question
SIMULATION Which Bash environment variable defines in which file the user history is stored when exiting a Bash process? (Specify ONLY the variable name.)
Question
From a Bash shell, which of the following commands directly executes the instruction from the file /usr/local/bin/runme.sh without starting a subshell?

A) source /usr/local/bin/runme.sh
B) . /usr/local/bin/runme.sh
C) /bin/bash /usr/local/bin/runme.sh
D) /usr/local/bin/runme.sh
E) run /usr/local/bin/runme.sh
Question
Which of the following signals is sent to a process when the key combination CTRL+C is pressed on the keyboard?

A) SIGTERM
B) SIGINT
C) SIGSTOP
D) SIGKILL
Question
In the vi editor, which of the following commands will copy the current line into the vi buffer?

A) c
B) cc
C) 1c
D) yy
E) 1y
Question
Which of the following files, located in the user home directory, is used to store the Bash history?

A) .bash_history
B) .bash_histfile
C) .history
D) .bashrc_history
E) .history_bash
Question
Regarding the command: nice -5 /usr/bin/prog Which of the following statements is correct?

A) /usr/bin/prog is executed with a nice level of -5.
B) /usr/bin/prog is executed with a nice level of 5.
C) /usr/bin/prog is executed with a priority of -5.
D) /usr/bin/prog is executed with a priority of 5.
Question
Which of the following commands replaces each occurrence of 'bob' in the file letter with 'Bob' and writes the result to the file newletter?

A) sed '/bob/Bob' letter > newletter
B) sed s/bob/Bob/ letter < newletter
C) sed 's/bob/Bob' letter > newletter
D) sed 's/bob/Bob/g' letter > newletter
E) sed 's/bob, Bob/' letter > newletter
Question
Which shell command is used to continue background execution of a suspended command?

A) &
B) bg
C) cont
D) exec
E) :&
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/159
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 3: LPI Level 1 Exam 101, Junior Level Linux Certification, Part 1 of 2
1
Which of the following information is stored within the BIOS?

A) Boot device order
B) Linux kernel version
C) Timezone
D) Hardware configuration
E) The system's hostname
Boot device order
Hardware configuration
2
During a system boot cycle, what program is executed after the BIOS completes its tasks?

A) The bootloader
B) The inetd program
C) The init program
D) The kernel
The bootloader
3
Which of the following are init systems used within Linux systems?

A) startd
B) systemd
C) Upstart
D) SysInit
E) SysV init
systemd
Upstart
SysV init
4
Which of the following commands lists the dependencies of a given dpkg package?

A) apt-cache depends-on package
B) apt-cache dependencies package
C) apt-cache depends package
D) apt-cache requires package
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
5
What is the first program that is usually started, at boot time, by the Linux kernel when using SysV init?

A) /lib/init.so
B) /sbin/init
C) /etc/rc.d/rcinit
D) /proc/sys/kernel/init
E) /boot/init
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
6
Which of the following commands is used to update the list of available packages when using dpkg based package management?

A) apt-get update
B) apt-get upgrade
C) apt-cache update
D) apt-get refresh
E) apt-cache upgrade
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
7
Which of the following options for the kernel's command line changes the systemd boot target to rescue.target instead of the default target?

A) systemd.target=rescue.target
B) systemd.runlevel=rescue.target
C) systemd.service=rescue.target
D) systemd.default=rescue.target
E) systemd.unit=rescue.target
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
8
What of the following statements are true regarding /dev/ when using udev?

A) Entries for all possible devices get created on boot even if those devices are not connected.
B) Additional rules for udev can be created by adding them to /etc/udev/rules.d/.
C) When using udev, it is not possible to create block or character devices in /dev/ using mknod.
D) The /dev/ directory is a filesystem of type tmpfs and is mounted by udev during system startup.
E) The content of /dev/ is stored in /etc/udev/dev and is restored during system startup.
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
9
What information can the lspci command display about the system hardware?

A) Device IRQ settings
B) PCI bus speed
C) System battery type
D) Device vendor identification
E) Ethernet MAC address
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
10
SIMULATION Which file in the /proc filesystem lists parameters passed from the bootloader to the kernel? (Specify the file name only without any path.)
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
11
Which of the following commands will write a message to the terminals of all logged in users?

A) bcast
B) mesg
C) print
D) wall
E) yell
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
12
Which of the following kernel parameters instructs the kernel to suppress most boot messages?

A) silent
B) verbose=0
C) nomesg
D) quiet
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
13
Which of the following commands reboots the system when using SysV init?

A) shutdown -r now
B) shutdown -r "rebooting"
C) telinit 6
D) telinit 0
E) shutdown -k now "rebooting"
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
14
Which run levels should never be declared as the default run level when using SysV init?

A) 0
B) 1
C) 3
D) 5
E) 6
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
15
Which of the following statements is correct when talking about /proc/?

A) All changes to files in /proc/ are stored in /etc/proc.d/ and restored on reboot.
B) All files within /proc/ are read-only and their contents cannot be changed.
C) All changes to files in /proc/ are immediately recognized by the kernel.
D) All files within /proc/ are only readable by the root user.
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
16
SIMULATION Which command will display messages from the kernel that were output during the normal boot sequence?
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
17
After modifying GNU GRUB's configuration file, which command must be run for the changes to take effect?

A) kill -HUP $(pidof grub)
B) grub-install
C) grub
D) No action is required
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
18
Which SysV init configuration file should be modified to disable the ctrl-alt-delete key combination?

A) /etc/keys
B) /proc/keys
C) /etc/inittab
D) /proc/inittab
E) /etc/reboot
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
19
Which of the following options is used in a GRUB Legacy configuration file to define the amount of time that the GRUB menu will be shown to the user?

A) hidemenu
B) splash
C) timeout
D) showmenu
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
20
Which of the following commands brings a system running SysV init into a state in which it is safe to perform maintenance tasks?

A) shutdown -R 1 now
B) shutdown -single now
C) init 1
D) telinit 1
E) runlevel 1
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
21
SIMULATION In which directory must definition files be placed to add additional repositories to yum?
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
22
Which of the following commands updates the linker cache of shared libraries?

A) mkcache
B) soconfig
C) mkldconfig
D) lddconfig
E) ldconfig
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
23
SIMULATION Which option to the yum command will update the entire system? (Specify ONLY the option name without any additional parameters.)
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
24
When removing a package, which of the following dpkg options will completely remove the files including configuration files?

A) --clean
B) --delete
C) --purge
D) ­remove
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
25
SIMULATION What is the name of the main configuration file for GNU GRUB? (Specify the file name only without any path.)
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
26
Which of the following environment variables overrides or extends the list of directories holding shared libraries?

A) LD_LOAD_PATH
B) LD_LIB_PATH
C) LD_LIBRARY_PATH
D) LD_SHARE_PATH
E) LD_RUN_PATH
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
27
Which of the following commands can be used to download the RPM package kernel without installing it?

A) yum download --no-install kernel
B) yumdownloader kernel
C) rpm --download --package kernel
D) rpmdownload kernel
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
28
When using rpm --verify to check files created during the installation of RPM packages, which of the following information is taken into consideration?

A) Timestamps
B) MD5 checksums
C) Inodes
D) File sizes
E) GnuPG signatures
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
29
SIMULATION Which Debian package management tool asks the configuration questions for a specific already installed package just as if the package were being installed for the first time? (Specify ONLY the command without any path or parameters.)
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
30
What can the Logical Volume Manager (LVM) be used for?

A) To create RAID 9 arrays.
B) To dynamically change the size of logical volumes.
C) To encrypt logical volumes.
D) To create snapshots.
E) To dynamically create or delete logical volumes.
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
31
Which RPM command will output the name of the package which supplied the file /etc/exports?

A) rpm -F /etc/exports
B) rpm -qf /etc/exports
C) rpm -Kl /etc/exports
D) rpm -qp /etc/exports
E) rpm -qi /etc/exports
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
32
In Bash, inserting 1>&2 after a command redirects

A) standard error to standard input.
B) standard input to standard error.
C) standard output to standard error.
D) standard error to standard output.
E) standard output to standard input.
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
33
Which of the following is correct when talking about mount points?

A) Every existing directory can be used as a mount point.
B) Only empty directories can be used as a mount point.
C) Directories need to have the SetUID flag set to be used as a mount point.
D) Files within a directory are deleted when the directory is used as a mount point.
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
34
SIMULATION Which world-writable directory should be placed on a separate partition in order to prevent users from being able to fill up the / filesystem? (Specify the full path to the directory.)
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
35
What command will generate a list of user names from /etc/passwd along with their login shell?

A) column -s : 1,7 /etc/passwd
B) chop -c 1,7 /etc/passwd
C) colrm 1,7 /etc/passwd
D) cut -d: -f1,7 /etc/passwd
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
36
Which of the following commands can be used to create a USB storage media from a disk image?

A) gdisk
B) dd
C) cc
D) fdisk
E) mount
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
37
SIMULATION Which command will disable swapping on a device? (Specify ONLY the command without any path or parameters.)
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
38
Which of the following commands lists all currently installed packages when using RPM package management?

A) yum --query --all
B) yum --list --installed
C) rpm --query --all
D) rpm --list ­installed
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
39
Which file should be edited to select the network locations from which Debian installation package files are loaded?

A) /etc/dpkg/dpkg.cfg
B) /etc/apt/apt.conf
C) /etc/apt/apt.conf.d
D) /etc/apt/sources.list
E) /etc/dpkg/dselect.cfg
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
40
Which of the following commands overwrites the bootloader located on /dev/sda without overwriting the partition table or any data following it?

A) dd if=/dev/zero of=/dev/sda bs=512
B) dd if=/dev/zero of=/dev/sda bs=512 count=1
C) dd if=/dev/zero of=/dev/sda bs=440 count=1
D) dd if=/dev/zero of=/dev/sda bs=440
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
41
What is the output of the following command? echo "Hello World" | tr -d aieou

A) Hello World
B) eoo
C) Hll Wrld
D) eoo Hll Wrld
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
42
Which of the following commands will NOT update the modify timestamp on the file /tmp/myfile.txt?

A) file /tmp/myfile.txt
B) echo "Hello" >/tmp/myfile.txt
C) sed -ie "s/1/2/" /tmp/myfile.txt
D) echo -n "Hello" >>/tmp/myfile.txt
E) touch /tmp/myfile.txt
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
43
What is the maximum niceness value that a regular user can assign to a process with the nice command when executing a new process?

A) 9
B) 19
C) 49
D) 99
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
44
What is the default nice level when a process is started using the nice command?

A) -10
B) 10
C) 20
D) 0
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
45
What is the difference between the i and a commands of the vi editor?

A) i (interactive) requires the user to explicitly switch between vi modes whereas a (automatic) switches modes automatically.
B) i (insert) inserts text before the current cursor position whereas a (append) inserts text after the cursor.
C) i (independent rows) starts every new line at the first character whereas a (aligned rows) keeps the indentation of the previous line.
D) i (interrupt) temporarily suspends editing of a file to the background whereas a (abort) terminates editing.
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
46
In compliance with the FHS, in which of the directories are man pages found?

A) /usr/share/man
B) /opt/man
C) /usr/doc/
D) /var/pkg/man
E) /var/man
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
47
What is the effect of the egrep command when the -v option is used?

A) It enables color to highlight matching parts.
B) It only outputs non-matching lines.
C) It shows the command's version information.
D) It changes the output order showing the last matching line first.
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
48
Immediately after deleting 3 lines of text in vi and moving the cursor to a different line, which single character command will insert the deleted content below the current line?

A) i (lowercase)
B) P (uppercase)
C) p (lowercase)
D) U (uppercase)
E) u (lowercase)
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
49
Which of the following commands kills the process with the PID 123 but allows the process to "clean up" before exiting?

A) kill -PIPE 123
B) kill -KILL 123
C) kill -STOP 123
D) kill -TERM 123
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
50
Which of the following commands will send output from the program myapp to both standard output (stdout) and the file file1.log?

A) cat < myapp | cat > file1.log
B) myapp 0>&1 | cat > file1.log
C) myapp | cat > file1.log
D) myapp | tee file1.log
E) tee myapp file1.log
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
51
Which of the following commands moves and resumes in the background the last stopped shell job?

A) run
B) bg
C) fg
D) back
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
52
Which of the following characters can be combined with a separator string in order to read from the current input source until the separator string, which is on a separate line and without any trailing spaces, is reached?

A) <<
B) <|
C) !<
D) &<
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
53
What does the ? symbol within regular expressions represent?

A) Match the preceding qualifier one or more times.
B) Match the preceding qualifier zero or more times.
C) Match the preceding qualifier zero or one times.
D) Match a literal ? character.
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
54
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?

A) -dirmax
B) -maxdepth
C) -maxlevels
D) -n
E) -s
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
55
A user accidentally created the subdirectory \dir in his home directory. Which of the following commands will remove that directory?

A) rmdir '~/\dir'
B) rmdir "~/\dir"
C) rmdir ~/'dir'
D) rmdir ~/\dir
E) rmdir ~/\\dir
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
56
What is the default action of the split command on an input file?

A) It will break the file into new files of 1,024 byte pieces each.
B) It will break the file into new files of 1,000 line pieces each.
C) It will break the file into new files of 1,024 kilobyte pieces each.
D) It will break the file into new files that are no more than 5% of the size of the original file.
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
57
What is the purpose of the Bash built-in export command?

A) It allows disks to be mounted remotely.
B) It runs a command as a process in a subshell.
C) It makes the command history available to subshells.
D) It sets up environment variables for applications.
E) It shares NFS partitions for use by other systems on the network.
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
58
Which of the following statements is correct regarding the command foo 1> bar?

A) The stdout from the command foo is appended to the file bar.
B) The stdout from the command foo overwrites the file bar.
C) The command foo receives its stdin from the file bar.
D) The command foo receives its stdin from the stdout of the command bar.
E) The stderr from the command foo is saved to the file bar.
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
59
SIMULATION Which command displays a list of all background tasks running in the current shell? (Specify ONLY the command without any path or parameters.)
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
60
SIMULATION Which signal is missing from the following command that is commonly used to instruct a daemon to reinitialize itself, including reading configuration files? killall -s _______ daemon
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
61
Which of the following commands will reduce all consecutive spaces down to a single space?

A) tr '\s' ' ' < a.txt > b.txt
B) tr -c ' ' < a.txt > b.txt
C) tr -d ' ' < a.txt > b.txt
D) tr -r ' ' '\n' < a.txt > b.txt
E) tr -s ' ' < a.txt > b.txt
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
62
When starting a program with the nice command without any additional parameters, which nice level is set for the resulting process?

A) -10
B) 0
C) 10
D) 20
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
63
Which of the following commands displays the contents of a gzip compressed tar archive?

A) gzip archive.tgz | tar xvf -
B) tar ztf archive.tgz
C) gzip -d archive.tgz | tar tvf -
D) tar cf archive.tgz
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
64
Which of the following commands will print the last 10 lines of a text file to the standard output?

A) cat -n 10 filename
B) dump -n 10 filename
C) head -n 10 filename
D) tail -n 10 filename
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
65
Which of the following commands is used to change options and positional parameters for a running Bash?

A) history
B) set
C) bashconf
D) setsh
E) envsetup
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
66
What happens after issuing the command vi without any additional parameters?

A) vi starts and loads the last file used and moves the cursor to the position where vi was when it last exited.
B) vi starts and requires the user to explicitly either create a new or load an existing file.
C) vi exits with an error message as it cannot be invoked without a file name to operate on.
D) vi starts in command mode and opens a new empty file.
E) vi starts and opens a new file which is filled with the content of the vi buffer if the buffer contains text.
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
67
Which grep command will print only the lines that do not end with a / in the file foo?

A) grep '/$' foo
B) grep '/#' foo
C) grep -v '/$' foo
D) grep -v '/#' foo
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
68
Which character, added to the end of a command, runs that command in the background as a child process of the current shell?

A) !
B) +
C) &
D) %
E) #
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
69
Which of the following commands prints a list of usernames (first column) and their primary group (fourth column) from the /etc/passwd file?

A) fmt -f 1,4 /etc/passwd
B) split -c 1,4 /etc/passwd
C) cut -d : -f 1,4 /etc/passwd
D) paste -f 1,4 /etc/passwd
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
70
In the vi editor, how can commands such as moving the cursor or copying lines into the buffer be issued multiple times or applied to multiple rows?

A) By using the command :repeat followed by the number and the command.
B) By specifying the number right in front of a command such as 4l or 2yj.
C) By selecting all affected lines using the shift and cursor keys before applying the command.
D) By issuing a command such as :set repetition=4 which repeats every subsequent command 4 times.
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
71
Which of the following sequences in the vi editor saves the opened document and exits the editor?

A) esc ZZ
B) ctrl :w!
C) esc zz
D) esc :wq!
E) ctrl XX
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
72
Which of the following shell redirections will write standard output and standard error output to a file named filename?

A) 2>&1 >filename
B) >filename 2>&1
C) 1>&2>filename
D) >>filename
E) 1&2>filename
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
73
SIMULATION Which Bash environment variable defines in which file the user history is stored when exiting a Bash process? (Specify ONLY the variable name.)
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
74
From a Bash shell, which of the following commands directly executes the instruction from the file /usr/local/bin/runme.sh without starting a subshell?

A) source /usr/local/bin/runme.sh
B) . /usr/local/bin/runme.sh
C) /bin/bash /usr/local/bin/runme.sh
D) /usr/local/bin/runme.sh
E) run /usr/local/bin/runme.sh
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
75
Which of the following signals is sent to a process when the key combination CTRL+C is pressed on the keyboard?

A) SIGTERM
B) SIGINT
C) SIGSTOP
D) SIGKILL
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
76
In the vi editor, which of the following commands will copy the current line into the vi buffer?

A) c
B) cc
C) 1c
D) yy
E) 1y
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
77
Which of the following files, located in the user home directory, is used to store the Bash history?

A) .bash_history
B) .bash_histfile
C) .history
D) .bashrc_history
E) .history_bash
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
78
Regarding the command: nice -5 /usr/bin/prog Which of the following statements is correct?

A) /usr/bin/prog is executed with a nice level of -5.
B) /usr/bin/prog is executed with a nice level of 5.
C) /usr/bin/prog is executed with a priority of -5.
D) /usr/bin/prog is executed with a priority of 5.
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
79
Which of the following commands replaces each occurrence of 'bob' in the file letter with 'Bob' and writes the result to the file newletter?

A) sed '/bob/Bob' letter > newletter
B) sed s/bob/Bob/ letter < newletter
C) sed 's/bob/Bob' letter > newletter
D) sed 's/bob/Bob/g' letter > newletter
E) sed 's/bob, Bob/' letter > newletter
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
80
Which shell command is used to continue background execution of a suspended command?

A) &
B) bg
C) cont
D) exec
E) :&
Unlock Deck
Unlock for access to all 159 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 159 flashcards in this deck.