EMT Practice Test

1. Question Content...


Question List

Question1: What does the command mount --bind do?

Question2: To prevent users from being able to fill up the / partition, the ____________ directory should be on a separate partition if possible because it is world writeable.

Question3: What output will be displayed when the user fred executes the following command?
echo 'fred $USER'

Question4: Which of the following commands installs GRUB 2 into the master boot record on the third hard disk?

Question5: The system is having trouble and the engineer wants to bypass the usual /sbin/init start up and run /bin/sh.
What is the usual way to pass this change to the kernel from your boot loader?

Question6: Which option to the yum command will update the entire system? (Specify ONLY the option name without any additional parameters.)

Question7: Which of the following apt-get subcommands installs the newest versions of all currently installed packages?

Question8: When in Normal mode invi, which character can be used to begin a reverse search of the text?

Question9: Which grep command will print only the lines that do not end with a / in the file foo?

Question10: Which of the following commands converts spaces in a file to tab characters and prints the result to standard output?

Question11: Which file in /proc describes the IRQs that are used by various kernel drivers? (Specify the file name only without any path.)

Question12: A Debian package creates several files during its installation. Which of the following commands searches for packages owning the file /etc/debian_version?

Question13: Which of the following is a limitation of the cut command?

Question14: Which of the following commands lists the dependencies of a given dpkg package?

Question15: Which of the following file permissions belong to a symbolic link?

Question16: Which command displays a list of all background tasks running in the current shell? (Specify ONLY the command without any path or parameters.)

Question17: Creating a hard link to an ordinary file returns an error. What could be the reason for this?

Question18: 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?

Question19: Which of the following commands makes /bin/foo executable by everyone but writable only by its owner?

Question20: Which of the following commands kills the process with the PID 123 but allows the process to "clean up" before exiting?

Question21: Which of the following signals is sent to a process when the key combination CTRL+C is pressed on the keyboard?

Question22: Which of the following directories on a 64-bit Linux system typically contain shared libraries? (Choose two.)

Question23: Which function key is used to start Safe Mode in Windows NT?

Question24: Which of the following commands reboots the system when using SysV init? (Choose TWO correct answers.)

Question25: Which of the following options for the kernel's command line changes the systemd boot target to rescue.target instead of the default target?

Question26: 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.

Question27: During a system boot cycle, what program is executed after the BIOS completes its tasks?

Question28: Which of the following apt-get commands will install the newest versions of all currently installed packages?

Question29: 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

Question30: What is true regarding UEFI firmware? (Choose two.)

Question31: An administrator has issued the following command:
grub-install --root-directory=/custom-grub /dev/sda
In which directory will new configuration files be found? (Provide the full directory path only without the filename)

Question32: Which command is used to start another command with a given nice level? (Specify ONLY the command without any path or parameters.)

Question33: 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?

Question34: Which command will uninstall a package but leave its configuration files in case the package is re-installed?

Question35: When removing a package, which of the following dpkg options will completely remove the files including configuration files?

Question36: 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.)

Question37: 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? (Please select TWO answers.)

Question38: Which of the following commands is used to change metadata and options for ext3 filesystems?

Question39: Which of the following commands list all files and directories within the /tmp/ directory and its subdirectories which are owned by the user root? (Choose two.)

Question40: Which of the following is true when a file system, which is neither listed in /etc/fstab nor known to system, is mounted manually?

Question41: 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.)

Question42: Which command uninstalls a package but keeps its configuration files in case the package is re-installed?

Question43: Which of the following command sets the Bash variable named TEST with the content FOO?

Question44: What information can the lspci command display about the system hardware? (Choose THREE correct answers.)

Question45: Which of the following are filesystems which can be used on Linux root partitions? (Choose two.)

Question46: You suspect that a new ethernet card might be conflicting with another device. Which file should you check within the /proc tree to learn which IRQs are being used by which kernel drivers?

Question47: What is the default nice level when a process is started using the nice command?

Question48: When using regular expressions, which of the following characters match the beginning of a line?

Question49: 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?

Question50: Which of the following commands can be used to locate programs and their corresponding man pages and configuration files?

Question51: What does the command mount -a do?

Question52: Which of the following commands prints a list of usernames (first column) and their primary group (fourth column) from the /etc/passwd file?

Question53: Which SysV init configuration file is commonly used to set the default run level? (Specify the full name of the file, including path.)

Question54: Which of the following commands replaces each occurrence of 'bob' in the file letter with 'Bob' and writes the result to the file newletter?

Question55: When redirecting the output of find to the xargs command, what option to find is useful if the filenames contain spaces?

Question56: The system configuration file named _______ is commonly used to set the default runlevel. (Please provide the file name with full path information)

Question57: Which of the following commands displays the path to the executable file that would be executed when the command foo is invoked?

Question58: Which command is used to create and initialize the files used to store quota information? (Specify ONLY the command without any path or parameters.)

Question59: 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.)

Question60: Which of the following pieces of information of an existing file is changed when a hard link pointing to that file is created?

