Linux system administration involves managing and maintaining the core operations of Linux-based systems. This includes tasks such as installing and updating software packages using tools like apt or yum, configuring system settings, managing user accounts and permissions, monitoring performance and resource usage, ensuring network security through firewalls and encryption, and troubleshooting hardware or software issues. Administrators rely on command-line interfaces, scripting languages like Bash, and utilities such as systemd for service management, while adhering to best practices for backups, updates, and system optimization to ensure reliability and efficiency in environments like servers, clouds, or desktops.
Table of contents
- Part 1: Create a Linux system administration quiz in minutes using AI with OnlineExamMaker
- Part 2: 20 Linux system administration quiz questions & answers
- Part 3: AI Question Generator – Automatically create questions for your next assessment
Part 1: Create a Linux system administration quiz in minutes using AI with OnlineExamMaker
Are you looking for an online assessment to test the Linux system administration knowledge of your learners? OnlineExamMaker uses artificial intelligence to help quiz organizers to create, manage, and analyze exams or tests automatically. Apart from AI features, OnlineExamMaker advanced security features such as full-screen lockdown browser, online webcam proctoring, and face ID recognition.
Recommended features for you:
● Includes a safe exam browser (lockdown mode), webcam and screen recording, live monitoring, and chat oversight to prevent cheating.
● Enhances assessments with interactive experience by embedding video, audio, image into quizzes and multimedia feedback.
● Once the exam ends, the exam scores, question reports, ranking and other analytics data can be exported to your device in Excel file format.
● Offers question analysis to evaluate question performance and reliability, helping instructors optimize their training plan.
Automatically generate questions using AI
Part 2: 20 Linux system administration quiz questions & answers
or
1. Question: What command is used to list all files and directories in the current directory on a Linux system?
A. ls
B. dir
C. list
D. show
Answer: A
Explanation: The ‘ls’ command displays the contents of a directory, including files and subdirectories, making it essential for basic file management.
2. Question: Which file contains the user account information in Linux?
A. /etc/passwd
B. /etc/shadow
C. /etc/group
D. /etc/hosts
Answer: A
Explanation: The /etc/passwd file stores user account details such as usernames, user IDs, and home directories.
3. Question: What command is used to change file permissions in Linux?
A. chmod
B. chown
C. chgrp
D. touch
Answer: A
Explanation: The ‘chmod’ command modifies the read, write, and execute permissions of files and directories.
4. Question: Which package manager is commonly used on Debian-based systems like Ubuntu?
A. apt
B. yum
C. dnf
D. pacman
Answer: A
Explanation: ‘apt’ handles package installation, updates, and removal on Debian-based distributions.
5. Question: How do you view the contents of a file in real-time as it is being written?
A. tail -f
B. cat
C. less
D. more
Answer: A
Explanation: The ‘tail -f’ command monitors the end of a file and displays new lines as they are added.
6. Question: What does the ‘df’ command display?
A. Disk space usage
B. Network interfaces
C. Running processes
D. User accounts
Answer: A
Explanation: ‘df’ reports the amount of disk space used and available on file systems.
7. Question: Which command is used to create a new directory?
A. mkdir
B. touch
C. cd
D. pwd
Answer: A
Explanation: The ‘mkdir’ command creates a new directory with the specified name.
8. Question: What is the purpose of the ‘sudo’ command?
A. To execute commands with superuser privileges
B. To list users
C. To change directories
D. To edit files
Answer: A
Explanation: ‘sudo’ allows authorized users to run programs with the security privileges of another user, typically the superuser.
9. Question: Which file extension is commonly used for shell scripts in Linux?
A. .sh
B. .exe
C. .bat
D. .py
Answer: A
Explanation: Files with the .sh extension are typically Bash or shell scripts that can be executed in the terminal.
10. Question: What command is used to kill a process by its PID?
A. kill
B. ps
C. top
D. bg
Answer: A
Explanation: The ‘kill’ command sends a signal to a process to terminate it, using its process ID (PID).
11. Question: How do you check the system’s kernel version in Linux?
A. uname -r
B. cat /etc/os-release
C. ls /boot
D. hostname
Answer: A
Explanation: ‘uname -r’ displays the release version of the kernel currently running on the system.
12. Question: Which command is used to add a new user to the system?
A. useradd
B. passwd
C. groupadd
D. usermod
Answer: A
Explanation: The ‘useradd’ command creates a new user account with specified attributes.
13. Question: What does the ‘grep’ command do?
A. Search for patterns in files
B. Copy files
C. Delete files
D. Mount file systems
Answer: A
Explanation: ‘grep’ searches through text files for lines that contain a match to a specified pattern or string.
14. Question: Which runlevel is associated with multi-user mode with networking in traditional SysV init systems?
A. 3
B. 5
C. 0
D. 1
Answer: A
Explanation: Runlevel 3 starts the system in multi-user mode with networking but without a graphical interface.
15. Question: What command is used to update the package index on a system using apt?
A. apt update
B. apt upgrade
C. apt install
D. apt remove
Answer: A
Explanation: ‘apt update’ refreshes the list of available packages from the repositories.
16. Question: How do you mount a file system in Linux?
A. mount /dev/sda1 /mnt
B. umount /dev/sda1
C. fdisk /dev/sda1
D. lsblk
Answer: A
Explanation: The ‘mount’ command attaches a file system to a directory, making it accessible.
17. Question: What is the default shell for most Linux distributions?
A. Bash
B. Csh
C. Ksh
D. Fish
Answer: A
Explanation: Bash (Bourne Again SHell) is the standard shell provided in most Linux distributions for command-line interaction.
18. Question: Which command displays real-time information about system processes?
A. top
B. ps
C. free
D. df
Answer: A
Explanation: ‘top’ provides a dynamic, real-time view of running processes, including CPU and memory usage.
19. Question: What command is used to change the ownership of a file?
A. chown
B. chmod
C. chgrp
D. touch
Answer: A
Explanation: ‘chown’ changes the owner and/or group of a file or directory to the specified user or group.
20. Question: How do you check the network configuration on a Linux system?
A. ifconfig or ip addr
B. netstat
C. ping
D. route
Answer: A
Explanation: Commands like ‘ifconfig’ or ‘ip addr’ display information about network interfaces and their configurations.
or
Part 3: AI Question Generator – Automatically create questions for your next assessment
Automatically generate questions using AI