Linux Commands Multiple Choice

53 Questions  I  By Mariiikar
Linux commands multiple choice quiz for anyone who is in college studying Linux, systems administration or other computer courses and want to test themselves on multiple choice questions for exams.

  
Changes are done, please start the quiz.


Question Excerpt

Removing question excerpt is a premium feature

Upgrade and get a lot more done!
1.  Which command can be used to edit and then run command no. 40?
A.
B.
C.
D.
2.  What is the shortest command to take you to your home directory?
A.
B.
C.
D.
3.  In which directory are the crontab files for users stored on suse linux?
A.
B.
C.
D.
4.  How would you remove a directory that is not empty?
A.
B.
C.
D.
5.  Which file determines what will be run at each runlevel?
A.
B.
C.
D.
6.  During the linux boot process, what happens immediately after the phase called "load kernel"?
A.
B.
C.
D.
7.  What does the 2>&1 at the end of the following command mean?find / -name fred.txt > names 2>&1
A.
B.
C.
D.
8.  How do you direct the shell to execute a command in the background?
A.
B.
C.
D.
9.  How would you sort a file called shopping on column 3?
A.
B.
C.
D.
10.  How do you display the kernel release?
A.
B.
C.
D.
11.  How would you search for the string clothes at the end of the line in a file called shopping?
A.
B.
C.
D.
12.  How do you delete your crontab entry?
A.
B.
C.
D.
13.  Which of the following cannot be used as a mount option in /etc/fstab?
A.
B.
C.
D.
14.  How would you switch to virtual terminal 1?
A.
B.
C.
D.
15.  How do you see hidden files in your home directory?
A.
B.
C.
D.
16.  How would you continuously display memory usage every 5 seconds?
A.
B.
C.
D.
17.  How do you create a crontab entry?
A.
B.
C.
D.
18.  Which file is the list of commands you recently entered stored in?
A.
B.
C.
D.
19.  Which signal number corresponds with the SIGSTOP signal?
A.
B.
C.
D.
20.  How would you list oldest files first and newest ones last?
A.
B.
C.
D.
21.  Which file is the list of commands you recently entered stored in?
A.
B.
C.
D.
22.  You want to display a message when you open a new terminal window. Which file do you edit?
A.
B.
C.
D.
23.  Which runlevel allows full multiuser mode but with no graphical login manager?
A.
B.
C.
D.
24.  Which of the following runs the last command you entered?
A.
B.
C.
D.
25.  Which of the following can be used to set the immutable attribute on a file?
A.
B.
C.
D.
26.  What does the permission string nvxr-xr-- correspond with in octal?
A.
B.
C.
D.
27.  How do you display your current crontab entry?
A.
B.
C.
D.
28.  To run date first, and then ls -l, which of the following is correct?
A.
B.
C.
D.
29.  Which runlevel allows full multiuser mode but with no graphical login manager?
A.
B.
C.
D.
30.  What symbol is used to show that ACLs have been set on a file?
A.
B.
C.
D.
31.  What keyboard combination can be used to exit the shell?
A.
B.
C.
D.
32.  How do you see if two files are hard linked to each other?
A.
B.
C.
D.
33.  How would you turn on the sticky bit on the directory /tmp?
A.
B.
C.
D.
34.  What is the purpose of the following operator? >>
A.
B.
C.
D.
35.  How would you show process hierarchy in forest format?
A.
B.
C.
D.
36.  How would you avoid accidentally removing files?
A.
B.
C.
D.
37.  Some commands, including cat, interpret a minus sign (-) as a shortcut for...
A.
B.
C.
D.
38.  Which command displays the settings for all services at all runlevels?
A.
B.
C.
D.
39.  How do you find out information about your identity, including the names of the groups you are in?
A.
B.
C.
D.
40.  How do you run a job that will continue running even if you are logged out?
A.
B.
C.
D.
41.  What is the following syntax used for? command >file1 2>file2
A.
B.
C.
D.
42.  To display information about the processor itself - display the contents of which file?
A.
B.
C.
D.
43.  How do you copy an entire directory structure? E.g. from Project to Project.backup
A.
B.
C.
D.
44.  Suppose you are in your home directory, /home/raf as in diagram above. What is the relative path for the file called "save" in the Email subdirectory?
A.
B.
C.
D.
45.  How would you display running httpd processes?
A.
B.
C.
D.
46.  Which command is used to unmount a filesystem?
A.
B.
C.
D.
47.  Which of the following could you use to check if the cron daemon is running?
A.
B.
C.
D.
48.  How would you lock the user account named csm099?
A.
B.
C.
D.
49.  How do you create a crontab entry?
A.
B.
C.
D.
50.  What is the full path for grub's configuration file
A.
B.
C.
D.
51.  How would you find out what your current login shell is?
A.
B.
C.
D.
52.  What is the following syntax used forcommand 2> /dev/null
A.
B.
C.
D.
53.  The following can be used to set the immutable attribute on a file?
A.
B.
C.
D.
Back to top


to post comments.

Removing ad is a premium feature

Upgrade and get a lot more done!
Take Another Quiz