We have sent an email with your new password.

Close this window

Linux Commands Multiple Choice 2

69 Questions  I  By Mariiikar
Linux Commands Multiple Choice 2
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 is the startx command? Select one.
A.
B.
C.
D.
E.
2.  Which of the following accurately describes the contents of the xdisp:1.0 DISPLAY environment variable? Select one.
A.
B.
C.
D.
E.
3.  What does the device file /dev/hdb6 represent?
A.
B.
C.
D.
E.
4.  Which one of the following outcomes results from the following command?# chmod g+s /home/software
A.
B.
C.
D.
E.
5.  What does the "sticky bit" do? Select one.
A.
B.
C.
D.
E.
6.  Which of the following statements is true about an X server? Select one.
A.
B.
C.
D.
E.
7.  Which one of the following commands verbosely extracts files from a tar archive on a magnetic tape device?
A.
B.
C.
D.
E.
8.  With a umask of 027, how is the initial mode set for a newly created file?
A.
B.
C.
D.
E.
9.  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.
10.  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.
11.  How do you use dpkg to verify the status of an installed package mypkg? Select one.
A.
B.
C.
D.
E.
12.  What is appended to the beginning of a command line in order to modify the execution priority of the resulting process?
A.
B.
13.  How are the cat and tac commands related? Select one.
A.
B.
C.
D.
E.
14.  How many IDE devices can be installed and simultaneously used in a typical Intel-based system? Select one.
A.
B.
C.
D.
E.
15.  What ext2 filesystem attribute allows a process to take on the ownership of the executable file's owner?
A.
B.
16.  Your system's FontPath directives include only one entry:unix/:-1 Which of the following is true? Select one.
A.
B.
C.
D.
E.
17.  Which of the following directories must be part of the root filesystem? Select two of the following that apply.
A.
B.
C.
D.
E.
18.  What is contained in directory /sbin? Select the single best answer.
A.
B.
C.
D.
E.
19.  How many target devices can be added to an 8-bit SCSI-2 bus? Select one.
A.
B.
C.
D.
E.
20.  Which command will display the last lines of the text file file1?
A.
B.
C.
D.
E.
21.  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.
22.  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.
23.  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.
24.  Which one of the following is an accurate statement regarding this regular expression?[^1-8A-Za-z]
A.
B.
C.
D.
E.
25.  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.
26.  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.
27.  Which of the following commands cannot be used to exit from vi when in command mode? Select one.
A.
B.
C.
D.
E.
28.  What command and single required option creates a symbolic link in a Linux filesystem?
A.
B.
29.  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.
30.  What will happen when rpm is launched as follows?rpm -Uvh file
A.
B.
C.
D.
E.
31.  With regard to the use of regular expressions to match text in a file, describe a metacharacter. Select one.
A.
B.
C.
D.
E.
32.  Which one of the following utilities outputs a text file with line numbers along the left margin?
A.
B.
C.
D.
E.
33.  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.
34.  What command (include applicable options) is used to initiate a change to runlevel 5?
A.
B.
35.  What two commands display the status of processes on a Linux system?
A.
B.
C.
D.
E.
36.  Which file contains information on the I/O port assignments in use? Select one.
A.
B.
C.
D.
E.
37.  Which one of the following would be a consequence of a filesystem running out of inodes?
A.
B.
C.
D.
E.
38.  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.
39.  Which one of the following statements correctly describes the > and >> symbols in the context of the bash shell?
A.
B.
C.
D.
E.
40.  What basic command is used to create hard disk partitions?
A.
B.
41.  Which of the following commands can be used to check an ext2 filesystem? Select three that apply.
A.
B.
C.
D.
E.
42.  What command can display the contents of a binary file in a readable hexadecimal form? Select one.
A.
B.
C.
D.
E.
43.  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.
44.  Of the following directories, which one is the most important to back up on a routine basis?
A.
B.
C.
D.
E.
45.  State the syntax to direct the standard output of cmd1 directly into the standard input of cmd2.
A.
B.
46.  What is the PID of init? Select one.
A.
B.
C.
D.
E.
47.  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.
48.  .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.
49.  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.
50.  When using xdm, which of the following files can be used to start a window manager? Select one.
A.
B.
C.
D.
E.
51.  What is XDMCP, and how is it used? Select one.
A.
B.
C.
D.
E.
52.  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.
53.  Which is not a valid dpkg installation command? Select one.
A.
B.
C.
D.
E.
54.  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.
55.  How are changes to the system BIOS made? Select one.
A.
B.
C.
D.
E.
56.  Which one of the following is true about the LILO boot loader?
A.
B.
C.
D.
E.
57.  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.
58.  How can you query the RPM database for a list of all installed RPM packages? Select one.
A.
B.
C.
D.
E.
59.  What does the & character do when placed at the end of a command?
A.
B.
C.
D.
E.
60.  In the Bash shell, entering !! has the same effect as which one of the following?
A.
B.
C.
D.
E.
61.  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.
62.  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.
63.  Which one of the following file globs matches "Linux" and "linux," but not "linux.com" and not "TurboLinux"?
A.
B.
C.
D.
E.
64.  Which of the following commands displays the comments from a bash script? Select all that apply.
A.
B.
C.
D.
E.
65.  Why might an administrator use the --force option for rpm?
A.
B.
C.
D.
E.
66.  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.
67.  How can you obtain a list of files contained in an .rpm file? Select one.
A.
B.
C.
D.
E.
68.  Which pair of dpkg options are equivalent and what do they do? Select one.
A.
B.
C.
D.
E.
69.  What are the two interrupts usually associated with a PC's onboard serial interface?
A.
B.
Back to top

Removing ad is a premium feature

Upgrade and get a lot more done!
Take Another Quiz