Linux Commands Multiple Choice 2

69 Questions  I  By Mariiikar
This is part two of Linux commands multiple choice questions. These quizes should get you up to scratch for any Linux certificate, college module, etc. Just repeat the quiz over and over until you get 90% + and you will surely be ahead of the rest at exam time.

  
Changes are done, please start the quiz.


Question Excerpt

Removing question excerpt is a premium feature

Upgrade and get a lot more done!
1.  What will happen when rpm is launched as follows?rpm -Uvh file
A.
B.
C.
D.
E.
2.  Why might an administrator use the --force option for rpm?
A.
B.
C.
D.
E.
3.  How are changes to the system BIOS made? Select one.
A.
B.
C.
D.
E.
4.  Which of the following is a reasonable size for a swap partition for a Linux workstation with 128 MB RAM? Select one.
A.
B.
C.
D.
E.
5.  Carolyn has a text file named guest_list containing 12 lines. She executes the following command. What is the result?# split -4 guest_list gl
A.
B.
C.
D.
E.
6.  Alex is currently working in a directory containing only one file, Afile1. What is displayed after the following commands are entered in bash?# MYVAR=ls # echo $MYVAR "$MYVAR" '$MYVAR' '$MYVAR'
A.
B.
C.
D.
E.
7.  What is the PID of init? Select one.
A.
B.
C.
D.
E.
8.  Which one of the following utilities outputs a text file with line numbers along the left margin?
A.
B.
C.
D.
E.
9.  When using xdm, which of the following files can be used to start a window manager? Select one.
A.
B.
C.
D.
E.
10.  The following line comes from /etc/fstab Which of the statements is accurate given the contents of this line? Choose two that apply./dev/fd0 /mnt/fd0 vfat noauto,users 0 0
A.
B.
C.
D.
E.
11.  In the Bash shell, entering !! has the same effect as which one of the following?
A.
B.
C.
D.
E.
12.  What command (include applicable options) is used to initiate a change to runlevel 5?
A.
B.
13.  How many target devices can be added to an 8-bit SCSI-2 bus? Select one.
A.
B.
C.
D.
E.
14.  Which of the following commands cannot be used to exit from vi when in command mode? Select one.
A.
B.
C.
D.
E.
15.  Which one of the following key sequences is used to put a noninteractive text-mode program that is attached to the terminal into the background to allow it to continue processing?
A.
B.
C.
D.
E.
16.  How can you obtain a list of files contained in an .rpm file? Select one.
A.
B.
C.
D.
E.
17.  Which one of the following would be a consequence of a filesystem running out of inodes?
A.
B.
C.
D.
E.
18.  A process with PID 4077 is misbehaving on your system. As superuser, you enter the following command:# kill 4077However, nothing changes as a result. What can you do to terminate the process? Select one.
A.
B.
C.
D.
E.
19.  Which one of the following commands could be used to change all uppercase characters to lowercase in the middle of a pipe?
A.
B.
C.
D.
E.
20.  State the syntax to direct the standard output of cmd1 directly into the standard input of cmd2.
A.
B.
21.  What is appended to the beginning of a command line in order to modify the execution priority of the resulting process?
A.
B.
22.  Which one of the following file globs matches "Linux" and "linux," but not "linux.com" and not "TurboLinux"?
A.
B.
C.
D.
E.
23.  What ext2 filesystem attribute allows a process to take on the ownership of the executable file's owner?
A.
B.
24.  Which one of the following is an accurate statement regarding this regular expression?[^1-8A-Za-z]
A.
B.
C.
D.
E.
25.  What basic command is used to create hard disk partitions?
A.
B.
26.  How many IDE devices can be installed and simultaneously used in a typical Intel-based system? Select one.
A.
B.
C.
D.
E.
27.  What does the device file /dev/hdb6 represent?
A.
B.
C.
D.
E.
28.  When partitioning a disk with more than 1024 cylinders, which of the following could affect the system's ability to boot? Select all that apply.
A.
B.
C.
D.
E.
29.  What does the & character do when placed at the end of a command?
A.
B.
C.
D.
E.
30.  With regard to the use of regular expressions to match text in a file, describe a metacharacter. Select one.
A.
B.
C.
D.
E.
31.  Which of the following directories must be part of the root filesystem? Select two of the following that apply.
A.
B.
C.
D.
E.
32.  Which one of the following commands would be best suited to mount a CD-ROM containing a Linux distribution, without depending on any configuration files?
A.
B.
C.
D.
E.
33.  Alex wants to protect himself from inadvertently overwriting files when copying them with cp. How should he go about this?
A.
B.
C.
D.
E.
34.  In response to the df command, the system reports a Use% of 98% for the filesystem mounted on /home. Which one of the following best describes the significance of this information?
A.
B.
C.
D.
E.
35.  Consider the following line of console output, excerpted from among other lines of output. Which one of the commands produced it?/dev/hda8 1.9G 559M 1.2G 30% /home
A.
B.
C.
D.
E.
36.  How are the cat and tac commands related? Select one.
A.
B.
C.
D.
E.
37.  Which of the following accurately describes the contents of the xdisp:1.0 DISPLAY environment variable? Select one.
A.
B.
C.
D.
E.
38.  What is XDMCP, and how is it used? Select one.
A.
B.
C.
D.
E.
39.  How do you use dpkg to verify the status of an installed package mypkg? Select one.
A.
B.
C.
D.
E.
40.  How can you query the RPM database for a list of all installed RPM packages? Select one.
A.
B.
C.
D.
E.
41.  Which one of the following statements correctly describes the > and >> symbols in the context of the bash shell?
A.
B.
C.
D.
E.
42.  Dave has a Linux system with an interrupt conflict caused by his 3c509 network card. Dave's kernel is fully modular. How could Dave instruct the system to use IRQ 11 for his network adapter?
A.
B.
C.
D.
E.
43.  .Which one of the following answers creates an environment variable VAR1, present in the environment of a bash child process?
A.
B.
C.
D.
E.
44.  What does the "sticky bit" do? Select one.
A.
B.
C.
D.
E.
45.  Which command will display the last lines of the text file file1?
A.
B.
C.
D.
E.
46.  Which of the following is the text file that contains directories where the dynamic linker should look for libraries? Select one.
A.
B.
C.
D.
E.
47.  An ext2 filesystem is configured with user quotas enabled. The soft limit is set at 100 MB per user, the hard limit is set at 110 MB per user, and the grace period is seven days. User bsmith already owns 90 MB of the data stored on the filesystem. What happens when bsmith writes a new file of size 30 MB? Select one.
A.
B.
C.
D.
E.
48.  Which one of the following is true about the LILO boot loader?
A.
B.
C.
D.
E.
49.  Which is not a valid dpkg installation command? Select one.
A.
B.
C.
D.
E.
50.  Which one of the following commands is equivalent to the following command for user jdoe whose home directory is /home/jdoe?# chmod 754 ~/file1
A.
B.
C.
D.
E.
51.  Of the following directories, which one is the most important to back up on a routine basis?
A.
B.
C.
D.
E.
52.  Which one of the following commands copies files with the .txt extension from /dir1 into /dir2, while preserving file attributes such as dates?
A.
B.
C.
D.
E.
53.  Which file contains information on the I/O port assignments in use? Select one.
A.
B.
C.
D.
E.
54.  What is the startx command? Select one.
A.
B.
C.
D.
E.
55.  Which of the following statements is true about an X server? Select one.
A.
B.
C.
D.
E.
56.  What is the correct syntax to remove mypkg entirely from a Debian GNU/Linux system, including configuration files? Select one.
A.
B.
C.
D.
E.
57.  Which pair of dpkg options are equivalent and what do they do? Select one.
A.
B.
C.
D.
E.
58.  With a umask of 027, how is the initial mode set for a newly created file?
A.
B.
C.
D.
E.
59.  Which of the following commands can be used to check an ext2 filesystem? Select three that apply.
A.
B.
C.
D.
E.
60.  Which one of the following outcomes results from the following command?# chmod g+s /home/software
A.
B.
C.
D.
E.
61.  What command and single required option creates a symbolic link in a Linux filesystem?
A.
B.
62.  Which of the following commands displays the comments from a bash script? Select all that apply.
A.
B.
C.
D.
E.
63.  What two commands display the status of processes on a Linux system?
A.
B.
C.
D.
E.
64.  What are the two interrupts usually associated with a PC's onboard serial interface?
A.
B.
65.  Your system's FontPath directives include only one entry:unix/:-1 Which of the following is true? Select one.
A.
B.
C.
D.
E.
66.  Which one of the following commands verbosely extracts files from a tar archive on a magnetic tape device?
A.
B.
C.
D.
E.
67.  Monica consults the /etc/passwd file expecting to find encrypted passwords for all of the users on her system. She sees the following:jdoe:x:500:500::/home/jdoe:/bin/bash bsmith:x:501:501::/home/bsmith:/bin/tcsh Which of the following is true? Select one.
A.
B.
C.
D.
E.
68.  What is contained in directory /sbin? Select the single best answer.
A.
B.
C.
D.
E.
69.  What command can display the contents of a binary file in a readable hexadecimal form? Select one.
A.
B.
C.
D.
E.
Back to top


to post comments.

Removing ad is a premium feature

Upgrade and get a lot more done!
Take Another Quiz