Linux Quiz: Ultimate Trivia Questions!

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Sandeep_patade
S
Sandeep_patade
Community Contributor
Quizzes Created: 1 | Total Attempts: 315
| Attempts: 315 | Questions: 20
Please wait...
Question 1 / 20
0 %
0/100
Score 0/100
1. .............is the command used to create a new directory.

Explanation

The command "mkdir" is used to create a new directory.

Submit
Please wait...
About This Quiz
Linux Quiz: Ultimate Trivia Questions! - Quiz

The 'Linux Quiz: Ultimate Trivia Questions!' assesses your knowledge of Linux commands and concepts. It covers key commands like mkdir, touch, clear, and more, alongside understanding GNU and... see moreDHCP. Ideal for learners looking to test or improve their Linux skills. see less

2. Which command will create a new directory?

Explanation

rmdir will remove a directory. md is the windows command to make a new folder. make will recompile a group of programs

Submit
3. Command used to create an empty file.

Explanation

The correct answer is "touch". The touch command is used to create an empty file in various operating systems, including Linux and Unix. It updates the access and modification timestamps of the file, and if the file does not exist, it creates a new empty file with the specified name.

Submit
4. "cat" is the command used to?

Explanation

The "cat" command is used to display the contents of a file in the terminal. It is commonly used to quickly view the contents of text files without opening them in an editor. By running the "cat" command followed by the file name, the file's contents will be printed to the terminal.

Submit
5. Which command will display the current directory?

Explanation

cd will change the directory. whoami will display current user. uname will display system information

Submit
6. DHCP stands for?

Explanation

DHCP stands for Dynamic Host Configuration Protocol. This protocol is used to automatically assign IP addresses and other network configuration settings to devices on a network. It allows for the efficient management and allocation of IP addresses, making it easier to set up and maintain a network. The other options, Dual Host Configuration Protocol and Dynamic Host Computer Protocol, are not correct and do not exist. Therefore, the correct answer is Dynamic Host Configuration Protocol.

Submit
7. The files under this directory are deleted when the system is rebooted.

Explanation

The /tmp directory is a temporary directory where files are stored that are only needed for a short period of time. These files are often created by programs or scripts during their execution. When the system is rebooted, the /tmp directory is cleared, deleting all the files stored in it. This ensures that any temporary files that were left behind from previous sessions are removed, freeing up disk space and maintaining system cleanliness.

Submit
8. Which command will display your IP address?

Explanation

ipconfig is the windows command for displaying your ip address. ping will test a network connection. netstat will display networking information.

Submit
9. If you want to modify the file owner, which command do you use?

Explanation

The chown command is used to modify the file owner. This command allows the user to change the ownership of a file or directory to a different user or group. By using chown, the user can transfer the ownership rights to another user, granting them full control over the file or directory. This command is commonly used in Unix-like operating systems to manage file ownership and permissions.

Submit
10. What command is used to clear up the command prompt window?

Explanation

The correct answer is "clear" because it is the command used to clear up the command prompt window. This command clears all the previous commands and output from the window, providing a clean and empty prompt for new commands.

Submit
11. Which command do you use to display the differences between two files?

Explanation

df will display free disk space. comp is the windows command for comparing the contents of two files. sdiff will merge two files

Submit
12. The language linux uses is?

Explanation

Linux is an open-source operating system that is primarily written in the C programming language. C is a low-level language that provides direct access to memory and hardware, making it suitable for developing operating systems. Additionally, Linux also includes components written in C++ which is an extension of the C language, providing object-oriented programming capabilities. Therefore, the correct answer is C, C++ as these are the primary languages used in Linux development.

Submit
13. If you want to give read/write/execute rights to the file owner while giving read/execute rights to the group and other, which command do you use?

Explanation

The command "chmod 755" is used to give read/write/execute rights to the file owner while giving read/execute rights to the group and other. In Linux, the "chmod" command is used to change the permissions of a file or directory. The three digits in the command represent the permissions for the owner, group, and others respectively. The number 7 represents read, write, and execute permissions, while the number 5 represents read and execute permissions. Therefore, "chmod 755" grants the necessary permissions as specified in the question.

Submit
14. What will schedule a command to run at a later time?

Explanation

Crontab is a command in Unix-like operating systems that allows users to schedule commands or scripts to run at specific times or intervals. It is commonly used to automate repetitive tasks or schedule system maintenance. By using crontab, users can specify the exact time and frequency at which a command should be executed, making it the correct answer for scheduling a command to run at a later time.

Submit
15. What does GNU stand for?

Explanation

GNU stands for "Gnu's not Unix" because the acronym GNU was created as a recursive acronym, which means that it stands for itself. The phrase "Gnu's not Unix" is a play on words, indicating that although GNU shares similarities with Unix, it is not a direct derivative or clone of Unix. This reflects the philosophy behind the GNU Project, which aimed to develop a free and open-source operating system that is compatible with Unix but independent from it.

Submit
16. Which command will check files for errors?

Explanation

The command "fsck" is used to check and repair filesystem errors in Unix-like operating systems. It stands for "file system consistency check" and is typically used to scan and fix issues with the filesystem structure, such as incorrect metadata or corrupted data blocks. By running "fsck", the user can ensure the integrity of their files and prevent further damage or data loss.

Submit
17. Which command will allow you to run a command as another user?

Explanation

runas is the equivalant Windows command. sudo allows you to run the command under superuser privileges, chroot will run the command under a different directory.

Submit
18. What does the PIPE symbol do?

Explanation

The PIPE symbol in computing is used to redirect the output of one command to another command, allowing for the manipulation and filtering of data. It does not save or increase the amount of information on the screen, but rather reduces it by selectively displaying only the desired output.

Submit
19. Which command will display detailed information about a running process?

Explanation

Pslist is a command that displays detailed information about a running process. It provides information such as process ID, CPU usage, memory usage, and other details related to the running processes on a system. This command is commonly used in Windows operating systems to gather information about processes and troubleshoot any issues related to them.

Submit
20. Which command will kill a named process?

Explanation

The correct answer is "killall". The killall command is used to terminate or kill a named process in Linux. It sends a signal to the specified process, causing it to terminate. This command is useful when you want to end multiple instances of a process running on your system.

Submit
View My Results

Quiz Review Timeline (Updated): Mar 21, 2023 +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 21, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Mar 25, 2014
    Quiz Created by
    Sandeep_patade
Cancel
  • All
    All (20)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
.............is the command used to create a new directory.
Which command will create a new directory?
Command used to create an empty file.
"cat" is the command used to?
Which command will display the current directory?
DHCP stands for?
The files under this directory are deleted when the system is...
Which command will display your IP address?
If you want to modify the file owner, which command do you use?
What command is used to clear up the command prompt window?
Which command do you use to display the differences...
The language linux uses is?
If you want to give read/write/execute rights to the file owner while...
What will schedule a command to run at a later time?
What does GNU stand for?
Which command will check files for errors?
Which command will allow you to run a command as another user?
What does the PIPE symbol do?
Which command will display detailed information about a running...
Which command will kill a named process?
Alert!

Advertisement