Linux
MCQ questions and answers
- 4.5/5.0
- 1k Enrolled
- All levels
- Last updated 11/2023
- English
Linux MCQ (59)
1. | _____ command is used to get the type of file. |
A | touch |
B | file |
C | cat -v |
D | info -v |
Answer: B | |
2. | Which command is used to change ownership of file? |
A | chmod |
B | chown |
C | chgrp |
D | unmask |
Answer: B | |
3. | ____________ command display one screen of text at a time and prompts you for a command after each screen. |
A | less |
B | more |
C | pg |
D | cat |
Answer: C | |
4. | Which symbol is used to redirect the output of a command to the input for another command? |
A | Greater than (>) |
B | Hash(#) |
C | Dollar ($) |
D | Pipe ( | ) |
Answer: D | |
5. | ______ allow you to list them on one screen and send the output of one command to another command, which is the correct syntax? |
A | $ls -1 | pg |
B | $ls -w | pg |
C | $ ls > pg |
D | $ls | pg |
Answer: A | |
6. | The ____________ is an enhanced version of the MORE command. |
A | pg |
B | more -v |
C | less |
D | find |
Answer: C | |
7. | Which command is used to print a file? |
A | prn |
B | lp |
C | lpstat |
D | |
Answer: B | |
8. | Which shows you the beginning of a file? |
A | head |
B | cat |
C | pg |
D | more |
Answer: A | |
9. | Which command is used to print the output of the command? |
A | $ls -1 | lp |
B | $lp -1 | ls |
C | $lp ls |
D | $lpstat -1 | ls |
Answer: A | |
10. | ____________ command is/are used for simple formatting. |
A | pr |
B | fmt |
C | A and B |
D | format |
Answer: C | |
11. | ____________ program is automatically started after the user logged in the system. |
A | kernel |
B | shell |
C | desktop |
D | user |
Answer: B | |
12. | Which command is used to change the shell? |
A | which |
B | sh |
C | chsh |
D | change |
Answer: C | |
13. | ____________ symbol at the end of a command line direct the shell to execute a command in the background. |
A | $ (dollar) |
B | – (Hypen) |
C | %(percentage) |
D | & (Ampercent) |
Answer: D | |
14. | _____ command is used to run a background job which will be continue after the log out? |
A | troff |
B | nohup (no hang up) |
C | xterm |
D | jobs |
Answer: B | |
15. | The ____________ option prevents you from the overwriting of an existing file when you redirect output from a command. |
A | noclobber |
B | clobber |
C | write |
D | troff |
Answer: A | |
16. | _____ command is used to put VI in an input mode which begins inserting typed text immediately before the cursor position? |
A | i |
B | A |
C | a |
D | w |
Answer: A | |
17. | Which command is used to put VI in an input mode and it appends a text at end of the current line? |
A | i |
B | A |
C | o |
D | I |
Answer: B | |
18. | When command is open up a line above the current line and it put the VI in an input mode? |
A | A |
B | o |
C | i |
D | I |
Answer: B | |
19. | vi editor maintains several other temporary storage called ____________. |
A | buffer |
B | working buffer |
C | history |
D | temp |
Answer: B | |
20. | The command ____________ copies the character which is starting at the cursor into a storage area. |
A | x |
B | y (yank) |
C | p |
D | cp |
Answer: B | |
21. | Which command is used to moves cursor one character to the left? |
A | i |
B | j |
C | h |
D | k |
Answer: C | |
22. | ___ command moves the cursor down one line and ___ command moves it up one line. |
A | h, k |
B | h, l |
C | j, k |
D | k, l |
Answer: C | |
23. | Which is the option provide a short error message? |
A | err |
B | error |
C | msg |
D | terse |
Answer: D | |
24. | GNOME has a built in file manager called ____________. |
A | Nautilus |
B | Gedit |
C | Mosaic |
D | None of the above |
Answer: A | |
25. | ____________ program provides a simple screen oriented user interface for the sending and receiving email. |
A | emacs |
B | pine |
C | vim |
D | MTA |
Answer: B | |
26. | Which command is used for the remote login? |
A | rlogin |
B | login |
C | rcp |
D | ftp |
Answer: A | |
27. | The ____________ command notifies a problem with your connection to the internet or whether packets are not reaching at destination. |
A | traceroute |
B | ping |
C | trace |
D | telnet |
Answer: A | |
28. | Which command is used to show the list of the active processes? |
A | ps |
B | fork |
C | touch |
D | ls |
Answer: A | |
29. | The ____________ facility is a system daemon that execute the commands at a specific time. |
A | cron |
B | ps |
C | banner |
D | nice |
Answer: A | |
30. | What is the PID number of an init process? |
A | Zero |
B | One |
C | Two |
D | Ten |
Answer: B | |
31. | Which command is used to allow the user to execute a command with lower than normal priority? |
A | at |
B | daemons |
C | nice |
D | cron |
Answer: C | |
32. | Which command will display the details of a running processes? |
A | ps -s |
B | ps -f |
C | ps |
D | ps -z |
Answer: B | |
33. | ____________ is a notification send to the process that an event has occurred. |
A | Message |
B | Signal |
C | Interrupt |
D | None of the above |
Answer: B | |
34. | Which command is used to change a scheduling parameters of the process to the realtime? |
A | crontab |
B | nice |
C | priocntl |
D | nohup |
Answer: C | |
35. | ______ is a virtual file system reside in the memory which is created each time when system is booted and it is useful for system administrator? |
A | /proc |
B | ext |
C | vfs |
D | inode |
Answer: A | |
36. | _____ command is used to compress files and it is known as Huffman coding. |
A | pack |
B | compress |
C | gzip |
D | gunzip |
Answer: A | |
37. | The compression technique is the Lempel-Ziv method which is used by ____________ command. |
A | pack |
B | gunzip |
C | gzip |
D | compress |
Answer: D | |
38. | _____ is a setup and configuration tool used in SUSE Linux for the installation of software and set up the configuration of hardware? |
A | YaST |
B | YACC |
C | glint |
D | LinuxConf |
Answer: A | |
39. | _____ tool is available on the most Linux distributions which provide a wide variety of configuration services? |
A | Cron Tab |
B | YaST |
C | LinuxConf |
D | Deamon |
Answer: C | |
40. | Which tool is used to install the updates and remove the software packages? |
A | apt-get |
B | yum |
C | rpm |
D | none |
Answer: A | |
41. | Which command is used to send a messages to the every user who are currently logged in? |
A | wall |
B | mesg |
C | talk |
D | chat |
Answer: A | |
42. | Which mobile OS have foundation of linux kernel? |
A | Symbian OS |
B | Android |
C | Blackberry |
D | Windows 8 |
Answer: B |