Check out 30 Linux questions on essential OS concepts and frequently used commands.
Every Linux OS has four primary components: Kernel, Shells, System Utils, and Application Programs. However, mostly we use to interact with the Shells and Linux commands to get on to the tasks.
Especially in this quiz, we’ve assembled thirty situation-based questions on Linux commands. In each question, you’ll be asked to select a command that can fit in the given scenario.
For example, you might run into a case where you’ll have to leave but run a program in the background. Alternatively, the program has to throw all errors and output to a single file. In some other scenario, you may have to copy final logs to a remote machine after finishing a task.
These types of Linux questions are useful in the sense as they’ll make you think the real-time usage of the OS commands.
By the way, if you are one of a shell scripting freak, then do attempt this Unix Shell scripting quiz.
Learning all Linux commands isn’t as easy as like remembering the alphabet. One can only keep them memorized by mapping to a palpable situation. Hence, we wrote a dedicated post covering essential Linux commands which you can use as a quick reference.
30 Linux Questions With Answers – Online Test.
0 of 30 questions completed
|For your information, please note that this Linux test has both single and multiple choice questions. So, we suggest you please carefully attempt all the questions. Press the below Start quiz button to go ahead.|
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading...
You must sign in or sign up to start the quiz.
You have to finish following quiz, to start this quiz:
0 of 30 questions answered correctly
Time has elapsed
You have reached 0 of 0 points, (0)
Hopefully, you would have enjoyed this Linux test. Please do share this post on facebook, twitter and other social media platforms of your choice.
1. Question10 points
Select the command to display the kernel release?CorrectIncorrect
2. Question10 points
Select the command to list older files first and newer ones last?CorrectIncorrect
3. Question10 points
Select the command to show process hierarchy in forest format?CorrectIncorrect
4. Question10 points
Select the command to edit and run any command using its index from the history?
For example – Edit and run the 10th command.CorrectIncorrect
5. Question10 points
Which of the following commands would you use to enable the sticky bit on the “/tmp” folder?CorrectIncorrect
6. Question10 points
Some commands (including cat) interpret a minus sign (-) as a shortcut for which of the following?CorrectIncorrect
7. Question10 points
If you want to display a message on opening a new terminal window, which file is to be modified?CorrectIncorrect
8. Question10 points
What keyboard combination can be used to exit the shell?CorrectIncorrect
9. Question10 points
Which of the following command would redirect the stdout and stderr to a single file?CorrectIncorrect
10. Question10 points
How would you remove a directory that is not empty?CorrectIncorrect
11. Question10 points
Select the correct meaning of the following command?
command 2> /dev/nullCorrectIncorrect
12. Question10 points
Select the command to determine the current login shell?CorrectIncorrect
13. Question10 points
Select the correct command to switch to virtual terminal 1.CorrectIncorrect
14. Question10 points
Select the command to display the running httpd processes.CorrectIncorrect
15. Question10 points
Which of the following runs the last command you entered?CorrectIncorrect
16. Question10 points
Select the command to provide the information about the identity, including the names of the group we belong?CorrectIncorrect
17. Question10 points
Select the command to lock the user account named localusr.CorrectIncorrect
18. Question10 points
Which file determines the run at each runlevel?CorrectIncorrect
19. Question10 points
What is the symbolic representation of this numeric permission: 644?CorrectIncorrect
20. Question10 points
Given a file with permission 755, which of the following commands would change file permission to r-xr–r–?CorrectIncorrect
21. Question10 points
Select the command to show all the hidden directory contents.CorrectIncorrect
22. Question10 points
To list the directory contents with permissions the command is?CorrectIncorrect
23. Question10 points
Select the commands to shut down the machine.CorrectIncorrect
24. Question10 points
Choose the command used to remove the password assigned to a group.CorrectIncorrect
25. Question10 points
Suppose while working for another system administrator and one of the users asks you to restore a file for him. You locate the correct tar file by checking the backup log but do not know about the directory structure. Select the command to determine this?CorrectIncorrect
26. Question10 points
Which password package secures the central password file from getting stolen?CorrectIncorrect
27. Question10 points
Which of the following tasks is not done automatically for a user account created using useradd command?CorrectIncorrect
28. Question10 points
What characteristic of the </etc/passwd> file does not allow to use the shadow passwords?CorrectIncorrect
29. Question10 points
Which of the following options lists all the seven fields of the </etc/passwd> file in the correct order?CorrectIncorrect
30. Question10 points
Which of the following files defines all users on a Linux system?CorrectIncorrect
We hope that you would have enjoyed solving each and every question of this online Linux quiz. The knowledge which you would gain from here is not only relevant in the interviews, but you can also use it in handling real-time tasks. Those who have recently started playing with Linux can go through the below post and learn even more.
Before we conclude for the day, let’s listen to an interesting quote about Linux. It highlights why it’s counted as the best Server operating system.
It’s a bird. It’s a plane. No, it’s Kernel Man, faster than a speeding bullet, to your rescue.
It was none other than the great Linus Torvald who said this in his speech while announcing a new Kernel release.