Linux Admin IQ Test

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 Appcorehr
A
Appcorehr
Community Contributor
Quizzes Created: 1 | Total Attempts: 6,713
| Attempts: 6,713 | Questions: 20
Please wait...
Question 1 / 20
0 %
0/100
Score 0/100
1. What is bash?

Explanation

Bash is a command shell, which is a program that provides a command line interface for users to interact with the operating system. It is commonly used on Unix-based systems and is known for its powerful scripting capabilities. Bash allows users to execute commands, run scripts, and automate tasks, making it a fundamental tool for system administration and programming.

Submit
Please wait...
About This Quiz
Linux Admin IQ Test - Quiz

The 'Linux Admin IQ Test' assesses knowledge in managing Linux systems, focusing on tasks like editing login messages, managing printer daemons, and understanding system files and commands. It's ideal for those aiming to validate or enhance their Linux system administration skills.

Personalize your quiz and earn a certificate with your name on it!
2. You are working in Linux when a program hits a flaw and stops running. Which command can be used to end the process?

Explanation

The kill command in Linux can be used to terminate a process. It sends a signal to the specified process, causing it to stop running. This is a commonly used command to end a program that has encountered a flaw or is unresponsive.

Submit
3. A user is logged into the Linux workstation, what is the best way to login to root from a shell prompt?

Explanation

The correct answer is "su". The "su" command stands for "switch user" and allows the user to switch to a different user account, in this case, the root user. By entering "su" followed by the root password, the user can gain root privileges and access the root account from the shell prompt. This is considered the best way to login to root as it provides a secure and controlled method of accessing the root account.

Submit
4. What does the command "ps" do?  

Explanation

The command "ps" is used to display information about the currently running processes on a system. It provides details such as process ID, CPU usage, memory usage, and other relevant information. By executing the "ps" command, users can get an overview of the processes that are currently active and running on their system.

Submit
5. From a command prompt, what does the command "ls" do?

Explanation

The command "ls" is used to list the contents of a directory from a command prompt. It displays the files and subdirectories present in the current working directory.

Submit
6. Which command creates a file system? 

Explanation

The command "mkfs" is used to create a file system on a storage device. It is commonly used in Linux and Unix systems to format a partition or disk with a specific file system type, such as ext4 or NTFS. This command initializes the file system structures and metadata on the device, allowing it to be used for storing files and directories.

Submit
7. T/F: The command "pwd" displays the directory

Explanation

The command "pwd" stands for "print working directory" and is used to display the current directory that the user is in. Therefore, the statement "The command 'pwd' displays the directory" is true.

Submit
8. Which of the following are valid Linux wildcards? (Choose all that apply)

Explanation

The correct answer is "* and ?". In Linux, the asterisk (*) is a wildcard that represents any number of characters, while the question mark (?) represents a single character. These wildcards are commonly used in file and directory searches to match multiple filenames or patterns. The other options (/, ?, &, Z) are not valid Linux wildcards.

Submit
9. T/F: To move files, use the "move" command.

Explanation

The correct answer is False because to move files, you should use the "mv" command in most operating systems, including Unix-like systems. The "move" command is not a recognized command for moving files.

Submit
10. Users on your network cannot print to a Linux printer. You decide to restart the printer daemon, which command would achieve that?

Explanation

The correct answer is "restart printer-name." To solve the problem of users on the network being unable to print to a Linux printer, restarting the printer daemon is a possible solution. The "restart" command followed by the name of the printer would initiate the restart process for the printer daemon, potentially resolving the printing issue.

Submit
11. Linux allows filenames up to what number of characters?

Explanation

Linux allows filenames up to 256 characters because it follows the POSIX standard, which specifies that the maximum length for a filename is 255 characters. This limitation is due to the way file systems are designed and the need to allocate space for storing the filename. Therefore, any filename in Linux that exceeds 256 characters will not be recognized or accessible.

Submit
12. You attempt to remove a directory, but Linux won't allow you, what is the most likely problem?

Explanation