Question61: The dpkg-____ command will ask configuration questions for a specified package, just as if the package were being installed for the first time.

Question62: Which of the following commands can be used to perform a full text search on all available packages on a Debian system?

Question63: When given the following command line.
echo "foo bar" | tee bar | cat
Which of the following output is created?

Question64: What is the maximum niceness value that a regular user can assign to a process with the nice command when executing a new process?

Question65: Which of the following commands can be used to download the RPM package kernel without installing it?

Question66: How is a symbolic link called bar.conf pointing to foo.conf created?

Question67: While editing a file in vi, the file changes due to another process. Without exiting vi, how can the file be reopened for editing with the new content?

Question68: Which command is used to query information about the available packages on a Debian system?

Question69: What command changes the nice level of a running process? (Specify ONLY the command without any path or parameters)

Question70: Which umask value ensures that new directories can be read, written and listed by their owning user, read and listed by their owning group and are not accessible at all for everyone else?

Question71: Which of the following commands is used to change options and positional parameters for a running Bash?

Question72: Which of the following commands instructs SysVinit to reload its configuration file?

Question73: Which run levels should never be declared as the default run level when using SysV init? (Choose TWO correct answers.)

Question74: Given a log file loga.log with timestamps of the format DD/MM/YYYY:hh:mm:ss, which command filters out all log entries in the time period between 8:00 am and 8:59 am?

Question75: Given the following input stream:
txt1.txt
atxt.txt
txtB.txt
Which of the following regular expressions turns this input stream into the following output stream?
txt1.bak.txt
atxt.bak.txt
txtB.bak.txt

Question76: A faulty kernel module is causing issues with a network interface card. Which of the following actions ensures that this module is not loaded automatically when the system boots?

Question77: Which program updates the database that is used by the locate command?

Question78: Which of the following describes the correct order in which the components of the system boot process are started?

Question79: Which of the following commands will reduce all consecutive spaces down to a single space?

Question80: Which of the following commands will write a message to the terminals of all logged in users?

Question81: What can the Logical Volume Manager (LVM) be used for? (Choose THREE correct answers.)

Question82: What is true regarding the configuration of yum? (Choose two.)

Question83: What is the purpose of the Filesystem Hierarchy Standard?

Question84: Which command must be entered before exiting vi to save the current file as filea.txt?

Question85: Which command reads and displays the current contents of the Kernel Ring Buffer on the command line?
(Specify ONLY the command without any path or parameters.)

Question86: Which of the following commands will print the last 10 lines of a text file to the standard output?

Question87: Which of the following sequences in the vi editor saves the opened document and exits the editor? (Choose TWO correct answers.)

Question88: Which of the following vi commands deletes two lines, the current and the following line?

Question89: Consider the following output from the command ls -i:

How would a new file named c.txt be created with the same inode number as a.txt (Inode 525385)?

Question90: In Bash, inserting 1>&2 after a command redirects

Question91: Which of the following commands set the sticky bit for the directory /tmp? (Choose TWO correct answers.)

Question92: 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?

Question93: Which of the following files, located in the user home directory, is used to store the Bash history?

Question94: Which command shows all shared libraries required by a binary executable or another shared library? (Specify ONLY the command without any path or parameters.)

Question95: What is the difference between the --remove and the --purge action with the dpkg command?

Question96: Which character, added to the end of a command, runs that command in the background as a child process of the current shell?

Question97: What is the purpose of the xargs command?

Question98: Which of the following commands will display the inode usage of each mounted filesystem?

Question99: Which of the following commands is used to update the list of available packages when using dpkg based package management?

Question100: Which of the following commands prints a list of available package updates when using RPM-based package management?

Question101: What is true regarding the command
ls > files
if files do not exist?

Question102: In which directory must definition files be placed to add additional repositories to yum?

Question103: Which of the following commands lists the dependencies of the RPM package file foo.rpm?

Question104: What do the permissions -rwSr-xr-x mean for a binary file when it is executed as a command?

Question105: Which Bash environment variable defines in which file the user history is stored when exiting a Bash process?
(Specify ONLY the variable name.)

Question106: Which wildcards will match the following filenames? (Choose two.)
ttyS0
ttyS1
ttyS2

Question107: Typically, which top level system directory is used for files and data that change regularly while the system is running and are to be kept between reboots? (Specify only the top level directory)

Question108: Which of the following commands creates an ext3 filesystem on /dev/sdb1? (Choose TWO correct answers.)

Question109: What is the first program that is usually started, at boot time, by the Linux kernel when using SysV init?

Question110: Which of the following commands changes all occurrences of the word "bob" in file data to "Bob" and prints the result to standard output?

Question111: The message "Hard Disk Error" is displayed on the screen during Stage 1 of the GRUB boot process. What does this indicate?

Question112: Which of the following commands redirects the output of ls to standard error?

Question113: Which of the following commands are common Linux commands for file management? (Choose three correct answers.)

Question114: Which of the following commands moves and resumes in the background the last stopped shell job?

Question115: Which of the following partition types is used for Linux swap spaces when partitioning hard disk drives?