The most likely problem is that the directory is not empty. In Linux, you cannot remove a directory if it contains any files or subdirectories. You need to first remove all the contents within the directory before being able to remove the directory itself.

Submit
13. The previous system administrator put useless messages at login, what file do you edit to change the system message?

Explanation

The correct answer is /etc/motd. The message of the day (motd) file is located in the /etc directory and is used to display a custom message to users when they log in to the system. By editing this file, the system administrator can change the system message and remove any useless messages that were previously added by the previous administrator.

Submit
14. You forget the root password. You decide to reboot using a boot disk floppy. What do you need to do to recover the root password?

Explanation

To recover the root password after forgetting it, you need to mount the root partition and then edit the /etc/passwd file to remove the root password. After making this change, you can reboot the system. This is the correct answer because the /etc/passwd file contains the user account information, including the encrypted passwords. By removing the root password from this file, the system will allow you to login as root without a password, effectively recovering the root access.

Submit
15. What are the file attributes for executing Perl programs?

Explanation

The file attributes for executing Perl programs are 755. This means that the owner of the file has read, write, and execute permissions, while others only have read and execute permissions. This allows the owner to modify and execute the Perl program, while others can only read and execute it.

Submit
16. Which file does Linux use to resolve hostnames?

Explanation

The /etc/hosts file is a plain text file that maps hostnames to IP addresses. When a program attempts to resolve a hostname, the system will first check the /etc/hosts file before querying a DNS server. This allows for local hostname resolution, which can be useful for testing or for resolving hostnames on a private network.  

Submit
17. What is the minimum memory requirements for XFree86? 

Explanation

XFree86, which is a historical implementation of the X Window System, typically requires a minimum of 4 MB (megabytes) of memory to run. This memory is primarily used for storing graphics buffers, managing display output, and supporting applications running on the X server. However, modern systems and successors to XFree86 may have different memory requirements based on their configuration and usage scenarios.

Submit
18. What is "tin"?

Explanation

"Tin" refers to a newsreader, which is a software application used to read and organize news articles from various sources. It allows users to subscribe to different news feeds, browse articles, and manage their news subscriptions. This term is commonly used in the context of internet news and online forums.

Submit
19. What is the default administrator username?

Explanation

In Linux systems, the default administrator username is typically root. The root user has full administrative privileges, allowing them to control system settings, install software, and perform other critical tasks. Because of its powerful role, access to the root account should be managed carefully to maintain system security and prevent unauthorized changes. Other systems might use "admin" or similar, but "root" is the standard administrator account on new Linux installations.

Submit
20. What is the DOS LPT1 port in Linux?

Explanation

The correct answer is /dev/lp0. In Linux, the DOS LPT1 port is represented by the /dev/lp0 device file. The /dev/lp0 device file is used to access the parallel port, which is typically used for connecting printers. This device file allows Linux users to interact with the parallel port and send data to connected devices such as printers.

Submit
View My Results

Quiz Review Timeline (Updated): Jan 6, 2025 +

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

  • Current Version
  • Jan 06, 2025
    Quiz Edited by
    ProProfs Editorial Team
  • Apr 22, 2011
    Quiz Created by
    Appcorehr
Cancel
  • All
    All (20)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
What is bash?
You are working in Linux when a program hits a flaw and stops running....
A user is logged into the Linux workstation, what is the best way to...
What does the command "ps" do?  
From a command prompt, what does the command "ls" do?
Which command creates a file system? 
T/F: The command "pwd" displays the directory
Which of the following are valid Linux wildcards? (Choose all that...
T/F: To move files, use the "move" command.
Users on your network cannot print to a Linux printer. You decide to...
Linux allows filenames up to what number of characters?
You attempt to remove a directory, but Linux won't allow you, what...
The previous system administrator put useless messages at login, what...
You forget the root password. You decide to reboot using a boot disk...
What are the file attributes for executing Perl programs?
Which file does Linux use to resolve hostnames?
What is the minimum memory requirements for XFree86? 
What is "tin"?
What is the default administrator username?
What is the DOS LPT1 port in Linux?
Alert!

Advertisement